Swift Posted January 6, 2008 Share Posted January 6, 2008 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? Link to comment Share on other sites More sharing options...
SXGuy Posted January 6, 2008 Share Posted January 6, 2008 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 More sharing options...
Swift Posted January 6, 2008 Author Share Posted January 6, 2008 yay...i do Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now