Hello there, how can I SendKeys to the same window with out having to run a new instance of it every time I click on the command button on my form ?
Private Sub Command1_Click()
Shell "notepad", vbNormalFocus
SendKeys "This is a test string"
End Sub
The code above keeps opening a new notepad window every time I click on the command button, I wish to keep sending different text to the same window when ever I wish, with out running a new instance of the notepad excutable, how can I accomplish this in Visual Basic 5 please ?
Cheers MagicBytes