; Press Esc to terminate script, Pause/Break to "pause" Global $Paused #include HotKeySet("{F10}", "Terminate") HotKeySet("{F8}", "Example") ;;;; Body of program would go here ;;;; While 1 Sleep(10000000) WEnd ;;;;;;;; Func Terminate() Exit 0 EndFunc Func Example() ; Retrieve the window text of the active window. Local $sText = WinGetText("[ACTIVE]") ; Display the window text. MsgBox($MB_SYSTEMMODAL, "", $sText) EndFunc ;==>Example