Posts: 76
Threads: 37
Joined: Nov 2018
i can get QM to close every non-QM window Ive tried except a QM generated message box.
if I use the "window, control" functionality to 'drag' and select this window and even 'test' for it, it works
BUT getting QM to recognize and close the window doesnt work.
Can someone test and let me know. thanks
mes "close this window"
int w1=win("QM Message" "#32770")
clo w1
Posts: 12,086
Threads: 142
Joined: Dec 2002
11-20-2018, 06:21 AM
(This post was last modified: 11-20-2018, 06:22 AM by Gintaras.)
clo closes QM message boxes too, except when they don't have an enabled X button, such as Yes|No. Example:
Macro
Macro106
mac "sub.Thread"
mes "close this window"
;mes "close this window" "" "YN" ;;cannot close, no X button
#sub Thread
1
int w1=win("QM Message" "#32770")
clo w1
Posts: 76
Threads: 37
Joined: Nov 2018
what is wrong with the example I gave? why doesnt that work?
its a message box with an OK., not a Y\N. But it doesnt close. is running a function the only way to get it to close?
Posts: 12,086
Threads: 142
Joined: Dec 2002
Need a mes function that does not wait?
Macro
Macro111
MsgBoxAsync "close this window"
1
int w1=win("QM Message" "#32770")
clo w1
Posts: 76
Threads: 37
Joined: Nov 2018
??
your original message box does wait. It is a standard mes box. but it doesnt close unless you add a function to it.
so the rule is, must be a message box that "does not wait" or write a function to close a "waiting" mes box. right?