Thank you spudw2k! Both of those examples are exactly what I was looking for. I am new to this forum and do not know how to post my script but....
What I was after looks something like this:
Global $Paused, $Runner
HotKeySet("{PAUSE}", "TogglePause")
HotKeySet("{ESC}", "Terminate")
While 1
For $iX = 1 to 20
msgbox(1,"Title","1") ; This is an inline comment
Next
For $iX = 1 to 20
msgbox(1,"Title","2") ; This is an inline comment
Next
Wend
Exit
Func TogglePause()
$Paused = Not $Paused
While $Paused
Sleep(100)
ToolTip('Script is "Paused"', 0, 0)
WEnd
ToolTip("")
EndFunc ;==>TogglePause
Func Terminate()
Exit 0
EndFunc ;==>Terminate