Jump to content

Pause script execution


Ursie
 Share

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

Link to comment
Share on other sites

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


Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Link to comment
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

Link to comment
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

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