Using windows messages listerning to remote control

4 posts in this topic

spytek_98 0

I hope some one can help me out. I want to listen to a particular process that is currently loaded in memory. The process that I want to listen to is a tv remote control device prgram that responds to button clicks on a remote. My challenge is some how listen to the button clicks and redirect them to another app.

I want to be able to listen to the windows messages coming from the remote control program, something like this

procedure TSomeThing_Control.WndProc(var Message: TMessage);

begin

if (Message.Msg >= WM_USER) and (Message.Msg < $8000) then

....

...;

inherited;

end;

How would I write this in AuoIt script? I'm assuming i would use GUIRegisterMsg but I have no idea how to listen to message from a specific process?

Thanks for your help

D

Share this post

Link to post

Share on other sites

Zedna 134

If you couldn't achieve something in AutoIt then I recommend to use combination of AutoIt with another language (C++, Delphi,...). You can write DLL or commandline or hidden GUI "helper app" and use it from AutoIt ...