|
Re: Sending keys to a process?
SendKeys is accessible via the WScript.Shell object too; so in VBScript you can do:
Dim objSH
Set objSH = CreateObject("WScript.Shell")
The most interesting methods will be AppActivate (if I remember correctly) and SendKeys. I've never actually used this in VB6, but I'd guess you add a reference and that lets you create an instance of WScript.Shell to use.
Edit: just checked; yup, it's AppActivate. Googling for the method names will help.
__________________
"I'm not a genius. Why do I have to suffer?"
Last edited by mackenga; Dec 31st, 2007 at 9:24 AM.
Reason: Tried out to confirm it worked
|