Jump to content

Pause script and wait for key entry to start again


Recommended Posts

I am searching for the command to pause a script until I hit the enter key. After I hit the enter key I want he script to continue. My example is; start a script and once it reaches a captcha screen I want it to pause and wait until hit the enter key and then I want the script to continue and finish the script. thanks for any help.......Jim

Link to comment
Share on other sites

From the Help File under "HotKeySet()"

Global $Paused
HotKeySet("{PAUSE}", "TogglePause")


;;;; Body of program would go here ;;;;
While 1
    Sleep(100)
WEnd
;;;;;;;;

Func TogglePause()
    $Paused = NOT $Paused
    While $Paused
        sleep(100)
        ToolTip('Script is "Paused"',0,0)
    WEnd
    ToolTip("")
EndFunc

Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache

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