AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Can AutoHotKey respond to WM messages?

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
02clams



Joined: 27 Apr 2005
Posts: 18

PostPosted: Sun May 01, 2005 11:40 pm    Post subject: Can AutoHotKey respond to WM messages? Reply with quote

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
Shocked
_________________
02Clams
Back to top
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10480

PostPosted: Mon May 02, 2005 10:36 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group