LabVIEW启用/禁用Windows屏幕保护程序

简介: LabVIEW启用/禁用Windows屏幕保护程序

LabVIEW启用/禁用Windows屏幕保护程序


此VI使用LabVIEW中的Windows注册表功能将值写入ScreenSaveActiveKey。VI在Windows注册表中打开对桌面子键的引用,然后根据用户推送屏幕保护程序控件提供的布尔值将值写入屏幕保存活动键。最后,VI关闭Windows注册表中的桌面子键。


要求


LabVIEW完整开发系统2012或兼容产品


实现或执行代码的步骤


将前面板上的切换开关切换为启用或禁用Windows屏幕保护程序


单击“应用”按钮将设置保存到注册表


Description


This VIuses the Windows Registry functions in LabVIEW to write values to the ScreenSaveActiveKey. The VI opens a reference to the Desktop sub key in the Windows registry,then write values to the ScreenSaveActive Key according to the boolean valueprovided by the user pushing theScreensaver Control. Finally, the VI closes the desktop sub key in the Windowsregistry


Requirements


LabVIEWFull Development System 2012 or compatible


Steps toImplement or Execute Code


Switchthe toggle on the Front Panel to either Enabled or Disable Windows Screensaver


Click theApply button to save the setting to the Registry


Introduction


PreventScreensave


ThisVI will prevent your screensaver from activating without disabling thescreensaver. It does this by setting thefocus on different windows and sending them an arbitrary keystroke.


Stepsto Complete




需要说明的是,上述的例程和文档,都是可以下载的,双击即可打开,其中压缩文件是可以采用粘贴复制的方式,拷贝到硬盘上。这不是图片,各位小伙伴看到后尝试一下,这个问题就不用加微信咨询了。有关LabVIEW编程、LabVIEW开发等相关项目,可联系们。附件中的资料这里无法上传,可去公司网站搜索下载。


LabVIEW程序,如下附件所示。

相关文章
|
4月前
|
安全 Ubuntu iOS开发
Nessus Professional 10.10 Auto Installer for Windows - Nessus 自动化安装程序
Nessus Professional 10.10 Auto Installer for Windows - Nessus 自动化安装程序
233 3
Nessus Professional 10.10 Auto Installer for Windows - Nessus 自动化安装程序
|
6月前
|
Ubuntu Linux Windows
如何在Ubuntu系统中安装Wine,借此来运行Windows程序
熟悉的登录画面出现,在Ubuntu系统中扫描登录微信程序。
|
6月前
|
Unix Linux 编译器
解决在Windows平台上运行Golang程序时出现的syscall.SIGUSR1未定义错误。
通过这种结构,你的代码既可以在支持 SIGUSR1 信号的系统上正常工作,又可以在不支持这些信号的 Windows 系统上编译通过,确保跨平台的兼容性和功能的完整性。
264 0
|
7月前
|
Windows
Windows下版本控制器(SVN)-验证是否安装成功+配置版本库+启动服务器端程序
Windows下版本控制器(SVN)-验证是否安装成功+配置版本库+启动服务器端程序
233 2
|
8月前
|
Windows
Windows下版本控制器(SVN)-启动服务器端程序
Windows下版本控制器(SVN)-启动服务器端程序
311 4
|
9月前
|
安全 Devops 测试技术
AppSpider 7.5.018 for Windows - Web 应用程序安全测试
AppSpider 7.5.018 for Windows - Web 应用程序安全测试
199 0
AppSpider 7.5.018 for Windows - Web 应用程序安全测试
|
安全 JavaScript Java
AppSpider Pro 7.5.015 for Windows - Web 应用程序安全测试
AppSpider Pro 7.5.015 for Windows - Web 应用程序安全测试
217 12
AppSpider Pro 7.5.015 for Windows - Web 应用程序安全测试
|
11月前
|
Windows
Windows程序的数字签名证书怎么申请
Windows程序的数字签名证书申请流程包括:准备企业资料(营业执照、税务登记证等),提交申请表及企业资料。经过初审、实名认证和二审后,等待1-5个工作日审核结果。审核通过后,CA机构颁发证书并通过邮件或邮寄方式发送。收到证书后按指南安装并使用签名工具对程序进行数字签名,确保软件完整性和可信度。注意证书有效期、管理和兼容性问题。
|
11月前
|
自然语言处理 安全 测试技术
HCL AppScan Standard 10.8.0 (Windows) - Web 应用程序安全测试
HCL AppScan Standard 10.8.0 (Windows) - Web 应用程序安全测试
766 0
HCL AppScan Standard 10.8.0 (Windows) - Web 应用程序安全测试
|
安全 API C#
C# 如何让程序后台进程不被Windows任务管理器强制结束
C# 如何让程序后台进程不被Windows任务管理器强制结束
724 0

热门文章

最新文章