Posts: 51
Threads: 25
Joined: Oct 2014
Hello,
I wonder if it's possible in .exe to remove the countdown in the error messages box that pops up if we uncheck "Output to QM" in the "Make exe" dialog ?
Thanks in advance,
Posts: 12,065
Threads: 140
Joined: Dec 2002
Function
ExeErrorMessageBoxRemoveCountdown
;/
;Removes countdown from error message box.
;Call this function in exe macro, when it starts.
;To show error message box, in "Make exe" dialog uncheck "Output to QM".
;EXAMPLE
;ExeErrorMessageBoxRemoveCountdown
;0.5
;str s.getfile("-")
mac "sub.Thread"
#sub Thread
int pw pid1=GetCurrentProcessId
rep
,0.9
,int pid2 w=win
,if(w=pw) continue; else pw=w
,if GetWindowThreadProcessId(w &pid2) and pid2=pid1 and WinTest(w "#32770")
,,int c=id(65535 w)
,,if c
,,,str s.getwintext(c)
,,,if s.beg("Error (RT)") and s.end("---- click here to stop countdown ----")
,,,,s.remove(s.len-38); s.setwintext(c)
,,,,key L