vbs按键star+u+Enter
来源:百度知道 编辑:UC知道 时间:2024/06/07 15:44:29
就是重启
你说的是ALT键吧,Shift — +;Ctrl — ^;Alt — %
方法:
Set WshShell=CreateObject("WScript.Shell")
WshShell.SendKeys "%U"
WScript.Sleep 1000 '最好停顿1秒,让它反映过来.
WshShell.SendKeys "{Enter}"
wscript.quit
上面的就是了!!
如果是重起电脑,那方法是:
Set WshShell=CreateObject("WScript.Shell")
WshShell.SendKeys "%{F4}"
WScript.Sleep 1000 '最好停顿1秒,让它反映过来.
WshShell.SendKeys "{R}"
wscript.quit
应该是这样的,我也没试过.但按键功能我常用.