?
Solved

Hooking into a specific application

Posted on 2006-11-08
4
Medium Priority
?
154 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 

Author Comment

by:WoodyJ007
ID: 17896932
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 1000 total points
ID: 17900982
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
ID: 17905229
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
ID: 17945375
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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Suggested Courses
Course of the Month10 days, 12 hours left to enroll

765 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