Solved

Hooking into a specific application

Posted on 2006-11-08
4
144 Views
Last Modified: 2010-04-05
Hi Guys,

I'm trying to write a program to hook into a specific application and capture the keyboard events.  

Before you ask I'm not writing snooping software the app in question is called RCMan.exe and is a hidden application that appears to accept infrared signals from my external soundcard and turn them into keyboard presses which is passed on to a bit of software written by creative.

I want to intercept these keyboard messages and redirect them into my application.

Many Thanks
Woody
0
Comment
Question by:WoodyJ007
  • 3
4 Comments
 

Author Comment

by:WoodyJ007
Comment Utility
by the way I used this http://delphi.about.com/library/bluc/text/uc063001a.htm as a starting point but I'm not sure how to make it hook into the specific application I want.
0
 
LVL 17

Accepted Solution

by:
Wim ten Brink earned 500 total points
Comment Utility
If I understand correctly, you should NOT build a keyboard hook since it would just capture all keys that this application is receiving. Instead, you need to use a message hook or maybe even a procedure hook to capture the keyboard messages that it is sending to all other applications. The MadComponents have often be mentioned as being very useful to do such a thing so a link to http://www.madshi.net is appropiate here. :-)
0
 

Author Comment

by:WoodyJ007
Comment Utility
Thanks for the link.  I've had a look at it and it doesn't seem to do what I want.

I found out last night that I need to intercept a particular message.  Something like WM_USER + 12268.

The lparm of that message appears to be the key on the remote pressed.  If I could somehow intercept this message and handle it in my application then that would do the trick.

After spending many hours trying to solve this I've decided to give up and buy another remote that comes with an SDK.  If you can point me in the right direction of a IR remote that I can easily talk to you can have the points.

Thanks
Woody
0
 

Author Comment

by:WoodyJ007
Comment Utility
I revisited your link and while it didn't help with my original problem it did help a little with something else I was working on.

Thanks
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
This video discusses moving either the default database or any database to a new volume.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now