Jump to content

Help Select multiple GuiCtrlCreatelist And Guictrlread


Gee
 Share

Recommended Posts

Hi, all

I have a file keyword.ini like this:

[Key Word]

[Num] = 2

Key1 = B

Key2 = C

I 've got a GuictrlCreatelist, How do get data form Keyword.ini ? and ?

$Gui = GUICreate("List view Edit", 400, 300)
$Edit = GUICtrlCreateInput("Enter Text Here", 20, 60, 100, 20)
GUICtrlSetFont($Edit, 10)
$ListView = GUICtrlCreateList("A", 200, 20, 150, 100)
GUICtrlSetLimit(-1, 200)
$Add = GUICtrlCreateButton(">>", 150, 40, 30, 20)
$Remove = GUICtrlCreateButton("<<", 150, 80, 30, 20)
GUISetState()

While 1


    $ReadInput = GUICtrlRead($Edit)
    $ReadList = GUICtrlRead($ListView);==> line selected ,  How do read all line  ?
    $msg= GUIGetMsg()
    Switch ($msg)
    Case $GUI_EVENT_CLOSE
        Exit
    Case $Add
        GUICtrlSetData($ListView, $ReadInput)
 ;===> how  do add data to Keyword.ini


    Case $Remove
;... ?   How Do Remove  line selected ?
        
    
    WEnd
Edited by Gee
Link to comment
Share on other sites

Hi, all

I have a file keyword.ini like this:

[Key Word]

[Num] = 2

Key1 = B

Key2 = C

I 've got a GuictrlCreatelist, How do get data form Keyword.ini ? and ?

Not entirely sure, but I think your ini file isn't going to work with Num in square brackets.

[Key Word]

Num = 2

Key1 = B

Key2 = C

...this would work.

- Table UDF - create simple data tables - Line Graph UDF GDI+ - quickly create simple line graphs with x and y axes (uses GDI+ with double buffer) - Line Graph UDF - quickly create simple line graphs with x and y axes (uses AI native graphic control) - Barcode Generator Code 128 B C - Create the 1/0 code for barcodes. - WebCam as BarCode Reader - use your webcam to read barcodes - Stereograms!!! - make your own stereograms in AutoIT - Ziggurat Gaussian Distribution RNG - generate random numbers based on normal/gaussian distribution - Box-Muller Gaussian Distribution RNG - generate random numbers based on normal/gaussian distribution - Elastic Radio Buttons - faux-gravity effects in AutoIT (from javascript)- Morse Code Generator - Generate morse code by tapping your spacebar!
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...