mIRC Homepage
Posted By: homeless Is possible this script? - 16/09/04 09:45 PM
In my channel when I digit !getlist i download a file txt whit the list of the name into.
It's possible make a dialog with listbox and a button "get" that download the list and put the list of the file.txt into listbox?
So i can view the list of the name via listview.

Thanks in advance
Posted By: LocutusofBorg Re: Is possible this script? - 18/09/04 02:35 PM
Short answer: yes it is possible.
Posted By: LocutusofBorg Re: Is possible this script? - 18/09/04 02:41 PM
Long answer:

Code:
[color:green]; the first if () checks if the file you got is what you wanted - remove if you don't know the filename up front[/color]
[color:green]; the second if () checks if the dialog is opened - can't loadbuf if it isn't[/color]
[color:green]; the loadbuf dumps the file into the listbox[/color]
[color:green]; replace [color:blue]dname[/color] with the dialogname and [color:blue]id[/color] with the listbox id and [color:blue] filename.txt[/color] with the filename[/color]
on *:FILERCVD:*: if ($filename == [color:blue]filename.txt[/color]) && ($dialog([color:blue]dname[/color])) loadbuf -o [color:blue]dname id[/color] $filename
Posted By: homeless Re: Is possible this script? - 20/09/04 11:13 AM
thank a lot your very kindle.
HM
© mIRC Discussion Forums