Jump to content

PixelSearch Offset Click?


Recommended Posts


I'm trying to get pixelsearch to find a color and offset to a certain location and then click...

It needs to do the following:

$coord = PixelSearch( 200, 230, 860, 535, 0xE75B2C, 1 )

If it was to find it at the coords of: 600, 350 then it needs to click at coords of: 535, 410 which is an offset of -65, +60

Any ideas?

Note the following doesn't seem to work:

$coord = PixelSearch( 200, 230, 860, 535, 0xE75B2C, 1 )

If Not @error Then
MouseClick( "left", $coord[0]-65, $coord[1]+65, 1, 1 )
Edited by XxXGoD
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

  • Recently Browsing   0 members

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