Jump to content
Sign in to follow this  
Yaro

Minimize loop bug

Recommended Posts

Yaro

Hi all, i want ask you for a help.

I want to create a Do funcion like this

Do

..

..

..

Until pixelGetColor("Color") or Do for a n. of time

So if the pixel get that color script stop Do function and continue. But if the pixel don't get this color, or script don't read the color for a bug or something like that, the script will continue anyway after a tot of seconds and avoid a loop.

Someone can help me to realize that?

And another thing, i want to stop script if program with my script is working, like a game, accidentally crash or close, how i can detect that? and istant stop my script or any sleep he's doing?

Ty for any help.

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  

×