RosettaCodeData/Task/Simulate-input-Keyboard/VBScript/simulate-input-keyboard.vbs

6 lines
209 B
Text
Raw Permalink Normal View History

2026-04-30 12:34:36 -04:00
Dim WshShell
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.SendKeys "{Down}{F2}"
WScript.Sleep 1000 ' one-second delay
WshShell.SendKeys "{Left}{Left}{BkSp}{BkSp}Some text here.~" ' ~ -> Enter