使用 VBS 模拟按下键盘上的按钮(我需要强制按下“/”)

Simulate Pressing Buttons On Keyboard With VBS (I need to force press "/")

我需要帮助使用 VBS 强制按下用户键盘上的“/”键,但是我似乎找不到任何东西来表明这是否可行。到目前为止我的代码:

WScript.sleep 900
set wShell = createObject("wscript.shell")
wShell.sendKeys ">>>Activating Core Statistics {ENTER}"

我希望它发送键“{/}”或其他命令(如果这是命令的话)。如果不可能,请告诉我。谢谢:)

此脚本打开记事本并强制使用“/”键。

  WScript.sleep 900
set wShell = createObject("wscript.shell")
wShell.run "notepad.exe"
Wscript.Sleep 500
wShell.sendKeys "/"
Wscript.Sleep 500
wShell.SendKeys "~"

告诉我它是否有效。