Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Basic macro, close QM Message Box, not working
#1
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


Code:
Copy      Help
mes "close this window"
int w1=win("QM Message" "#32770")
clo w1
#2
clo closes QM message boxes too, except when they don't have an enabled X button, such as Yes|No. Example:

Macro Macro106
Code:
Copy      Help
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
#3
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?
#4
Need a mes function that does not wait?

Macro Macro111
Code:
Copy      Help
MsgBoxAsync "close this window"
1
int w1=win("QM Message" "#32770")
clo w1
#5
??

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?


Forum Jump:


Users browsing this thread: 1 Guest(s)