WINCC显示桌面
画面上有一个按钮,按一下就可以显示桌面。这个可以实现吗?键盘上的组合键都已经屏蔽。
答:可以用VBS实现。
在你建的按钮的属性中的鼠标右键 vbs动作里写如下程序
dim showDesktop
Set showDesktop=CreateObject("Wscript.Shell")
dim Path
Path = "D:\Documents and Settings\Administrator\Application Data\Microsoft\Internet Explorer\Quick Launch\显示桌面.scf"
‘这个路径根据你的电脑中具体路径来赋值。我系统装在D盘,一般是C盘。可以在你的系统盘下搜索出来”显示桌面.scf“文件
showDesktop.Run "Cmd /C Start """" """ & Path& """",0
答:可以用VBS实现。
在你建的按钮的属性中的鼠标右键 vbs动作里写如下程序
dim showDesktop
Set showDesktop=CreateObject("Wscript.Shell")
dim Path
Path = "D:\Documents and Settings\Administrator\Application Data\Microsoft\Internet Explorer\Quick Launch\显示桌面.scf"
‘这个路径根据你的电脑中具体路径来赋值。我系统装在D盘,一般是C盘。可以在你的系统盘下搜索出来”显示桌面.scf“文件
showDesktop.Run "Cmd /C Start """" """ & Path& """",0
新闻详情