IanN1990 Posted January 20, 2013 Share Posted January 20, 2013 (edited) I would like to make a _WinAPi_ Hook ( just found the function today and its amazingly helpful) with windows messages. Searching the forum i can only find the following topics;Which all show what i am after, but doing it via making a autoit GUI and setting up a GUIRegistermsg.I checked the helpfile on the SetWindowHook, and tryed out the other $WH_Messages but none worked.Is what i am asking releasticly possible? Edited January 20, 2013 by IanN1990 Link to comment Share on other sites More sharing options...
KaFu Posted January 20, 2013 Share Posted January 20, 2013 Maybe this example contains what you're looking for? OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2022-Nov-26) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Feb-16) HMW - Hide my Windows (2018-Sep-16) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2023-Jun-03) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16) Link to comment Share on other sites More sharing options...
IanN1990 Posted January 20, 2013 Author Share Posted January 20, 2013 Though it took me a little while to fully understand how the code works, i dont think it can do what i am after. Assuming it can only be 2 set to check for the values listed from comments. It cant be used 2 check for windows creation, destruction, activation, redrawn or flash messages. Link to comment Share on other sites More sharing options...
KaFu Posted January 20, 2013 Share Posted January 20, 2013 Much of the describe events can be captured, check the values starting from $EVENT_OBJECT_CREATE and take a look at this documentation too: http://msdn.microsoft.com/en-us/library/windows/desktop/dd318066%28v=vs.85%29.aspx If you want to hook into the window message queue directly you either have to use subclassing or injecting a hook dll, here are some links in no special order: OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2022-Nov-26) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Feb-16) HMW - Hide my Windows (2018-Sep-16) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2023-Jun-03) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16) 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