Jump to content
Sign in to follow this  

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

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  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.