Hey everyone,
I'm finding the OnMessage documentation hard to wrap my head around, but I think it's what I need to get the functionality I'm looking for.
Does anyone know what the code would look like to have the OnMessage command intercept a WM_CREATE message for a specific pid or some sort of process/window identifier? (ideally other than window title, because I'm trying to hide an instance of Acrobat that is continually opening and closing files with different titles)
Thank you!!
Using OnMessage to hide windows before they are displayed
-
- Posts: 20
- Joined: 16 Feb 2023, 11:07
Re: Using OnMessage to hide windows before they are displayed
OnMessage monitors messages sent to the script’s own windows — its main window or its GUI windows — not those of other applications.
Re: Using OnMessage to hide windows before they are displayed
You need to use Window Shell Hooks or Window Event Hooks. You can try the WinHook Class by FanaticGuru or look for "RegisterWindowMessage" and "SetWinEventHook" on the forum to see examples.
viewtopic.php?f=6&t=59149
viewtopic.php?f=6&t=59149