Jump to content
Sign in to follow this  

Data from file.txt read into Viewlist + button

Recommended Posts


Hi, i got:

file: number.txt

After when program run, list should show on and after click button should fill my INPUT....

My button: $but9 = GUICtrlCreateButton("Wypelnij", 630, 400, 100, 25)

My File: number.txt

My List: $listview = GUICtrlCreateListView("Email", 750, 230 , 140, 200, $LVS_SORTDESCENDING)

i found export listview thing but i need import :)

I hope this section is beter than general ;)

Share this post

Link to post
Share on other sites

You reposted this just 10 minutes after your first post. The question is impossible to answer anyway, since you do not provide enough information. Without knowing the format of your text file or the required number of columns etc.. we can't help you. You need to make a bit more effort by posting your attempts to solve the problem.

Share this post

Link to post
Share on other sites

realy weird, so easy question.

I just want do chat... i have server on my ftp.

Now im collecting and trying to do something so i will start from getting message.

My script on web working like when you get message its writing to your user folder like


And want take from file to my box :) can i get it?

#include <ButtonConstants.au3>
#include <ComboConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <GUIListBox.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 623, 442, 192, 130)
$Input1 = GUICtrlCreateInput("Input1", 24, 328, 305, 21)
$Checkbox1 = GUICtrlCreateCheckbox("Checkbox1", 256, 328, 25, 17)
$Button1 = GUICtrlCreateButton("Button1", 336, 328, 89, 25)
$Message = GUICtrlCreateEdit("", 24, 24, 361, 289)
GUICtrlSetData(-1, "Message")
$List1 = GUICtrlCreateList("", 80, 336, 25, 6)
$Group1 = GUICtrlCreateGroup("Chat", 8, 8, 393, 305)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Combo1 = GUICtrlCreateCombo("Combo1", 432, 32, 177, 25, BitOR($CBS_DROPDOWN,$CBS_AUTOHSCROLL))
$RetriveMessages = GUICtrlCreateButton("RetriveMessages", 16, 368, 153, 41)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg

Share this post

Link to post
Share on other sites

realy weird, so easy question.

Not at all. There is no ListView on your GUI and Viewlist isn't anything I've ever heard of.

Have you tried FileRead()?

Edited by czardas

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.