Jump to content

Automatic Login Script


hoov
 Share

Recommended Posts

My university requires dorm computers to use Cisco's Clean Access Client which looks something like this:

Posted Image

The client logs out whenever a computer goes into sleep mode or restarts so I'm trying to automate logins. My code, however refuses to cooperate...

I used the window detection tool to find the CLASS code for the Username, Password and Confirmation buttons - I just don't know how to trigger them.

Also any suggestions on how to have the script ready to re-login would also be helpful.

Here's my code:

WinWaitActive("Cisco Clean Access Agent")


WinWaitActive("[CLASS:Usernamebox]")
send("yourusername")

WinWaitActive("[CLASS:Passwordbox]")
send("yourpass")

WinWaitActive("[CLASS:ConfirmButton]")
send("{enter}")

sleep(300)

WinWaitActive("[CLASS:Confirmbutton2]")
send("{enter}")

Thanks.

Edited by hoov
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...