Solved

Hooking into a specific application

Posted on 2006-11-08
4
145 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
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 500 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Sending Gmail through Delphi 3 91
add combobox item based on numbers 9 124
Delphi selector screen 2 70
How to debug For loops? 3 46
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…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

895 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

13 Experts available now in Live!

Get 1:1 Help Now