gerkspap
02-06-2003, 10:53 AM
I'm new to WHS so I'd appreciate any help. I'm trying to create a script to open my webcam's "monitor" application and start the "monitor" process. The keyboard shortcut to start the process is <CTRL><M>. The script below opens the application but does not start the "monitor" process.
'VBScript Activate Webcam
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run """C:\Program Files\Creative\WebCam Monitor\Monitor.exe"""
WshShell.AppActivate ("WebCam Monitor")
WScript.Sleep 10000
WshShell.SendKeys "^"
WScript.Sleep 500
WshShell.SendKeys "M"
WScript.Quit
Any help would be appreciated.
'VBScript Activate Webcam
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run """C:\Program Files\Creative\WebCam Monitor\Monitor.exe"""
WshShell.AppActivate ("WebCam Monitor")
WScript.Sleep 10000
WshShell.SendKeys "^"
WScript.Sleep 500
WshShell.SendKeys "M"
WScript.Quit
Any help would be appreciated.