Kip Posted June 16, 2008 Share Posted June 16, 2008 Hi, I want to register a message from a GUI created with _WinAPI_CreateWindowEx(). Guiregistermsg only works for standard autoit GUIs. I saw this function: _WinAPI_RegisterWindowMessage(), but I don't know how that works, and if it even does what I think it will do. If anyone knows a answer,.. Please tell MailSpons: Fake SMTP server for safe email testing Dutch postcode & address API. Link to comment Share on other sites More sharing options...
Kip Posted June 16, 2008 Author Share Posted June 16, 2008 Maybe PeekMessage? MailSpons: Fake SMTP server for safe email testing Dutch postcode & address API. Link to comment Share on other sites More sharing options...
ProgAndy Posted June 16, 2008 Share Posted June 16, 2008 You have to use $oldWindProc = _WinAPI_SetWindowLong($winhandle,$GWL_WNDPROC,DllCallBackGetPtr($MyWndProc))The MyWndProc like this:Func MyWinProc($hwnd,$Msg,$wParam,$lParam) Switch $Msg Case ... Case Else Return _WinAPI_CallWindowProc($oldWindProc,$hwnd,$Msg,$wParam,$lParam) EndSwitch EndFunchttp://msdn.microsoft.com/en-us/library/ms633591.aspxhttp://msdn.microsoft.com/en-us/library/ms633571(VS.85).aspx *GERMAN* [note: you are not allowed to remove author / modified info from my UDFs]My UDFs:[_SetImageBinaryToCtrl] [_TaskDialog] [AutoItObject] [Animated GIF (GDI+)] [ClipPut for Image] [FreeImage] [GDI32 UDFs] [GDIPlus Progressbar] [Hotkey-Selector] [Multiline Inputbox] [MySQL without ODBC] [RichEdit UDFs] [SpeechAPI Example] [WinHTTP]UDFs included in AutoIt: FTP_Ex (as FTPEx), _WinAPI_SetLayeredWindowAttributes Link to comment Share on other sites More sharing options...
Kip Posted June 16, 2008 Author Share Posted June 16, 2008 (edited) I guess "Case ..." should be "Case $WM_NOTIFY", etc? Edited June 16, 2008 by Kip MailSpons: Fake SMTP server for safe email testing Dutch postcode & address API. Link to comment Share on other sites More sharing options...
ProgAndy Posted June 17, 2008 Share Posted June 17, 2008 Right. The Nitifications from http://msdn.microsoft.com/en-us/library/ms632595(VS.85).aspxAnd the control-specific messages, like the $LVM_ Events, too Possibly, you have to call the _WinAPI_CallWindowProc for Messages you handle, too if you want the original processing, too *GERMAN* [note: you are not allowed to remove author / modified info from my UDFs]My UDFs:[_SetImageBinaryToCtrl] [_TaskDialog] [AutoItObject] [Animated GIF (GDI+)] [ClipPut for Image] [FreeImage] [GDI32 UDFs] [GDIPlus Progressbar] [Hotkey-Selector] [Multiline Inputbox] [MySQL without ODBC] [RichEdit UDFs] [SpeechAPI Example] [WinHTTP]UDFs included in AutoIt: FTP_Ex (as FTPEx), _WinAPI_SetLayeredWindowAttributes Link to comment Share on other sites More sharing options...
Kip Posted June 17, 2008 Author Share Posted June 17, 2008 Ok, thanks. MailSpons: Fake SMTP server for safe email testing Dutch postcode & address API. Link to comment Share on other sites More sharing options...
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