这是从键盘(CTRL+L
)获取输入的正确方法吗?
dim WshShell
set WshShell = CreateObject("WScript.Shell")
wait(2)
WshShell.SendKeys("^108")
wait(2)
或者
dim WshShell
set WshShell = CreateObject("WScript.Shell")
wait(2)
WshShell.SendKeys("^l")
wait(2)
发送CTRL-L的正确方法SendKeys
是这样的:
WshShell.SendKeys("^l")
这是SendKeys
获取更多信息的方法的MSDN参考:
https://msdn.microsoft.com/zh-CN/library/8c6yea83(v=vs.84).aspx
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句