To set dialog windows that normally do not have this Feature in QM (e.g. Input box, OpenSaveDialog...) - or if you wish also for other existing windows - if you do not want to use - in this case - the built-in routines (e.g.: act, CenterWindow, MoveWindowToMonitor, mov, ont...) here...
I originally needed it in the company - to put QM dialogues in the foreground...
Insert the function before the actual dialog call - and specify its title...
The function also works for other existing Windows (see Firefox example...)
The special thing:
The function calls itself again as mac - so that the calling program can continue running...
Examles:
Simply with a Windows title as parameter:
;WinSetOnTop "Title" ;(Topmost with Center on Monitor with the mouse pointer is default)
or
;NOT setontop with -2 Firefox (Nothing or NULL = setontop) and mov Windows to 100 200 and primary Monitor
;WinSetOnTop "Mozilla Firefox* - *" "MozillaWindowClass" -2 100 200 -3
;detto with setontop and moves the window on the monitor #2 (Short Title without Class Parameters - also works!)
;WinSetOnTop "*Firefox*" "" 0 0 0 -2 (or -1 0 0 2)
See integrated function Help too...
Have fun with it!!!
wfg. from Schindi aus Austria
I originally needed it in the company - to put QM dialogues in the foreground...
Insert the function before the actual dialog call - and specify its title...
The function also works for other existing Windows (see Firefox example...)
The special thing:
The function calls itself again as mac - so that the calling program can continue running...
Examles:
Simply with a Windows title as parameter:
;WinSetOnTop "Title" ;(Topmost with Center on Monitor with the mouse pointer is default)
or
;NOT setontop with -2 Firefox (Nothing or NULL = setontop) and mov Windows to 100 200 and primary Monitor
;WinSetOnTop "Mozilla Firefox* - *" "MozillaWindowClass" -2 100 200 -3
;detto with setontop and moves the window on the monitor #2 (Short Title without Class Parameters - also works!)
;WinSetOnTop "*Firefox*" "" 0 0 0 -2 (or -1 0 0 2)
See integrated function Help too...
Have fun with it!!!
wfg. from Schindi aus Austria