Macro Tool - assigning text to windows fucntion keys..how?  
Author Message
Puzzl3b0x





PostPosted: Visual C# General, Macro Tool - assigning text to windows fucntion keys..how? Top

Hello all:

I'm new to C# and programming in gereral. I'm trying to create a macro tool, that will display text when a key is pressed. In other words, I'm trying to figure out how to change windows functionallity for keys.


For example:

If the <key> is pressed (say 'F1'), I would like the text "asdf" to show up in a browser or messenger or something. I tried to find a solution on google, but had no luck. I'm not searching for the right thing. Any help would be much appreciated..thank you! Sorry if this is already posted elsewhere.

Vinny



Visual C#12  
 
 
Brendan Grant





PostPosted: Visual C# General, Macro Tool - assigning text to windows fucntion keys..how? Top

From the sounds of it your app wont have focus when these keys are being pressed so wont be informed of them normally... in your case you’ll need to use some system hooks to ask the system to tell your app about certain events such as key presses.