PDA

Click to See Complete Forum and Search --> : Virtual Keystroke, take 2


ejwipp
Jan 12th, 2000, 09:03 PM
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

WadeD
Jan 13th, 2000, 11:09 AM
Eric,

You can use either sendkeys (though the user may see this) or you can use the sendinput api.

Wade

ejwipp
Jan 13th, 2000, 11:19 AM
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