Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Functions.
#1
Ok basically i want my functions to run on the window the toolbar is on.
anyway of qm getting window the toolabr is on?
somthing like that Smile
thanks.
#2
int w1
w1=win("notepad")
act w1
as long as you have the tool bar on that window it will run that function on that window and u can open and use other notepads
#3
Yea man. i use this. but when i have 2windows with almost the same name. it messes up.
i need all my functions to run on the specific window the toolbar is on. Confusedhock:
:oops:
thanks
#4

Maybe try naming the windows as they appear?
Taking on Quick Macros one day at a time
#5
how would i do that because i tryed it to get name and and setvalue into "edit" part of my dialog but it will add the new window to all :| ty
#6

I believe this question has been asked before, or something similar to it.

RUNNING DIFFERENT FUNCTIONS IN MULTIPLE WINDOWS
Taking on Quick Macros one day at a time
#7
Hey,
this helped me loads, but then again i installed a newer version of qm (2.2.1.)
And this doesnt seem to work?
Could you come up with a fix of this?
Thanks Big Grin
#8

What doesn't work now?
Taking on Quick Macros one day at a time
#9
i get a "Window not found." error?
#10
When you use this?

Macro ( Macro )
Code:
Copy      Help
str s="Window 1"
s.setwintext(win("Quick Macros"))
act s


Remember that once you change the window name, you'll have to activate it or label it by its new name and not its old one.
Taking on Quick Macros one day at a time
#11
Ohhh,
sorry bro my mistake i ment the otherone you helped me with

Example:
Menu2 :int+ g_tbwindow=GetWindow(val(_command) GW_OWNER); mac "Menu2"

after installing newer QM
i always get that error "Window not found"
#12

Not sure why.
Taking on Quick Macros one day at a time
#13
Now use GetToolbarOwner instead of GetWindow.

http://www.quickmacros.com/help/User/IDP_QMDLL.html

I had to change this because of problems on Vista.
#14
ok gin.
i tried this and i get an error.

Menu :int+ g_tbwindow=GetToolbarOwner(val(_command) GW_OWNER); mac "Menu" * $qm$\close.ico * 0

Error in Toolbar: too many arguments.
#15
yes, too many
#16
But this worked perfect with GetWindow.
reccomend anything gin?
#17
GetToolbarOwner expects only one argument.
pi
#18
Sao, theres no way round this :?: Sad
#19
TYL3R B™ Wrote:Sao, theres no way round this :?: Sad

it seems that you don't understand the code at all.

Code:
Copy      Help
GetToolbarOwner(val(_command) GW_OWNER);

GW_OWNER is the second argument.
pi


Forum Jump:


Users browsing this thread: 1 Guest(s)