nobytes Posted June 14, 2006 Share Posted June 14, 2006 (edited) . Edited September 2, 2015 by johnc2k Link to comment Share on other sites More sharing options...
marfdaman Posted June 14, 2006 Share Posted June 14, 2006 (edited) I believe I don't follow you, you are saying that you want to search for a pixel of a certain colour, but the colour might differ slightly? In that case, use the last parameter of PixelSearch and put it to like 10 or something, this will make it look for the colour you specify and any colour that comes within 10 shades of variation of the specified colour. Alzo Edited June 14, 2006 by marfdaman Don't take my pic to serious...~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~You Looked, but you did not see!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Link to comment Share on other sites More sharing options...
Don N Posted June 14, 2006 Share Posted June 14, 2006 If the shade parameter is not what your looking for and you are in fact looking for 3 distinct or unique colors then try this maybe: Dim $Colors[3] $Colors[0] = IniRead ("Settings.ini", "Color", "1", "0x881F07") $Colors[1] = IniRead ("Settings.ini", "Color", "2", "0x881F08") $Colors[2] = IniRead ("Settings.ini", "Color", "3", "0x881F09") For $i = 1 To 3 $pos = PixelSearch($left, $top, $right, $bottom, $color_to_use, $b_search_tolerance, $b_search_step) If Not @error Then MouseMove( $pos[0], $pos[1] ) ExitLoop EndIf Next _____________________________________________________"some people live for the rules, I live for exceptions"Wallpaper Changer - Easily Change Your Windows Wallpaper 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