| View previous topic :: View next topic |
| Author |
Message |
02clams
Joined: 27 Apr 2005 Posts: 18
|
Posted: Sun May 01, 2005 11:40 pm Post subject: Can AutoHotKey respond to WM messages? |
|
|
I am trying to monitor the WM_DRAWCLIPBOARD message in windows. How do I write a message handler for this once I place the AutoHotKey window in the clipboard viewer chain?
Can this even be done? It seems that it should be possible because any window in the clipboard chain will receive the message. Perhaps it already does via %clipboardall%. It this is the case, can I intercept the WM_DRAWCLIPBOARD message with a gosub label?
Thanks for your input
 _________________ 02Clams |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10480
|
Posted: Mon May 02, 2005 10:36 am Post subject: |
|
|
Currently, there's no way to do it directly. However, support for receiving messages is tentatively planned.
In the meantime, you might be able to write a small interface program that goes into the chain. When it receives the message, it could notify the script by using keybd_event() to activate one of the script's hotkeys.
Edit: Support for receiving messages has been added in v1.0.38. See OnMessage() for details. |
|
| Back to top |
|
 |
|