bflight Posted September 20, 2007 Share Posted September 20, 2007 (edited) Good morning! I have written an autoit script to automate the install of some software that's used here at work, however i've been asked to modify it so certain bits of information pertaining to where to install the software can be read from a simple text file. I was directed to an example in the help section of autoit, and have made a stab at hacking this ability into my script, but its simply not working as intended. I have attached both my original script and my work in progress script (as well as my example settings.txt which i want my script to read from) - could anyone give me a few pointers? Thanks in advance! -bradevault_installer_WIP.au3 Edited September 20, 2007 by bflight Link to comment Share on other sites More sharing options...
Zedna Posted September 20, 2007 Share Posted September 20, 2007 Instead of TXT config file use INI config file.Look into AutoIt helpfile at IniRead()You may also look at my projects in my signature (for example Obdelnik) where I used INI file. Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
meekaah Posted September 20, 2007 Share Posted September 20, 2007 hi, ive read through your script, and u used $Settings[0] and so on, but the data in $Settings[0] is the number of records read into the array. so just start off with $Settings[1] and so on. and you'll be ok oh and watch out you left out a line where we can se the registration code for your software your installing Link to comment Share on other sites More sharing options...
bflight Posted September 20, 2007 Author Share Posted September 20, 2007 (edited) hi, ive read through your script, and u used $Settings[0] and so on, but the data in $Settings[0] is the number of records read into the array. so just start off with $Settings[1] and so on. and you'll be ok oh and watch out you left out a line where we can se the registration code for your software your installing thanks for the tip, ill try that now. I realized the code was in there shortly after uploading and have since corrected it. ah well, c'est la vie (they are demo keys anyway - aka won't properly activate ) Edited September 20, 2007 by bflight 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