Jump to content

How can i PAUSE my script :)?


Xav
 Share

Recommended Posts

As in the sleep function? or do you mean until a user does something?

Until a user does something , like that :

Hotkeyset("{numbpad1}" , "Break")
Func Break()
  PauseScript
endfunc
Edited by Xav
Link to comment
Share on other sites

$Run = 0 ;Start script paused

HotKeySet("s", "Start") ;Start Key
HotKeySet("e", "End") ;End Key
HotKeySet("q", "Quit") ;Quit Key

While 1
    If $Run = 1 Then
        ;Your script
    EndIf
WEnd

Func Start()
    $Run = 1
EndFunc

Func End()
    $Run = 0
EndFunc

Func Quit()
    Exit
EndFunc

By end I mean pause.

Edited by darkjohn20
Link to comment
Share on other sites

whatever Edited by MvGulik

"Straight_and_Crooked_Thinking" : A "classic guide to ferreting out untruths, half-truths, and other distortions of facts in political and social discussions."
"The Secrets of Quantum Physics" : New and excellent 2 part documentary on Quantum Physics by Jim Al-Khalili. (Dec 2014)

"Believing what you know ain't so" ...

Knock Knock ...
 

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