JonD Posted June 26, 2013 Posted June 26, 2013 I am trying to create a support tool, one of the options will be to choose from several tools from a check list. I am able to populate the list of tools using the function below, the ini contains lines like appname=http://www.site.com/filename.exe Global $LISTOFTOOLS Func GETTOOLIST() _GUICtrlListView_DeleteAllItems($DOWNLOADLIST1) $LISTOFTOOLS = IniReadSection("C:Temptools.ini", "Tools") For $I = 1 To $LISTOFTOOLS[0][0] GUICtrlCreateListViewItem($LISTOFTOOLS[$I][0], $DOWNLOADLIST1) Next EndFunc Now my problem has two parts:- 1) When in the GUI 'While' section I have a 'Case $DOWNLOADBUTTON1', in this section the variable $LISTOFTOOLS is listed as a 'possible used before declaration' error (using f5 to run, not tested it yet when compiled or could be rather than putting some code under the Case command I will just call a function instead, will test tomorrow) 2) I'm not sure how to create a new array containing the hyper links for the selected tools so I can then pass this array to the download section. Any pointers would be appreciated.
FireFox Posted June 27, 2013 Posted June 27, 2013 Hi,Welcome to the autoit forum Can you provide the whole script so we can investigate on your errors?Br, FireFox.
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