08-16-2013, 11:00 AM
OK, just to be sure I did it the right way.
1) I made a macro triggered by the program window the toolbar is linked to.
int hwnd=val(_command)
int+ MyWindow=hwnd
But I wonder if directly using this is valid:
int+ MyWindow=val(_command)
2) The toolbar uses 5 macros or functions. In each one:
int+ MyWindow
Acc a.Find(MyWindow "TEXT" "" "class=TEdit[]xy=659 815" 0x1004)
Must I declare int+ MyWindow in each macro/function before using it or directly use MyWindow variable?
Thanks
1) I made a macro triggered by the program window the toolbar is linked to.
int hwnd=val(_command)
int+ MyWindow=hwnd
But I wonder if directly using this is valid:
int+ MyWindow=val(_command)
2) The toolbar uses 5 macros or functions. In each one:
int+ MyWindow
Acc a.Find(MyWindow "TEXT" "" "class=TEdit[]xy=659 815" 0x1004)
Must I declare int+ MyWindow in each macro/function before using it or directly use MyWindow variable?
Thanks