Click to See Complete Forum and Search --> : sending keystrokes in VBScript
nbaker
Jan 10th, 2001, 02:15 PM
Does anyone out there know of a command similar to SendKeys in VB for use in VBScript? I am trying to open a Dos window from VBScript code and send it some commands to automate a service. If anyone has any tips, i would appreciate it.
Thanks
Clunietp
Jan 10th, 2001, 10:23 PM
Ahh, I see what you mean now :)
You don't need sendkeys, you can use the windows script host object model to send keys to dos, all using VBScript!
dim objScripting
set objScripting = CreateObject("WScript.Shell")
objScripting.Run("myCommandLineHere")
set objScripting = nothing
Tom
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.