Link to home
Start Free TrialLog in
Avatar of Micki-Weaver
Micki-Weaver

asked on

send KEYS with WIN API

can some one give a demo of

the API send keys

like send "A" & CAPSLOCK


note the windows sendkeys does not work for command keys like CAPSLOCK
ASKER CERTIFIED SOLUTION
Avatar of jkr
jkr
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Micki-Weaver
Micki-Weaver

ASKER

that is the windows.SendKeys
it will not work on this project, ??? well all but the NUMLOCK AND CAPLOCK... work

sorry, I need to do API
No, that's not that one. It emulates the behaviour of 'SendKeys()' and provides a similar means.
nice, sorry,
I'm in C# if you happen top have it
this does help thanks
C#? Then see http://www.codeproject.com/useritems/SendKeys.asp ("Sending Keystrokes to other Application in C#")
nope that one does not work for the CAPSLOCK AND NUMLOCK
If I use Spy++ I see that CAPSLOCK and NUMLOCK generate WM_KEYDOWN and WM_KEYUP messages with VK_NUMLOCK and VK_CAPITAL as the keys.

Only edit boxes seem to receive the messages though.

Not sure if this helps since you are using C#. Perhaps you should get this question moved to the C# zone.