peppermint Posted April 6, 2006 Share Posted April 6, 2006 hi, first, i am gonna write these MsgBox(4096+1, "Notice", "You are attempting to start Warcraft III") well, if i select ok, then how i write things that allow the AutoIt to open the .exe file? and if i select cancel, then how i write things that will cancel the whole activity? is it that i need to use the If...ElseIf...Else...EndIf or the If...Then i am stuck in here.... pretty sad for me Link to comment Share on other sites More sharing options...
nfwu Posted April 6, 2006 Share Posted April 6, 2006 is it that i need to use the If...ElseIf...Else...EndIf or the If...ThenYes!Use the return value of the function.Other things you may look up:ExitRun()Look at AutoIt 1-2-3 in my sig. It's a guide that teaches you how to use AutoIt.#) TwitterOut of date stuff:Scripts: Sudoku Solver | Webserver | 3D library (Pure AutoIt) | Wood's GadgetsUDFs: _WoodUniqueID() | _DialogEditIni() | _Console*() | _GetIPConfigData() | _URLEncode/Decode() Link to comment Share on other sites More sharing options...
Uten Posted April 6, 2006 Share Posted April 6, 2006 (edited) If you have installed the autoit SciTE installation you will probably like the functionpopup help (ALT+F1). Arrgh, SHIFT+F1 That is Edited April 6, 2006 by Uten Please keep your sig. small! Use the help file. Search the forum. Then ask unresolved questions :) Script plugin demo, Simple Trace udf, TrayMenuEx udf, IOChatter demo, freebasic multithreaded dll sample, PostMessage, Aspell, Code profiling Link to comment Share on other sites More sharing options...
peppermint Posted April 6, 2006 Author Share Posted April 6, 2006 erk, sorry for being so noob, can gimme some example? tq Link to comment Share on other sites More sharing options...
nfwu Posted April 6, 2006 Share Posted April 6, 2006 Look at AutoIt 1-2-3, a guide to AutoIt. Can be found here: http://www.autoitscript.com/forum/index.php?showtopic=21048Go through it's tutorials.#)P.S.: Involving your current problem:$iMsgBoxAnswer = MsgBox(4,"Notice", "You are attempting to start Warcraft III") Select Case $iMsgBoxAnswer = 6;Yes Run("warcraft") Case $iMsgBoxAnswer = 7;No Exit EndSelect TwitterOut of date stuff:Scripts: Sudoku Solver | Webserver | 3D library (Pure AutoIt) | Wood's GadgetsUDFs: _WoodUniqueID() | _DialogEditIni() | _Console*() | _GetIPConfigData() | _URLEncode/Decode() Link to comment Share on other sites More sharing options...
peppermint Posted April 6, 2006 Author Share Posted April 6, 2006 (edited) erm, can i ask something? y there is numbers (6 and 7) b4 the Yes and No? wat is those numbers for? Case $iMsgBoxAnswer = 6;Yes Run("warcraft") Case $iMsgBoxAnswer = 7;No Edited April 6, 2006 by peppermint Link to comment Share on other sites More sharing options...
pecloe Posted April 6, 2006 Share Posted April 6, 2006 (edited) from the help file>msgbox Button Pressed Return Value OK 1 CANCEL 2 ABORT 3 RETRY 4 IGNORE 5 YES 6 NO 7 TRY AGAIN ** 10 CONTINUE ** 11 Edited April 6, 2006 by pecloe Link to comment Share on other sites More sharing options...
forger Posted April 6, 2006 Share Posted April 6, 2006 the ;Yes and ;No at the end are comments When you put the semicolon (the ; character) it interprets everything after that semicolon as a comment! ;This is a comment MsgBox("","title","text",5);This is another comment Link to comment Share on other sites More sharing options...
peppermint Posted April 7, 2006 Author Share Posted April 7, 2006 icic, thx for ur all's helps, thx alot 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