Jump to content
Sign in to follow this  
AAchrome

Cant figure this out, Sorry im a noob :(

Recommended Posts

Ive been using AutoIt for a couple of days now and im trying to make a bot for a game but i keep getting these errors...Could someone please tell me what im doing wrong? thanks in advance...

-----------------------------------------------------------------------------------------------------------------

$coor = PixelSearch( 283, 680, 1076, 677, 0xFFFF9A [, 0, 2 )

While @error = 0

WinWaitActive ("Game");

While 1=1

$i = 0

While $i < 30

Send ("{1}")

Sleep (500)

Send ("{1}")

Sleep (2000)

Send ("{1}")

$i = $i + 1

WEnd

$i = 0

While $i < 30

Send ("{1}")

Sleep (500)

Send ("{1}")

Sleep (2000)

Send ("{1}")

$i = $i + 1

WEnd

Send ("{3}")

$coor = PixelSearch( 284, 75, 1074, 607, 0xFFFF9A [, 0, 2 )

WEnd

-----------------------------------------------------------------------------------------------------------------------------

C:\Users\----\-----\Scripts\Gaming bot.au3(1,52) : ERROR: syntax error

$coor = PixelSearch( 283, 680, 1076, 677, 0xFFFF9A [

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

C:\Users\----\-----\Scripts\Gaming bot.au3(24,51) : ERROR: syntax error

$coor = PixelSearch( 284, 75, 1074, 607, 0xFFFF9A [

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

C:\Users\------\------\Scripts\Gaming bot.au3(28,1) : ERROR: missing Wend.

^

C:\Users\-----\------\Scripts\Gaming bot.au3(2,1) : REF: missing Wend.

While

^

C:\Users\-----\-----\Scripts\Gaming bot.au3 - 3 error(s), 0 warning(s)

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...