Pause/escape feature for Pickled's Recipe Crafter
Posted: March 10th, 2005, 12:44 pm
This will allow you to pause the script and allow you to type by using the "Pause/Break" key then unpause it when done typing by pressing the "Pause/Break" key again. When paused you will see a msg in the upper left that says "Script is "Paused"".
I feel it is a nice addition to the crafting script in the event you need to stop mid-stream to talk to your local GM.
I feel it is a nice addition to the crafting script in the event you need to stop mid-stream to talk to your local GM.
Code: Register to unlock hidden link
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;; Place at top of script just under the last Global varible ;;;;;;;;;;
Global $Paused
HotKeySet("{PAUSE}", "TogglePause")
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;; Place at very bottom of script ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Func TogglePause()
$Paused = NOT $Paused
While $Paused
sleep(100)
ToolTip('Script is "Paused"',0,0)
WEnd
ToolTip("")
EndFunc