jimmyvee1 Posted October 29, 2007 Share Posted October 29, 2007 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 More sharing options...
Joon Posted October 29, 2007 Share Posted October 29, 2007 Straight from the Helpfile, just changed value for Enter key #include <Misc.au3> $dll = DllOpen("user32.dll") While 1 Sleep ( 250 ) If _IsPressed("0D", $dll) Then MsgBox(0,"_IsPressed", "End Key Pressed") ExitLoop EndIf WEnd DllClose($dll) Link to comment Share on other sites More sharing options...
HeffeD Posted October 29, 2007 Share Posted October 29, 2007 Hmmm... I wonder what this could be for? Meh.... Link to comment Share on other sites More sharing options...
Blue_Drache Posted October 29, 2007 Share Posted October 29, 2007 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 More sharing options...
jimmyvee1 Posted October 30, 2007 Author Share Posted October 30, 2007 Thanks guys...I looked and looked and I just did not see it. I knew it was there Thanks again! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now