mIRC Homepage
Posted By: btc Loading a .txt file to a @window, questions - 15/08/04 06:32 AM
/loadbuf @window filename

OK, great, this works, but some concerns:
a) Word wrap?
b) What's with the huge amount of space above the text? Is there a way to get the text to load in the window almost exactly like it would appear in Notepad (for example)?

I thought I had more questions, but I can't remember them. Thanks. smile

BTC
a) Wordwrap (/aline -p), does just that, it forces the text to move to the next line if there is not enough room for it to fit on a single line, whereas without wordwrap it would just continue on one line, and go off the screen.

b) a /window, by default starts at the bottom and works its way up, using /window -l @name - creates a "list" window which starts from the top and works its way down.

Note you can also use 'e' parameter, /window -le to create an editbox where you type in the window.

Eamonn.
Posted By: btc Re: Loading a .txt file to a @window, questions - 15/08/04 06:05 PM
Thanks for your reply. My question abuot word-wrapping was specifically in /windows. When I load a text file to the window, it does not wrap, and I'd like it to.

BTC
/loadbuf [lines] -p @window file.txt

The -p flag is what you want.

Eamonn.
Posted By: btc Re: Loading a .txt file to a @window, questions - 15/08/04 06:30 PM
This does appear to be correct as far as the help file goes, but it still doesn't work. Here are the commands I'm using:

/window -l @name
/loadbuf -p @name c1.txt

Desired effect: Simply load a .txt file into a window with word wrapping.
Result: Didn't work. O_o

Thanks again for your help.

BTC

EDIT: That is to say, it works except for the word-wrapping part.
Helpfile Quote

Quote:

/loadbuf [lines] [-pirsgleopcnmNt<topic>] <window | dialog id> <filename>
The -p switch forces lines of text to wrap when added to the window.


So i cant see why its not working for you, works here.. most likely the -l causing it.

/window -e @test
/loadbuf 1-10 -p @test test.txt

Eamonn.
Posted By: Iori Re: Loading a .txt file to a @window, questions - 15/08/04 06:51 PM
You'd need to split the lines yourself to "wrap" them into a list window.
© mIRC Discussion Forums