speeder Posted April 3, 2007 Posted April 3, 2007 Is it possible to get the RGB color of a screen and then if the RGB color has certain hex digits that the mouse can click on that place? I'm asking it this way because the x and y coordinates are different on every monitor.
Slaiochi Posted April 3, 2007 Posted April 3, 2007 (edited) $pixel = PixelSearch(3,3,610,400,0x5255CE) MouseMove($pixel[0], $pixel[1], 0) MouseClick("right", $pixel[0], $pixel[1], 2) Change 0x5255CE to the hex RGB you want To break down the hex version 0x defines the string of numbers as hex 52 is the first byte that represents red 55 represents green CE represents blue. 0xFFFFFF Would be white. Enjoy Edited April 3, 2007 by Slaiochi
speeder Posted April 3, 2007 Author Posted April 3, 2007 $pixel = PixelSearch(3,3,610,400,0x5255CE) MouseMove($pixel[0], $pixel[1], 0) MouseClick("right", $pixel[0], $pixel[1], 2) Change 0x5255CE to the hex RGB you want To break down the hex version 0x defines the string of numbers as hex 52 is the first byte that represents red 55 represents green CE represents blue. 0xFFFFFF Would be white. Enjoy Thx
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