Jump to content

Help~~~


Recommended Posts

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

is it that i need to use the If...ElseIf...Else...EndIf or the If...Then

Yes!

Use the return value of the function.

Other things you may look up:

Exit

Run()

Look at AutoIt 1-2-3 in my sig. It's a guide that teaches you how to use AutoIt.

#)

Link to comment
Share on other sites

If you have installed the autoit SciTE installation you will probably like the functionpopup help (ALT+F1). Arrgh, SHIFT+F1 That is :)

Edited by Uten
Link to comment
Share on other sites

Look at AutoIt 1-2-3, a guide to AutoIt. Can be found here: http://www.autoitscript.com/forum/index.php?showtopic=21048

Go 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
Link to comment
Share on other sites

the ;Yes and ;No at the end are comments :think:

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...