; ; AutoIt Version: 3.0 ; Language: English ; Platform: Win2000/XP/2003/Vista ; Author: Core Technologies Consulting, LLC ; ; Script Function: ; Finds the "Login" dialog, enters a login and a password and dismisses the dialog ; ; Wait for the window to become active if (WinActivate("Login")) Then ; The login box will have the initial focus. Just send the login. Send("MyLogin") ; Tab to the next control, the password Send("{TAB}") ; Enter the password Send("MyPassword") ; Dismiss the dialog with the Enter key Send("{ENTER}") EndIf