; ; AutoIt Version: 3.0 ; Language: English ; Platform: Windows 2019/10/2016/8/2012/7/2008 ; Author: Core Technologies Consulting, LLC ; ; Script Function: ; Finds the "Login" dialog, enters a login and a password and dismisses the dialog ; ; Try to activate the window. May not succeed in Session 0: ; https://www.coretechnologies.com/blog/miscellaneous/running-autoit-session-0/ WinActivate("Login") ; The login box will have the initial focus. Just send the login. ControlSend("Login", "", "", "MyLogin") ; Tab to the next control, the password ControlSend("Login", "", "", "{TAB}") ; Enter the password ControlSend("Login", "", "", "MyPassword") ; Dismiss the dialog with the Enter key ControlSend("Login", "", "", "{ENTER}")