himoscriptsd Posted August 22, 2011 Share Posted August 22, 2011 I have a problem please help solve Next I want the code of the program If explorer.exe Working memory in The program displays a message, and do not complete the rest of the orders But using The Function #include <ButtonConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("test", 615, 438, 192, 124) $Button1 = GUICtrlCreateButton("test", 200, 152, 177, 73) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit case $Button1 test() EndSwitch WEnd Func test() if ProcessExists ('explorer.exe') Then MsgBox(0,'error','error1') ContinueLoop endif EndFunc thx Link to comment Share on other sites More sharing options...
himoscriptsd Posted August 22, 2011 Author Share Posted August 22, 2011 More precisely, I want to stop the program when you view the message and then ordered to start, should he leave, but orders from the beginning introduced Forums Home Link to comment Share on other sites More sharing options...
Developers Jos Posted August 22, 2011 Developers Share Posted August 22, 2011 (edited) ContinueLoop does what is means: It continues a loop from the start and cannot be used in isolation in a Func. Look at the Helpfile for some examples. Jos Edited August 22, 2011 by Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
himoscriptsd Posted August 22, 2011 Author Share Posted August 22, 2011 (edited) I do not want the implementation of the program after displaying the message Matanh But in the context of Alvankhn And any way possible to do so by Edited August 22, 2011 by himoscriptsd Link to comment Share on other sites More sharing options...
Developers Jos Posted August 22, 2011 Developers Share Posted August 22, 2011 Sure ... fries with that? SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now