beardeus Posted September 28, 2015 Author Posted September 28, 2015 (edited) Couple of things. You should try to get the correct controlID you are sending to.That would eliminate all the TAB sending.If these controls have no ID's consider.Send("{TAB 2}") will send TAB twice.Okay, I will look into the ControlID more and thanks for the TAB tip! Edited September 28, 2015 by beardeus
beardeus Posted September 28, 2015 Author Posted September 28, 2015 Another tip since you mentioned your trouble with variables here is a perfect chance to learn.Change your paths to variables and then you will only have to change one path instead of many.Example:#include <WinAPIFiles.au3> $installPath = "C:\Users\TESTING\Desktop\Automated Install.ini" ; in the future only need to change this ;Read from the ini file to populate text boxes $Answer=IniRead($installPath,"LocalDomain","Domain","FAILURE!") Sleep(1000) Winactivate ("Enterprise - InstallShield Wizard", "SQL") ControlSend("Enterprise - InstallShield Wizard","SQL","",$Answer) Send ("{Tab}") Send ("{Tab}") $Answer1=IniRead($installPath,"LocalDomain","DomainPassword","FAILURE!") ControlSend("Enterprise - InstallShield Wizard","SQL","",$Answer1) Send ("{Tab}") $Answer2=IniRead($installPath,"SQL","Server","FAILURE!") ControlSend("Ipro eCapture Enterprise - InstallShield Wizard","SQL","",$Answer2) ;;;===and so on... I will definitely look into this! Anything to simplify things and learn more! I will post my update when I get a chance to work on it. Thanks again everyone for the help!Man I really wish I knew about this at my old job.
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