WARNING! If you run this script and click on the window, it hangs. This is as it should be! But if you remove the comment, everything will be OK! Any ideas. Thanks. Global Const $WM_ACTIVATE = 0x0006 Global Const $WM_LBUTTONDOWN = 0x0201 ;GUIRegisterMsg($WM_ACTIVATE, 'WM_ACTIVATE') GUIRegisterMsg($WM_LBUTTONDOWN, 'WM_LBUTTONDOWN') _MyGUI() Func WM_ACTIVATE($hWnd, $iMsg, $wParam, $lParam) Return 'GUI_RUNDEFMSG' EndFunc ;==>WM_ACTIVATE Func WM_LBUTTONDOWN($hWnd, $iMsg, $wParam, $lPa