but i don't know what's wrong
check that:
EDIT: I want it stop wherever which msgbox running whether msg1 or msg2 etc..
Edited by Command3r, 12 July 2012 - 10:20 PM.
Posted 12 July 2012 - 10:00 PM
Edited by Command3r, 12 July 2012 - 10:20 PM.
Sorry for my bad english, i'll improve it ![]()
-------------------------------------------------------
My advice to you: Search before posting.
Posted 12 July 2012 - 10:22 PM
HotKeySet("{F2}", "MSG") HotKeySet("{F3}", "xt") Global $chk Func _DoStuff($lab, $val) If $chk = 0 Then Return (-1) MsgBox(0, $lab, $val) If $chk = 0 Then Return (-1) EndFunc ;==>_DoStuff Func MSG() $chk = 1 While 1 If _DoStuff("TEST", "1") = -1 Then ExitLoop If _DoStuff("TEST", "2") = -1 Then ExitLoop If _DoStuff("TEST", "3") = -1 Then ExitLoop If _DoStuff("TEST", "4") = -1 Then ExitLoop If _DoStuff("TEST", "5") = -1 Then ExitLoop $chk = 0 WEnd EndFunc ;==>MSG Func xt() $chk = 0 EndFunc ;==>xt While 1 Sleep(200) WEnd
HotKeySet("{F2}", "MSG") HotKeySet("{F3}", "xt") Func MSG() $chk = 1 while 1 MsgBox(0, "TEST", "1") MsgBox(0, "TEST", "2") MsgBox(0, "TEST", "3") MsgBox(0, "TEST", "4") MsgBox(0, "TEST", "5") $chk = 0 wend EndFunc ;==>MSG Func xt() _main() EndFunc ;==>xt _main() Func _main() While 1 Sleep(200) WEnd EndFunc
Edited by DicatoroftheUSA, 12 July 2012 - 10:30 PM.
Posted 12 July 2012 - 10:29 PM
Edited by Command3r, 12 July 2012 - 10:31 PM.
Sorry for my bad english, i'll improve it ![]()
-------------------------------------------------------
My advice to you: Search before posting.
General →
Developer Chat →
HELP Maker ? freeware tool ?Started by mlipok , 31 May 2013 |
|
|
||
AutoIt v3 →
General Help and Support →
_inetsmtpmailStarted by Xtian , 18 May 2013 |
|
|
||
AutoIt v3 →
General Help and Support →
Some big questions about au3 syntax ! Must see !Started by Rickname , 28 Apr 2013 |
|
|
||
AutoIt v3 →
General Help and Support →
SciTE help - Functions to remain expanded/or not even after I close the windowStarted by Rickname , 21 Apr 2013 |
|
|
||
AutoIt v3 →
General Help and Support →
How can I stop any function that is running and restart main function?Started by XuxinhaKill , 04 Apr 2013 |
|
|
0 members, 0 guests, 0 anonymous users