Sign in to follow this  
Followers 0
nobytes

q

3 posts in this topic

#1 ·  Posted (edited)

.

Edited by johnc2k

Share this post


Link to post
Share on other sites



#2 ·  Posted (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 by marfdaman

Don't take my pic to serious...~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~You Looked, but you did not see!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
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
Sign in to follow this  
Followers 0