spel565 Posted August 19, 2009 Posted August 19, 2009 If i press the button "Retry" i want the script to restart, how? $answer = msgbox(2+512+32,"", "What to do?") ;RETURN VALUES: ;CANCEL 2 ;ABORT 3 ;TRY AGAIN 10 ;RETRY 4 ;IGNORE 5 If $answer = 2 Then MsgBox(0, "-", "OK. Bye!") Exit EndIf If $answer = 5 Then MsgBox(0, "Yay!", "You did it :P") Exit EndIf If $answer = 4 Then $bLoop = 1 Exit EndIfmsgbox no0b.au3
AdmiralAlkex Posted August 19, 2009 Posted August 19, 2009 Here is an example for you: If MsgBox(5, "Title", "Do you want to restart this script?") = 4 Then If @Compiled = True Then Run(@AutoItExe) Else Run(@AutoItExe & ' "' & @ScriptFullPath & '"') EndIf EndIf .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface
spel565 Posted August 19, 2009 Author Posted August 19, 2009 Thanks, but im a new to this program so can you tell me more exact what do to?Or can tell me exactly what should i write to make the thing you said work in my script? (Write in swedish if you want)Or can someone link a tutorial how do that?Or can you tell me how to do?
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