我不知道如何使用VBS按下Control (HighLight everything),这是什么?
Set objShell = WScript.CreateObject("WScript.Shell")
Set WshShell = WScript.CreateObject("WScript.Shell")
WScript.Sleep 500
object.SendKeys "^A"我明白了
Windows脚本宿主
脚本: C:\Users\Shane own\Desktop\A.vbs Line: 4 Char: 1 Error: Object required:'object‘代码: 800A01A8源代码: Microsoft VBScript运行时错误
好的
知道吗?
发布于 2014-08-21 20:01:18
SendKeys是WshShell类的一种方法。您创建了两个WshShell对象(objShell和WshShell)。只需使用其中一个对象调用SendKeys方法即可。
objShell.SendKeys "^A"https://stackoverflow.com/questions/25434757
复制相似问题