WinCC Login/Logout

Dick G.

Member
Join Date
May 2004
Posts
5
Does anyone know how to assign the login/logout functions that are normally tied to key combinations to on-screen push buttons that can be mouse-click activated? I'm trying to use only the on-screen pop-up keyboard and need to be able to use the login/logout functions using a mouse only.

Help at this point would be greatly appreciated as I'm a "newbie" to WinCC.

Thanks.

Dick
 
How to implement login/logout via a button in a picture?

In a picture configure the following C actions in combination with different buttons:

Action for login (e.g. "mouse-click" event):

#pragma code ("useadmin.dll")
#include "PWRT_api.h"
#pragma code()PWRTLogin('c');


Action for logout (e.g. "mouse-click" event):

#pragma code ("useadmin.dll")
#include "PWRT_api.h"
#pragma code()PWRTLogout();

The parameter for PWRTLogin must be a CHAR character. It specifies the monitor on which the dialog will be displayed. If you are using just one monitor, then you can leave the default parameter "c" or specify "1". Both functions return "1" if they have been executed correctly. However, the login does not wait until the dialog is actually displayed.

hope this helps.
 
help me whit one botton

How to implement login/logout via a button in a picture?

In a picture configure the following C actions in combination with different buttons:

Action for login (e.g. "mouse-click" event):

#pragma code ("useadmin.dll")
#include "PWRT_api.h"
#pragma code()PWRTLogin('c');


Action for logout (e.g. "mouse-click" event):

#pragma code ("useadmin.dll")
#include "PWRT_api.h"
#pragma code()PWRTLogout();

The parameter for PWRTLogin must be a CHAR character. It specifies the monitor on which the dialog will be displayed. If you are using just one monitor, then you can leave the default parameter "c" or specify "1". Both functions return "1" if they have been executed correctly. However, the login does not wait until the dialog is actually displayed.

I want do this program whit one botton pleas help me
my email:[email protected]
thanks a lot
 

Similar Topics

Hello all, I have a WinCC server where users connect to using Webnavigator. What I want is a method to record at the server the login and logout...
Replies
1
Views
2,272
Does WinCC 6.0 have some embedded function to cathc and raise an event when user login or log out. I can do it by reading Tag @CurrentUser but...
Replies
1
Views
2,905
Hi, At the moment, If the user fails to provide a valid username/password, the image attached appears "Invalid password or user name. Logon has...
Replies
12
Views
1,568
Hello everybody, How to make a button in screen appear after right login in wincc? I want to if it is me to login, I can see this button, other...
Replies
2
Views
1,949
Hello everyone I've been lurking on this forum for quite a while now and I learned a lot about programming structures etc. Now the time has...
Replies
5
Views
2,463
Back
Top Bottom