Jump to content
Sign in to follow this  


Recommended Posts



Edited by johnc2k

Share this post

Link to post
Share on other sites

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.


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
Don N

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] )

_____________________________________________________"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  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.