izarra64 Posted July 8, 2022 Share Posted July 8, 2022 Hello Guys 😀 Today request as i get stuck on it. I wrote last years several AU3 using simple actions to display CheckBox or RadioBox in a unique GUI. Then validating all that were Checked to create a list of actions to run after. But all entries were static, and not dynamic as i want to setup today ! My firsts AU3 were made after getting and understanding form this marvelous AutoIt Forums where i found what i needed to become better and better on it ! So today, i'd like to do things better (perhaps using a better method than the one i capitalized on ?) My problem is quite simple to explain : i try with few words. i'd like to create a GUI to display on several columns, options that would be populated from Folders my today example is related to printers ! I need to show approx 100 printers (one checkbox per printer) + a Validation button And once clicked on Validation, i need to read all Checkboxes that were checked and create an answer file, adding one line per checked option ! then i will parse the answer file, and perform an install of each item / each line ! I know how to do so for some 10 or 15 entries (if static) what i need today is to be able to create and populate Checkbox, by reading Subfolders structure what i began to do is : Creating a Main Folder (@scriptdir\Rubriques\) and then up to 10 subfolders categorizing my items Rubriques\PrintPool1, Rubriques\PrintPool2, etc... up to \PrintPool10 in each PrintPoolx sub folder, i may have 4 to 15 Other Subfolder, containing Printer Name To start, i'm trying to do it with 2 subfolders only : will extend to more when ready ! So i have @ScriptDir\Rubriques\PrintPool1 and @ScriptDir\Rubriques\PrintPool2 PrintPool1 contains 3 Folders : PrintPool2 contains 2 Folders : in each final (child) subfolder, only have one TXT file (appstoinstall.txt - same one for all subfolders) containing the name of the script to be run afterwards ! so i just need to handle perfectly how to obtain the final list of all items needed (all that were checked !) i tried wring a code to: collect all items in Rubriques Main Folder : only to be displayed For Each Item(Subfolder) in MainFolder, collect all items from the Child Subfolder to be displayed and assigned to a checkbox This works fine to display ! but still not to collect checkbox choices ! (attached) Attached a Zip file (to unzip where you want) contains the Subfolders Structure zip file and Mymenu.au3 MyMenu.au3 will show and populate what needed : but i get stuck to verify which CheckBoxes were checked ! thanks for help ! EasyPrinters.zip Link to comment Share on other sites More sharing options...
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
Already have an account? Sign in here.Sign In Now