# Initial System Login WaitForText "ogin:" Type $Username Type @E WaitForText "assword:" Type $Password Type @E Delay 500 # Repeat loop for error handling Repeat #Check to see if the password has expired If -Text "EMS: The password has expired." ChangePassword #Password Type $Password Type @E Type $Password Type @E EndIf #User has an invalid username or password (or both) stored. If -Text "Login Failed" DisplayVariables "The username or password (or both) stored by SecureLogin is invalid. Verify your credentials and try again. IT x453." Type $Username Type @E Delay 500 WaitForText "assword:" Type $Password Type @E Delay 500 EndIf # Account is locked for some reason, possibly inactive. If -Text "Account Locked" MessageBox "Your account has been locked, possibly because of inactivity for 40 days. Contact the administrator at x453." EndIf # Main Menu, user has logged in successfully. If -Text "Application Selection" Break EndIf Delay 100 EndRepeat |