Jump to content

Click on pixel color


Swift
 Share

Recommended Posts

HotKeySet("6", "GetColor")

$SetColor = 0

Func GetColor()

$SetColor = NOT $SetColor

EndFunc

Func Yourscript()

If $SetColor = 1 then PixelSearch ( left, top, right, bottom, color [, shade-variation] [, step]] )

If Not @Error then MouseClick ( "Left" [, $Coord[0], $Coord[1] , 1 , 0 )

Else

MsgBox(0,"Could not find pixel")

EndFunc

BTW this is a VERY rough sketch, because its late and im tired, but hopefully you understand.

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