#include Global $Paused HotKeySet("{PAUSE}", "TogglePause") HotKeySet("{ESC}", "Terminate") $oIE = _IECreate("http://www.google.com") $hdlIeWindow = _IEPropertyGet($oIE, "hwnd") WinActivate($hdlIeWindow) If WinActive($hdlIeWindow) Then ToolTip("IE is activated!", 0, 0) Else ToolTip("IE is not activated!", 0, 0) Sleep(2000) 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