houser747 Posted September 15, 2009 Share Posted September 15, 2009 Hi, As a newbie can someone point my in the write direction of populating a combobox from a .txt file I have currently created the basics GUICtrlCreateCombo("Please select an item", 10, 30) GUICtrlSetData(-1, "Item1|Item2|Item3|Item4") Many thanks in advance cheers Roger Link to comment Share on other sites More sharing options...
PsaltyDS Posted September 15, 2009 Share Posted September 15, 2009 Hi, As a newbie can someone point my in the write direction of populating a combobox from a .txt file I have currently created the basics GUICtrlCreateCombo("Please select an item", 10, 30) GUICtrlSetData(-1, "Item1|Item2|Item3|Item4") Many thanks in advance cheers Roger 1. Read the file, either all at once with _FileReadToArray() or one line at time in a loop with FileReadLine(). 2. Parse the file data for items 3. Add the items to the ComboBox with GuiCtrlSetData(). If you get stuck, post your code for more help. And welcome to AutoIt. Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law 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