Jump to content
Sign in to follow this  
Ursie

Pause script execution

Recommended Posts

Hello,

I need some help on how to create some code so that my scripts stops execution.

I don't want a loop with a sleep time in it. I just want the same functionality as the trayicon gives. Where you can pause script execution as well.

Thnx for the help in advance.

ursie

Share this post


Link to post
Share on other sites

lookup HotKeySet in the help file and look at the examples.

BigDod that piece of code out of the help is based on a Loop. So that means that the script is running still after you think its paused. its only in a While loop with noting inside the while loop.

But in my opinion its not the same as the "Pause Script" functionality give via the trayicon.

Thnx for the fast reply though

Share this post


Link to post
Share on other sites

ummmm to unpause a script it still has to be running , and that is one of the best examples of pause, it is in a loop waiting and then when you press the hotkey again it will set pause to not pause and continue with the script....

Share this post


Link to post
Share on other sites

ummmm to unpause a script it still has to be running , and that is one of the best examples of pause, it is in a loop waiting and then when you press the hotkey again it will set pause to not pause and continue with the script....

Ahhh yeah ofcourse thats true ofcourse. To unpause it again the script has to be running. How stupid of me so what i want can't be done. Thats quite simple.

Thnx m8

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  

×
×
  • Create New...