博客
关于我
VBS 打开图片-幻灯片形式
阅读量:750 次
发布时间:2019-03-23

本文共 456 字,大约阅读时间需要 1 分钟。

■前言两个屏幕,主屏和副屏。

让主屏幕,进入黑屏状态。
副屏幕可以继续使用。

■建立一个全黑的图片(MS Paint)打开图片编辑软件(如MS Paint),创建并保存一张全黑图片。确保图片格式为PNG或BMP,适合后续使用。

■运行VBS脚本运行如下VBS代码:

blackScreen()Function blackScreen()    Dim wshShell    Set wshShell = Wscript.CreateObject("Wscript.Shell")    wshShell.Run("C:\test\black.png")  ' 替换为实际图片路径    WScript.Sleep 1000    wshShell.SendKeys "{F5}"  ' 当itary操作(如刷新页面)End Function

这个脚本会自动打开全黑图片,并暂停1秒后按下F5键。

■补充说明

单位电脑可能存在某些功能被禁用的问题。建议直接在图片中按下F5以确保无误。此方法在家用电脑上效果良好。

转载地址:http://zcwzk.baihongyu.com/

你可能感兴趣的文章
poj 2965 The Pilots Brothers' refrigerator-1
查看>>
poj 3026( Borg Maze BFS + Prim)
查看>>
POJ 3041 - 最大二分匹配
查看>>
POJ 3041 Asteroids(二分匹配模板题)
查看>>
Qt笔记——标准文件对话框QFileDialog
查看>>
poj 3083 Children of the Candy Corn
查看>>
POJ 3083 Children of the Candy Corn 解题报告
查看>>
POJ 3253 Fence Repair C++ STL multiset 可解 (同51nod 1117 聪明的木匠)
查看>>
Qt笔记——控件总结
查看>>
poj 3262 Protecting the Flowers 贪心
查看>>
poj 3264(简单线段树)
查看>>
Qt笔记——布局管理三件套分割窗口、停靠窗口和堆栈窗口
查看>>
poj 3277 线段树
查看>>
POJ 3349 Snowflake Snow Snowflakes
查看>>
POJ 3411 DFS
查看>>
poj 3422 Kaka's Matrix Travels (费用流 + 拆点)
查看>>
Qt笔记——官方文档全局定义(二)Functions函数
查看>>
POJ 3468 A Simple Problem with Integers
查看>>
poj 3468 A Simple Problem with Integers 降维线段树
查看>>
poj 3468 A Simple Problem with Integers(线段树 插线问线)
查看>>