Global $Paused HotKeySet("{PAUSE}", "TogglePause") HotKeySet("{ESC}", "Terminate") run( "C:\Program Files\Internet Explorer\IEXPLORE.EXE -new http://www.google.com","") ToolTip("Launching IE...", 0, 0) AutoItSetOption("WinTitleMatchMode", 1) Local $titleIeWindow = "Google " Global $hdlIeWindow = WinWait($titleIeWindow) ToolTip("IE is open!" & " hWnd = " & $hdlIeWindow, 0, 0) sleep(1000) WinActivate($hdlIeWindow) Sleep(2000) If WinActive($hdlIeWindow) Then ToolTip("IE is activated!", 0, 0) Else ToolTip("IE is not activated!", 0, 0) Sleep(2000) WinActivate($hdlIeWindow) Exit EndIf sleep(1000) ;WinWaitActive($hdlIeWindow, "", 5) ToolTip("IE is still active!", 0, 0) sleep(2000) WinMove($hdlIeWindow, "", 200, 30, 1000, 900) ToolTip("IE moved once!", 0, 0) sleep(2000) WinMove($hdlIeWindow, "", 60, 30, 1000, 900) ToolTip("IE moved again!", 0, 0) sleep(2000) WinClose($hdlIeWindow) Func TogglePause() $Paused = NOT $Paused While $Paused sleep(100) WEnd ToolTip("") EndFunc Func Terminate() Exit 0 EndFunc