Jump to content

Infinite loop none stop.


plankton
 Share

Recommended Posts

Hi I want it to search for a specific color in certain area then excute the loop which presses ESC button and stop the loop when the color no longer present in that specific area.  Here is the example of my code. But it doesnt stop when color is disappeared.

 

Pixelsearch(511, 455, 678, 501, 0xFFFFFF)

If Not  @Error Then

While 1

Sleep(1000)

Send("{ESC}")

Pixelsearch(511, 455, 678, 501, 0xFFFFFF)

If @Error Then Exitloop

 

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...