Results 1 to 2 of 2

Thread: Send keystrokes using a windows handle

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2000
    Posts
    1

    Lightbulb

    Anyone have an example of how to send keystrokes such as "Alt-A", etc. to another application using a window handle?

  2. #2
    Junior Member
    Join Date
    May 2000
    Posts
    25
    Find these at vbapi.com:
    Check out the FindWindow Function to get a handle to the window, then the BringWindowToTop function to be able to send keystrokes to the window through the API, then keybd_event or SendInput (keybd_event is simpler) to actually send the keystrokes.

    ________

    Bob K

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