Jump to content

IF COLOR1 WASN'T FOUND SEARCH FOR COLOR 2


Recommended Posts

Hi Everyone,

I'm writing a script where i want to search for a certain pixel (color1) and if this color isn't found i want the script to search for another pixel (color2).
If the script finds one of these 2 colors i want it to continue a certain action. If none of the 2 colors was found I want it to error (and start the loop over).
Hope you smart people on this forum can help me out. Cuz im new to scripting :/

Link to comment
Share on other sites

  • Moderators

Yes, we can help you out. Search the forum for PixelSearch, then try out some of the examples you'll find for yourself. Or, post a more specific description of the app you're trying to automate, and what you have tried on your own. Please be aware this forum is dedicated to helping people improve their own scripts; it is not a place where you put in an order and someone spoon-feeds you code.

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...