Jump to content
Sign in to follow this  
t0ddie

something wrong with pause

Recommended Posts

t0ddie

HotKeySet("1", "TogglePause")

$x = 0

while 1

$x = $x + 1

msgbox(0,"test",$x,1)

WEnd

Func TogglePause()

$PAUSED = NOT $PAUSED

While $PAUSED

sleep(100)

ToolTip('Script is "Paused"',0,0)

WEnd

EndFunc

i guess this pauses it

but pressing 1 again will not make it resume

hmmmmmmmm, breakfast awaits

mmm beer

i want to be able to unpause it as well, yet its not working.

thanks to all who contribute

Todd


Valik Note Added 19 October 2006 - 08:38 AMAdded to warn level I just plain don't like you.

Share this post


Link to post
Share on other sites
MHz

Looking at that.

You need to lay off the beer?

Share this post


Link to post
Share on other sites
t0ddie

NEVER!

beer is good

thanks, now i just need to figure out how to turn off the tooltip when you unpause it


Valik Note Added 19 October 2006 - 08:38 AMAdded to warn level I just plain don't like you.

Share this post


Link to post
Share on other sites
Jos

NEVER!

beer is good

thanks, now i just need to figure out how to turn off the tooltip when you unpause it

<{POST_SNAPBACK}>

check out the example in the helpfile for HotKeySet()...

It has the fix for both of your issue .. :idiot:


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

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  

×