Results 1 to 2 of 2

Thread: Send keys to keyboard

  1. #1

    Thread Starter
    Member
    Join Date
    Nov 1999
    Posts
    48

    Send keys to keyboard

    I am using the sendinput api call and it works great if I send a key to the keyboard, but when I try to send say SHIFT + "n", it will capitalize the N, but the shift stays locked. So the next letter is capitalized too. I have code that presses the key and then unpresses it, like the api suggests.

    So I press SHIFT
    Press "n"
    unpress "n"
    unpress SHIFT

    All the variations of the above do not work either (ie. unpress SHIFT before unpressing "n"). If anyone knows what I am doing wrong please let me know. I have searched the web over and over.

  2. #2
    Addicted Member Virtual24's Avatar
    Join Date
    May 2001
    Posts
    228
    I had some troubles with the Sendinput function too... you might want to try using the keybd_input function. It worked for me.
    To protect time is to protect everything...

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