Jump to content

How to do opposite of "PixelSearch"?


plankton
 Share

Recommended Posts

While IsArray(PixelSearch(100, 100, 300, 300, 0xffffff))
    Send("{ESC}")
    Sleep(1000)
WEnd

MsgBox(0,"Loop exited","")

Hi, above is my function that will execute ESC button when white color is present in specific area which is color 0xffffff.

But how do I do the opposite like when white color is not present in that specific area? Like this below code which gives me error

 

While IsArray(PixelSearch(100, 100, 300, 300, <>0xffffff))
    Send("{ESC}")
    Sleep(1000)
WEnd

MsgBox(0,"Loop exited","")

 

 

Link to comment
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
 Share

×
×
  • Create New...