Guest zorro Posted December 26, 2004 Posted December 26, 2004 Is it possible to pause the script until a specific key maniplulation is done? I mean a script is paused until the user do CTRL $ , afterwards the script continues. THX Merry christmas Z
DirtyBanditos Posted December 26, 2004 Posted December 26, 2004 (edited) Is it possible to pause the script until a specific key maniplulation is done?I mean a script is paused until the user do CTRL $ , afterwards the script continues.THXMerry christmasZ<{POST_SNAPBACK}> Hello this is a exampel for use a pause Toogle On/Off and Exit Script I hope this help you.Global $PausedHotKeySet("{PAUSE}", "TogglePause")HotKeySet("{ESC}", "Terminate");;;; Body of program would go here;;;;Opt("WinWaitDelay",100)Opt("WinTitleMatchMode",4)Opt("WinDetectHiddenText",1)Opt("MouseCoordMode",0)WinWait("Sacred","")If Not WinActive("Sacred","") Then WinActivate("Sacred","")WinWaitActive("Sacred","")Sleep(100)Send("Hello"); ----------- Exit Program -------------- Func TogglePause() $Paused = Not $Paused While $Paused Sleep(100) ToolTip('Script is "Paused"', 0, 0) Wend ToolTip("")EndFunc ;==>TogglePauseFunc Terminate() Exit 0EndFunc ;==>Terminate Edited December 26, 2004 by DirtyBanditos
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