Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
WRONG ERROR MESSAGE
#2
Example:

Code:
Copy      Help
int h=wait(5 WV "Message Box Title") ;;message box
int hh=child("" "Static") ;;control that displays message text
str s.getwintext(hh) ;;message text
if(find(s "all or part of message text")>=0) ;;if contains specific text
,clo h ;;close the message box. Alternatively, close with lef or key.

Alternatively, create other macro (actually, it must be function) that would close the message box. It must have window trigger so that would run when the message box appears. In QM 2.1.4, you can set window trigger to recognize windows with specific text inside.


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)