11/5/2009 8:38 AM | |
Joined: 3/24/2009 Last visit: 3/21/2024 Posts: 19 Rating: (0) |
How to add delayor wait for few seconds in vbs action? |
11/5/2009 8:44 AM | |
Joined: 9/28/2005 Last visit: 3/12/2024 Posts: 2957 Rating: (242) |
Hi, I'm not sure if it's possible at all, but any delay in script will hang OP/MP I think. |
Best regards, |
|
11/5/2009 9:47 AM | |
Posts: 261 Rating: (42) |
Can you explain your requirement about time delay? Regarding VBS script with dynamic action you may prefer WinCC help or the attached file may help you. Example for you: By Increase Dia button the Radius will increase by one the limitation is up to 100 Sub OnClick(ByVal Item) Dim objCircle Dim dia Set objCircle= ScreenItems("Circle1") dia =objCircle.Radius dia = dia+1 If dia>100 Then dia = 100 Else End If Set objCircle= ScreenItems("Circle1") objCircle.Radius = dia End Sub Regards ddg AttachmentWinCC V6_VBS Reference_e.zip (280 Downloads) |
11/5/2009 7:23 PM | |
Joined: 9/28/2005 Last visit: 3/12/2024 Posts: 2957 Rating: (242) |
You're right. I'm sorry |
Best regards, |
|
11/6/2009 10:30 AM | |
Joined: 10/26/2005 Last visit: 4/19/2024 Posts: 282 Rating: (48) |
Hi! A sort of working solution for delay...deleted vbs -code. Use only graphics objects, if avalible. Se attached pdl. AttachmentSleep_pdl.zip (905 Downloads) |
Last edited by: perdahlqvist at: 11/9/2009 1:19 PMRemoved a vbs-loop, added a correct solution, using graphics objects |
|
Follow us on