Change the key being pressed with C#

Posted by Benny on Stack Overflow See other posts from Stack Overflow or by Benny
Published on 2010-03-15T17:35:58Z Indexed on 2010/03/15 17:39 UTC
Read the original article Hit count: 150

Filed under:
|
|

Hey, I'm trying to write a program in C# that will track the pressing of certain keys (using a keyboard hook), and send different ones instead.

For instance, when I press the A key it will instead send the Q key.

I used http://www.codeproject.com/KB/cs/CSLLKeyboardHook.aspx this for my hooks and tried to use the SendKeys function, but I get an exception about the garbage collector destroying some object inside the hook class.

© Stack Overflow or respective owner

Related posts about c#

Related posts about hooks