VB Scripting 中的反锁方法? [英] Anti-locking method in VB Scripting?

查看:35
本文介绍了VB Scripting 中的反锁方法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果系统每 5 分钟锁定一次,那么使用什么 VB Scripting 方法来避免每 5 分钟锁定一次系统?

If system locks every 5 minutes, what VB Scripting method is used to avoid system locking every 5 minutes?

推荐答案

将此文件保存为 .vbs 格式根据您的要求更改睡眠时间 400.

Save this file in the format of .vbs Change the Sleep Time 400 based on your requirement.

Set wshShell =wscript.CreateObject("WScript.Shell")
do
wscript.sleep 400
wshshell.sendkeys "{SCROLLLOCK}"
wscript.sleep 400
loop

这篇关于VB Scripting 中的反锁方法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆