zhao Posted April 12, 2007 Posted April 12, 2007 (edited) I want to show a msgbox when one program create a window,but my code does not work. #include <GUIConstants.au3> Global Const $WM_CREATE = 0x1 GUIRegisterMsg($WM_CREATE, "MY_WM_CREATE") while 1 wend Func MY_WM_CREATE($hWnd, $Msg, $wParam, $lParam) MsgBox(0,"","someone create a window") EndFunc ;==>MY_WM_CREATE And I want to get the handle of the new window ,but I still have no ideas. edited.I just forget to add a loop,but it still doesn't work Edited April 12, 2007 by zhao
Zedna Posted April 12, 2007 Posted April 12, 2007 As I can know GUIRegisterMsg() works with YOUR GUI windows. So use WinList and/or WinExists functions ... Resources UDF ResourcesEx UDF AutoIt Forum Search
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now