Link to home
Start Free TrialLog in
Avatar of alex1234
alex1234

asked on

To simulate a keystroke

How can I send for instance ALT + 'a' keystroke from a program? I didn't find any API except keybd_event() which does not have a way to specify the ALT key.

Platform: WINDOWS NT 4.0 and KeyboardEventEx() API is not available.
ASKER CERTIFIED SOLUTION
Avatar of BudVVeezer
BudVVeezer

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 nil_dib
nil_dib

>> it should work great for ALT messages too
not with VK_ALT (its not defined)!
use VK_MENU or 0x12 instead
LoL, ok!  Thanks for the tip!  Like I said, I've only used it for CTL keys.  =)

~Aaron