Makmuud Posted September 2, 2010 Share Posted September 2, 2010 (edited) In the process of doing some automation I stumbled upon the AutoIT tool. I wrote a small script to automate installation of a tool (tool XYZ for naming Conventions) at work. I developed the script and compiled it on a windows 7 machine. When I get to the following window the password is not entered. Any suggestions would be greatly appreciated. CODE ****************************************** Run("C:\Documents and Settings\XXXXX\Desktop\Setup.exe") WinWaitActive("Confidential") Send("!n") WinWaitActive("Confidential") Send("!n") WinWaitActive("Confidential") ControlSend("Confidential", "", "Edit3", "Password") CODE************************************************************* Edited September 2, 2010 by Makmuud Link to comment Share on other sites More sharing options...
Valuater Posted September 2, 2010 Share Posted September 2, 2010 Since you are using "send" rather than commands... Maybe... Run("C:\Documents and Settings\XXXXX\Desktop\Setup.exe") WinWaitActive("Confidential") Send("!n") WinWaitActive("Confidential") Send("!n") WinWaitActive("Confidential") ;ControlSend("Confidential", "", "Edit3", "Password") Send("{TAB 3}") ; 3, 4 or 6 ... however many times Send("Password", 1) 8) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now