FindusTheCat
Programmer
Hello,
I've got a big problem: I want to send keystrokes to the Windows Notepad but I don't want the user to see the notepad-Programm. So I choose the option vbHide (Sourcecode see below).
But it doesn't work...if I select the option vbNormalFocus it works without any trouble, but as already said, I don't want to see the user the notepad-program.
It could be also helpful if sb. could tell me how to get text into the clipboard...
Thank you very much,
Findus
Sourcecode:
Private Sub Befehl0_Click()
Dim pad As Long
pad = Shell("C:\notepad.exe", vbHide)
AppActivate pad, True
SendKeys "Hello World !"
End Sub
I've got a big problem: I want to send keystrokes to the Windows Notepad but I don't want the user to see the notepad-Programm. So I choose the option vbHide (Sourcecode see below).
But it doesn't work...if I select the option vbNormalFocus it works without any trouble, but as already said, I don't want to see the user the notepad-program.
It could be also helpful if sb. could tell me how to get text into the clipboard...
Thank you very much,
Findus
Sourcecode:
Private Sub Befehl0_Click()
Dim pad As Long
pad = Shell("C:\notepad.exe", vbHide)
AppActivate pad, True
SendKeys "Hello World !"
End Sub