Sign in to follow this  
Followers 0
cageman

Pixelsearch() problem

4 posts in this topic

i want to search all color except white

$color=Pixelsearch(Startx,Starty,Endx,Endy,color)

what do i need to input so it only searches for colors unequal to 0xFFFFFF

thx:)

Share this post


Link to post
Share on other sites



#3 ·  Posted (edited)

$PixelSearch = PixelSearch($startx, $starty, $endx, $endy, $color)
If $color <> "0xFFFFFF" Then
     MsgBox(0, @ScriptName, "Found anything but white!")
EndIf

Don't know if it works.

i might have been unclear

what your script does is checking if the script searched for colors unequal to white.

i want that it searches for all colors unequal to white. dont know if its possible.

edit: i found another solution to the problem. Thx for the help tho.

Edited by cageman

Share this post


Link to post
Share on other sites

i might have been unclear

what your script does is checking if the script searched for colors unequal to white.

i want that it searches for all colors unequal to white. dont know if its possible.

edit: i found another solution to the problem. Thx for the help tho.

Mind sharing your solution? I need the same function. Thanks!!!

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