Industry Online Support
Technical Forum
4/25/2011 9:11 AM | |
Posts: 291 Rating: (69) |
Hi Klusser, Thanks again for your feedback! I feel very surprised with your "usage" ;-) With regard to your purpose, I used to write as followings to minimize the WinCC Graphics Runtime Window. Just for your information~! '---------------------------------------------------------------------------------------------------------- ' I call this subroutine from a MENU/Toolbar item, so there's an (Byval Item) argument. '---------------------------------------------------------------------------------------------------------- Sub ShowDesktop(Byval Item) Dim objWshShell Set objWshShell = CreateObject("Wscript.Shell") objWshShell.Run HMIRuntime.ActiveProject.path & "\showdesktop.scf" Set objWshShell = Nothing End Sub '---------------------------------------------------------------------------------------------------------- Please extract the attachment & put the content right at the root path of your Project path. After calling the subroutine, WinCC Graphics Runtime windows will be minimized.
Well ~ just for your information, Best regards, Komi Attachmentshowdesktop.zip (374 Downloads) |
Follow us on