Jump to content
Sign in to follow this  
qwqwwqwdwd

Need help on my script! please look

Recommended Posts

$coord = PixelSearch( 0, 0, 20, 300, 0x673D17 )

While @error=0

(movement/attack code)

$coord = PixelSearch( 0, 0, 20, 300, 0x673D17 )

Wend

is this the right command?i want it to detect a pixel using Hex code and on the (movement/attack code) i want the mouse move to that pixel and left click on it. anyone know wat codes i need to put in as a replace in (movement/attack code)? please help

Edited by qwqwwqwdwd

Share this post


Link to post
Share on other sites

"qwqwwqwdwd"

Man, that must of taken alot of time and thought

Lol, a well thought out name indeed

is this the right command?i want it to detect a pixel using Hex code and on the (movement/attack code) i want the mouse move to that pixel and left click on it. anyone know wat codes i need to put in as a replace in (movement/attack code)? please help

PixelSearch returns 2 arrays containing the X and Y position, so change it to this:

$coord = PixelSearch( 0, 0, 20, 300, 0x673D17 )
If Not @error Then MouseClick("left", $coord[0], $coord[1], 1, 0)

Kurt

Edited by _Kurt

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  

×
×
  • Create New...