Showing posts with label sendkeys using vbscript. Show all posts
Showing posts with label sendkeys using vbscript. Show all posts
Friday, 15 June 2012
SendKeys VBscript Example
On Error Resume Next
Set WshShell = CreateObject("WScript.Shell")
strWindowNameEN = "PictureTaker Personal Edition"
successEN = False
Do
successEN = WshShell.AppActivate(strWindowNameEN)
Loop Until (successEN = True)
If (successEN) Then
WshShell.AppActivate strWindowNameEN
End IF
WshShell.SendKeys "{TAB}"
WshShell.SendKeys "{ENTER}"
Subscribe to:
Posts (Atom)