sending commands

vb24
07-20-2003, 04:09 PM
what i would like to do is have my prog send a command to another program, such as notepad. How would i have a command such as SendKeys "bcdefg" be sent to notepad when the letter 'a' is typed in notepad?

manavo
07-20-2003, 04:41 PM
With the FindWindow and FindWindowEx API's you can get the hwnd of notepad. Then with the GetWindowText and SetWindowText you can see the text in the notepad window.

JordanChris
07-21-2003, 04:57 AM
If you know the title of the window, you can use "AppActivate Window_Title"

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum