Jump to content
Sign in to follow this  
autoShirit1981

AutoIt Script for Windows Authentication

Recommended Posts

autoShirit1981

Hi,

I am new to AutoIt and I need help regarding AutoIt script for Windows authentication. The below code works when my laptop is not locked.

But when it is locked, the program can't hit the enter button of the authentication window.

Please help me to resolve this.

AutoItSetOption("WinTitleMatchMode","2")

WinWait("Authentication Required")

$title = WinGetTitle("Authentication Required") ;

$UN=WinGetText($title,"User Name:")

ControlSend($title,"",$UN,"user1{TAB}");

$PWD=WinGetText($title,"Password:")

;Send("{TAB 1}")

ControlSend($title,"",$PWD,"pass{ENTER}");

Thanks,

Shirshendu

Share this post


Link to post
Share on other sites
PlayHD

Hey. Welcome to Autoit forum:). First to all please check Forum Rules :).

Do not ask for help with AutoIt scripts, post links to, or start discussion topics on the following subjects:

  • Bypassing of security measures - log-in and security dialogs, CAPTCHAs, anti-bot agents, software activation, etc.
You are free to make any apps to Auto-Login, Brute Forceing, etc. , but not ask for suport ... Edited by PlayHD

Share this post


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

×