Jump to content
Sign in to follow this  

Select List Event

Recommended Posts



i created a Gui With a List Box That Read The Data From A TXT File

So far so good But Now i am Looking for that when i Click at the List

it will Take the Data form the line and run for exmaple notepad and enter the

the data in the notepad file so i can stil manualy edit the file.



#include <GUIConstants.au3>#include <file.au3>GUICreate("My GUI combo") GUICtrlCreateList("", 24, 50, 145, 100)$NoOfItems=_FileCountLines("c:\test.txt")Dim $ComboValues[$NoOfItems-1]_FileReadToArray("c:\test.txt", $ComboValues)For $LoopCtr = 1 to $ComboValues[0]-1  GUICtrlSetData(-1,StringStripCR($ComboValues[$LoopCtr]))NextGuiSetState()While 1  $msg = GuiGetMsg()  Select  Case $msg = $GUI_EVENT_CLOSE        ExitLoop    Case Else       ;;; EndSelectWEnd






    [topic="63488"][font="Arial"]Krikov Tray Quick Menu[/font][/topic]


            Share this post
            Link to post

                Share on other sites















(adsbygoogle = window.adsbygoogle || []).push({});









                I don't need your attitude. I have one of my own





                7,375 posts



                    Report post



            #include <GUIConstants.au3>
#include <file.au3>

GUICreate("My GUI combo")

$list = GUICtrlCreateList("", 24, 50, 145, 100)
$NoOfItems = _FileCountLines("c:\test.txt")
Dim $ComboValues[$NoOfItems - 1]
_FileReadToArray("c:\test.txt", $ComboValues)
For $LoopCtr = 1 To $ComboValues[0] - 1
   GUICtrlSetData(-1, StringStripCR($ComboValues[$LoopCtr]))

While 1
   $msg = GUIGetMsg()
      Case $msg = $GUI_EVENT_CLOSE
        Case $msg = $list
      Case Else

SciTE for AutoItDirections for Submitting Standard UDFs


Don't argue with an idiot; people watching may not be able to tell the difference.


Share this post

Link to post
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

Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.