PDA

Click to See Complete Forum and Search --> : Send keystrokes using a windows handle


zakrzep
May 16th, 2000, 12:54 AM
Anyone have an example of how to send keystrokes such as "Alt-A", etc. to another application using a window handle?

Bob724
May 16th, 2000, 06:06 AM
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