Jump to content

Recommended Posts

Posted

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

Posted

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.

:D

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

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...