用户管理
登录脚本
UserCmd.LoginBox()
管理脚本
dim usertype '定义一个变量usertype
usertype =UserCmd.GetUserType(UserCmd.UserName)'用户类型赋给usertype
if usertype = "Operator" Then '用户类型(usertype)是"Operator"
UserCmd.ChangePasswordBox '打开一般的用户管理窗口
ElseIf usertype = "SystemAdmin" '用户类型(usertype)是"SystemAdmin"
UserCmd.UserManagerBox '打开管理员的用户管理窗口
ElseIf usertype = "Admin" Then
UserCmd.UserManagerBox
end if
用红色标注的三个词是固有的,不能改成别的,对应配置在
这个配置只有三种,
系统管理员"SystemAdmin",管理员"Admin",操作员"Operator"
所以不能换词
注销脚本
UserCmd.Logout()
退出脚本
HMICmd.ExitApplication()