Jump to content
Sign in to follow this  
hoov

Automatic Login Script

Recommended Posts

hoov

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

Share this post


Link to post
Share on other sites
BrettF

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
Sign in to follow this  

×