Jump to content

Need help with a simple script


Recommended Posts

Okay well here is what I try to make so ya if any one can help me out it would be greatly appreciated!

Thanks allot =)

; phase 0

MouseClick("left",200,300)

MouseClick("left",100,100)

then go to phase 1

; phase 1

MouseClick("left",200,300)

MouseClick("left",400,500)

Sleep(200)

If PixelGetColor(352,376) == 0x848284

go to phase 0

Else

go to phase 1

( repeat this for 35 times untilPixelGetColor(352,376) == 0x848284 is found at this exact location )

Else

MouseClick("left",100,100)

then go to next phase

;phase 2

same as phase 1

;phase 3

same as phase 1

;phase 4

same as phase 1

;phase 5

same as phase 1

;phase 6

same as phase 1

;phase 7

same as phase 1

;phase 8

same as phase 1

if phase 8 fail to find PixelGetColor(352,376) == 0x848284 afer 35 try

go to phase 0 and start over

Link to comment
Share on other sites

Your missing some conditional statements, Its too difficult to determine your direction, try reading up on Loops and Conditional Statements in the help file. I think you might even help yourself there.

If

ElseIf

Else

Endif

Do...Until

For...To...Next

; phase 1
MouseClick("left",200,300) 
MouseClick("left",400,500)
Sleep(200)
If PixelGetColor(352,376) == 0x848284
go to phase 0
Else;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<missing a conditional statement here...needs to be ElseIf or.......
go to phase 1
( repeat this for 35 times untilPixelGetColor(352,376) == 0x848284 is found at this exact location )
Else;<<<<<<<<<<<<<<<<<<<<<...............................................................................................or remove this one
MouseClick("left",100,100) 
then go to next phase

My Contributions: Unix Timestamp: Calculate Unix time, or seconds since Epoch, accounting for your local timezone and daylight savings time. RegEdit Jumper: A Small & Simple interface based on Yashied's Reg Jumper Function, for searching Hives in your registry. 

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...