• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

vbs script help.

larciel

Diamond Member
I used to have this command script but erased it.

How do you emulate keyboard typing with vbs?

simple as a single alphabet as wel as tab and enter, plus combination keys like alt+f4

tia!
 
Dim objShell
Set objShell = CreateObject("WScript.Shell")
objShell.Run "C:\Windows\System32\Notepad.exe",,False

WScript.Sleep 1000

objShell.AppActivate "Untitled - Notepad"

objShell.SendKeys "Hello World!"
'Just do a search for sendkeys and you will find all the symbols for various special key combinations such as alt+f4.
 
Back
Top