Sign in to follow this  
Followers 0
imnotatoaster

Help for a new autoit-er

3 posts in this topic

I'm trying to fix a bot for WoW, but the problem is, when a specific dialogue box opens, telling me to input the type of battleground i am going into(AV,AB, or WSG)

I get a syntax error, heres the source, can anybody help?

if $whatbg = "AB" OR if $whatbg = "AV" OR if $whatbg = "WSG" Then

IniWrite("bgbot.ini", "Misc", "BattlegroundName", $whatbg)

Else

MsgBox(0, "ERROR!", "Syntax error. PvP Bawt will now exit.")

Exit

EndIf

The error i get is: if $whatbg = "AB" OR if $whatbg = "AV" OR if $whatbg = "WSG" Then

if $whatbg = "AB" OR ^ERROR

"If" statements must have a "Then" keyword.

What I am trying to do is in the box i type AV, WSG or AB in, it will write my input to the .ini file, then go on to the next dialogue box, but i can't get past that error.

Any help is appreciated, thanks.

Share this post


Link to post
Share on other sites



Hi,

try this:

if ($whatbg = "AB") OR ($whatbg = "AV") OR ($whatbg = "WSG") Then

best regards,

Marc


It's my job to comfort the disturbed and to disturb the comfortable.
My Projects: Profiler, MakeSFX, UserInfo

Share this post


Link to post
Share on other sites

The syntax is like this:

If ... Or ... Or ... Then

:whistle:

Share this post


Link to post
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
Sign in to follow this  
Followers 0