5/20/2015 7:05 AM | |
Joined: 10/3/2010 Last visit: 9/13/2024 Posts: 1560 Rating: (191) |
Juan, the code you are trying is VBA and not VBS. VBA is used for creating/manipulating pictures in designer but won't work in Runtime. you need something like this:
Sub OnClick(Byval Item) Set objPicWindow =
HMIRuntime.ActiveScreen.ScreenItems("winPopBedien") |
B r g d s , |
|
This contribution was helpful to1 thankful Users |
5/22/2015 6:57 AM | |
Joined: 10/3/2010 Last visit: 9/13/2024 Posts: 1560 Rating: (191) |
Hi Juan, in my example, the name of the picture window used as popup was different than the one from your original post. Check the name of your picture window and replace if necessary this line: Set objPicWindow = HMIRuntime.ActiveScreen.ScreenItems("winPopBedien") into Set objPicWindow = HMIRuntime.ActiveScreen.ScreenItems("PicWindow1") For further diagnose, add a GSC diagnostic window in your picture to check for errors or use C:\Program Files\Siemens\WinCC\uTools\APDIAG.exe |
B r g d s , |
|
Follow us on