Jump to content

need to learn more about GUICtrlCreateCombo


bogQ
 Share

Recommended Posts

GUICtrlCreateCombo ("item1", 830,60,150,15,$CBS_DROPDOWNLIST+$CBS_SORT+$CBS_AUTOHSCROLL)

GUICtrlSetData(-1, "Avxvxc|bzdhkasd|dashdaskjsa|ddskalsja")

so it will bring on list sorted data

Avxvxc

bzdhkasd

dashdaskjsa

ddskalsja

item1

but i cant edit that data becose its in script it self (exe)

i need a way to get data to the list from txt or some other file

if i have list.txt and it have 300-400 lines with data on line looking like this

^my number is^my name is^my address is^my phone is^

so how do i put only "my number is" to the combo from every line of the txt file, note that file dont have every time same number of lines

shud i use, to see how many lines have that file, and than loop GUICtrlSetData on every line to get all the data from txt or there is some other way?

TCP server and client - Learning about TCP servers and clients connection
Au3 oIrrlicht - Irrlicht project
Au3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related)



460px-Thief-4-temp-banner.jpg
There are those that believe that the perfect heist lies in the preparation.
Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost.

 
Link to comment
Share on other sites

Try the _GuiCtrlCombo* functions vice GuiCtrl*. They should be able to work with controls from other windows.

:)

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

Try the _GuiCtrlCombo* functions vice GuiCtrl*. They should be able to work with controls from other windows.

:)

oh ty ^^ 4 _Gui, il need it when i need to add-remove new-old data from list

i whas thinking that when i use

While 1
    $line = FileReadLine($file)
    If @error = -1 Then ExitLoop
   GUICtrlSetData(-1, $line)
Wend

that itl take 1-3 minutes untill he loop to the end of txt like in mirc csripts, but he opened gui in 1 second with all the data i needed ^^, im rly starting to like autoit alot :P

TCP server and client - Learning about TCP servers and clients connection
Au3 oIrrlicht - Irrlicht project
Au3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related)



460px-Thief-4-temp-banner.jpg
There are those that believe that the perfect heist lies in the preparation.
Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost.

 
Link to comment
Share on other sites

oh ty ^^ 4 _Gui, il need it when i need to add-remove new-old data from list

i whas thinking that when i use that itl take 1-3 minutes untill he loop to the end of txt like in mirc csripts, but he opened gui in 1 second with all the data i needed ^^, im rly starting to like autoit alot :)

You're welcome, and welcome to AutoIt!

:P

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

Try to build&use an ini file or if you already have the file try to read the info you need from each line and build the content of your combobox.

Maybe it will be a good idea to show a little bit of your file content in order to give you the most appropriate answer.

SNMP_UDF ... for SNMPv1 and v2c so far, GetBulk and a new example script

wannabe "Unbeatable" Tic-Tac-Toe

Paper-Scissor-Rock ... try to beat it anyway :)

Link to comment
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
 Share

  • Recently Browsing   0 members

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