wblair8689
asked on
Intercept keystrokes
How can I write a program that runs in
the background and intercepts
keystrokes?
Is there some MFC that does this for me?
What I want to do is be able to remap
keystrokes so I can duplicate the program
found at http://www.halfkeyboard.com/
for example I could press the letter f
and the spacebar at the time and the
program would intercept that and pass
along a j.
Thanks!
Bill Blair
the background and intercepts
keystrokes?
Is there some MFC that does this for me?
What I want to do is be able to remap
keystrokes so I can duplicate the program
found at http://www.halfkeyboard.com/
for example I could press the letter f
and the spacebar at the time and the
program would intercept that and pass
along a j.
Thanks!
Bill Blair
ASKER
A link to another site isn't really an answer - although the link was helpful.
This MICROSOFT KB article has a complete example of intercepting keys...
HOWTO: Intercept Keyboard Input from Visual Basic
http://support.microsoft.com/support/kb/articles/Q177/9/92.ASP
Cheers!
HOWTO: Intercept Keyboard Input from Visual Basic
http://support.microsoft.com/support/kb/articles/Q177/9/92.ASP
Cheers!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
It looks like vb can not do this. It is not able to create system dll's to capture system events.
http://vbaccelerator.com/codelib/hook/vbalhook.htm