首页 > 其他分享 >防锁屏.vbs

防锁屏.vbs

时间:2023-03-26 15:44:18浏览次数:30  
标签:Environment set wscript CreateObject echo vbs ws 防锁

Set ws=Wscript.CreateObject("Wscript.Shell") If ws.expandenvironmentstrings("%strikkeyflag%")=("on")Then wscript.echo("Screen Never Lockout") ws.Environment("user").Item("strikkeyflag")="off" set mi=getobject("winmgmts:win32_process").instances_ for each p in mi if ucase(p.name)=ucase("wscript.exe")then p.terminate End If Next wscript.quit Else wscript.echo("Screen Never Lockout") ws.Environment("user").Item("strikkeyflag")="on" do set WshShell = CreateObject("WScript.Shell") WshShell.SendKeys"{ScrollLock}" wscript.sleep(280000) 'ms Loop end if

标签:Environment,set,wscript,CreateObject,echo,vbs,ws,防锁
From: https://www.cnblogs.com/yixiaoxia/p/17258801.html

相关文章