Jump to content
Sign in to follow this  

help with WM_CREATE

Recommended Posts


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


while 1

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 by zhao

Share this post

Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this