-
I need to be able send an emulated keystroke to another windows application, that does not have the focus. My VB program is going to receive commands via the serial port, process the commands, then send an appropriate emulated "keystroke" to another windows application.
How do I create an emulated keystroke and send it to the other windows program?
Thanks,
Eric
-
Eric,
You can use either sendkeys (though the user may see this) or you can use the sendinput api.
Wade
-
Thanks WadeD. I would rather use the API so the user does not see the focus changing if possible. Could you please help me with the syntax of the sendinput api?
Thanks,
Eric