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
the API send keys
like send "A" & CAPSLOCK
note the windows sendkeys does not work for command keys like CAPSLOCK
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
No, that's not that one. It emulates the behaviour of 'SendKeys()' and provides a similar means.
ASKER
nice, sorry,
I'm in C# if you happen top have it
I'm in C# if you happen top have it
See also http://www.codeproject.com/dialog/keystroke.asp ("CKeystrokeEngine")
ASKER
this does help thanks
C#? Then see http://www.codeproject.com/useritems/SendKeys.asp ("Sending Keystrokes to other Application in C#")
ASKER
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.
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.
ASKER
it will not work on this project, ??? well all but the NUMLOCK AND CAPLOCK... work
sorry, I need to do API