Sign in to follow this  
Followers 0
BigDaddyO

Ini Selections Fantasy

3 posts in this topic

I have another fantasy that I am hopping you guys can help me out with. I have been writing a script to test programs on pc's. well, I have finished most of the script but I would like to be able to pick what programs to test on a computer.

Origionally, I was going to make a script specific for each computer image.

Will I need to use the AutoIt GUI for this? :huh2:

I am thinking of an initial popup window with check boxes for what to run.

Should I make each program that is tested in it's own script and then call them from the master script? How would I refrence the INI file to select which scripts to run? :D


Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Take a look at INIRead and INIWrite in the help file.

Edited by Nutster

David Nuttall
Nuttall Computer Consulting

An Aquarius born during the Age of Aquarius

AutoIt allows me to re-invent the wheel so much faster.

I'm off to write a wizard, a wonderful wizard of odd...

Share this post


Link to post
Share on other sites

AutoItSetOption("ExpandEnvStrings", 1); expand

GuiCreate ("My first AutoIt GUI"); start the definition
 
$nOk    = GUISetControl ("button", "OK", 10,10); add the button that will close the GUI
;$x=StringSplit(FileReadLine("myfile.ini",1),","); if you wanted to read a file
$x=StringSplit("%SystemRoot%\System32\freecell.exe,%SystemRoot%\System32\spider.exe",","); just an example
dim $out[$x[0]+1]

For $i=1 To $x[0]
$out[$i]=GuiSetControl("radio", $x[$i],10,20+($i*20),300)
Next  

GuiWaitClose (); to display the dialog box
   
if $nOK= GuiRead () then; to verify if OK was click
For $i=1 To $x[0]
 $input = GuiRead ($out[$i]); get the type value
If $input<>4 Then  
    msgbox(0,"Result"&$i, $x[$i]); will display the clicked value
    Run($x[$i])
EndIf
Next
EndIf


AutoIt3, the MACGYVER Pocket Knife for computers.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0