Professional Documents
Culture Documents
Login Dialog Via Vbs - Entries - Forum - Industry Support - Siemens
Login Dialog Via Vbs - Entries - Forum - Industry Support - Siemens
(0)
Silver Member
Joined: 1/4/2010
Last visit: 11/9/2021
Posts: 650
Rating:
Regards
(38) Romulus
(0)
Joined: 1/4/2010 Please give me answer if it works or if i can help you again.
Sorry if my english isn't so comfortable.
Last visit: 11/9/2021
Posts: 650
Rating:
Regards
(38) Romulus
https://support.industry.siemens.com/forum/WW/en/posts/login-dialog-via-vbs/43290 1/3
8/8/22, 11:43 AM login dialog via vbs - Entries - Forum - Industry Support - Siemens
You can not use VBS to open login dialog. You can do it from ANSI C as Romulus
said.
It is possible if you use SIMATIC Logon. Check FAQ site - there is very ugly
looking VBS example how you can do that for SIMATIC Logon.
Bronze Member
Regards
Joined: 2/22/2006
Last visit: 8/4/2022
Posts: 284
Rating:
(35)
I have 2 buttons ("Button_Login" for login and "Button_Logout" for logout) with the
following C script on Fill Level Change event:
(You can make that buttons invisible, and you can use another event...)
For logout:
Sub Logout(Item)
Dim objScreen
Dim Button
Set objScreen = HMIRuntime.Screens(2)
Set Button = objScreen.ScreenItems("Button_Logout")
Button.FillingIndex = 50
End Sub
Best regards,
kukukk
https://support.industry.siemens.com/forum/WW/en/posts/login-dialog-via-vbs/43290 2/3
8/8/22, 11:43 AM login dialog via vbs - Entries - Forum - Industry Support - Siemens
9/27/2010 3:44 PM Rate (0)
kukukk Can you post your sample project? And I will try to correct it...
Bronze Member
Joined: 9/27/2005
Last visit: 8/13/2020
Posts: 133
Rating:
(5)
For login:
Sub Login(Item)
Dim objScreen
Dim Button
Set objScreen = HMIRuntime.Screens(2)
Set Button = objScreen.ScreenItems("Button_Login")
Button.FillingIndex = 50
End Sub
What shall I put within bracket, 6, 1 or home? (Set objScreen = HMIRuntime.Screens(2) ??)
Is Button_Login a button in Library or an object name that I have to place in my screen.
The Login_Button is an object from Object Palette -> Windows Objects -> Button.
By default Graphics Designer gives a name lake Button1, Button2... (It depends
on how much Button object have you placed on your screen. With every object it
is incremented) But I have changed it's name to Login_Button.
Bronze Member
I hope this helps.
Best regards,
kukukk
Joined: 9/27/2005
Last visit: 8/13/2020
Posts: 133
Rating:
(5)
© Siemens AG 2009-2022 - Corporate Information | Privacy Policy | Cookie policy | Terms Of Use | Digital ID | Forum Terms
https://support.industry.siemens.com/forum/WW/en/posts/login-dialog-via-vbs/43290 3/3