Page 1 of 1

Pause/escape feature for Pickled's Recipe Crafter

Posted: March 10th, 2005, 12:44 pm
by tault_loraik
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.

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


Posted: March 10th, 2005, 1:00 pm
by tault_nazeroth
Hell yeah, that always annoyed me. I'll give ya 10 points coz its a macro, but its only small.