Jump to content

help with WM_CREATE


zhao
 Share

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

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 by zhao
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...