nkormanik Posted January 1, 2017 Report Share Posted January 1, 2017 Below is code presently used: <REPEAT UNTIL Variable="%N2%" Condition="\x00" Value="15790320"/> <DELAY Flags="\x00" Time="10"/> <GET PIXEL COLOR Option="\x01" Rel_To_Screen="TRUE" X="879" Y="772" Destination="%N2%"/> <END REPEAT/> This code waits for a particular color (blue) to appear at a certain pixel. Normally goes great. Colored pixel appears. Macro goes on to next steps. HOWEVER, sometimes server error occurs at other end. Where color is expected is just white only. Macro hangs, waiting, waiting.... What I would like is a way to say: If color does not appear in 2 minutes, then go up and click on refresh button. But continue as before. Hopefully the colored pixel will materialize this time around. If it still does not, go up and click that refresh button again. And wait, once again for colored pixel to come up. Etc. I have this macro running on a computer off to the side. Things generally go smoothly. But sometimes I look over, and server error has occurred. Macro is simply waiting, forever. So I have to reach over and manually click the refresh button. That usually does the trick. Colored pixel shows up. Macro continues as if all is well. Any help greatly appreciated. Nicholas Kormanik Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.