vbs怎么发送组合键" ctrl+shift+6 ,再按 X "

2024-11-21 23:54:48
推荐回答(2个)
回答1:

你是在telnet到路由器时挂起会话用的吧?
Dim objws
Set objws=WScript.CreateObject("wscript.shell")
WScript.Sleep 1000
objws.SendKeys "^+6"
objws.SendKeys "x"

回答2:

特殊控制键 特殊字符
Shift +
Ctrl ^
Alt %
============================

Dim WshShell
Set WshShell=WScript.CreateObject("WScript.Shell")
WshShell.SendKeys "^+6"
WScript.Sleep 200
WshShell.SendKeys "X"