有些公司为了信息安全,可能会一刀切给所有人的电脑设置5-10分钟未操作就自动锁屏的功能
1.可以使用windows天然支持的vb,copy几行简单的代码,双击运行到后台即可。
Set ws=Wscript.CreateObject("Wscript.Shell")
wscript.echo("Press to continue ... ")
ws.Environment("user").Item("strikkeyflag")="on"
do
set WshShell = CreateObject("WScript.Shell")
wscript.sleep(24000) 'ms
WshShell.SendKeys"{ScrollLock}"
Loop