mIRC Home    About    Download    Register    News    Help

Print Thread
Listbox Question #205042 10/10/08 01:52 PM
Joined: Oct 2007
Posts: 214
B
Buggs2008 Offline OP
Fjord artisan
OP Offline
Fjord artisan
B
Joined: Oct 2007
Posts: 214
Hello,

I need help with saving all items from a dialog listbox into a txt file.

Thanks in advance,

Cheers,

Jay


Re: Listbox Question [Re: Buggs2008] #205043 10/10/08 02:08 PM
Joined: Dec 2002
Posts: 2,025
R
RoCk Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,025

Check out the -o switch for the /savebuf command.

Re: Listbox Question [Re: Buggs2008] #205045 10/10/08 03:20 PM
Joined: Oct 2007
Posts: 214
B
Buggs2008 Offline OP
Fjord artisan
OP Offline
Fjord artisan
B
Joined: Oct 2007
Posts: 214
Hello,

I tried the savebuf command, but im getting an invalid window error:

Code:
  var %file = $+($scriptdir,exports.txt)
savebuf -ao $did($dname,1) $+ %file 



Any ideas?

Re: Listbox Question [Re: Buggs2008] #205046 10/10/08 03:45 PM
Joined: Oct 2007
Posts: 214
B
Buggs2008 Offline OP
Fjord artisan
OP Offline
Fjord artisan
B
Joined: Oct 2007
Posts: 214
Thank you for the advice,

I got it to work.

Code:
  savebuf  -eo $dname 1 " $+ %file $+ "

Re: Listbox Question [Re: Buggs2008] #205048 10/10/08 04:31 PM
Joined: Aug 2005
Posts: 1,052
L
Lpfix5 Offline
Hoopy frood
Offline
Hoopy frood
L
Joined: Aug 2005
Posts: 1,052
or savebuf -eo $dname 1 $qt(%file)


Code:
if $reality > $fiction { set %sanity Sane }
Else { echo -a *voices* }