Results 1 to 3 of 3

Thread: Virtual Keystroke, take 2

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2000
    Location
    Platteville, WI, USA
    Posts
    4

    Post

    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

  2. #2
    Hyperactive Member
    Join Date
    Nov 1999
    Posts
    363

    Post

    Eric,

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

    Wade

  3. #3

    Thread Starter
    New Member
    Join Date
    Jan 2000
    Location
    Platteville, WI, USA
    Posts
    4

    Post

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width