Jump to content

Recommended Posts

Posted

checked help file...didnt have what i needed...i need it...if you press '6' then...it needs to check for a blue color and click..

PixelGetColor will this work for it?

Posted

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.

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