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.
(!empty($user->lang['CODE'])) ? $user->lang['CODE'] : ucwords(strtolower(str_replace('_', ' ', 'CODE'))):
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;; 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