mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Aug 2004
Posts: 4
B
btc Offline OP
Self-satisified door
OP Offline
Self-satisified door
B
Joined: Aug 2004
Posts: 4
/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

Joined: Dec 2002
Posts: 788
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 788
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.

Joined: Aug 2004
Posts: 4
B
btc Offline OP
Self-satisified door
OP Offline
Self-satisified door
B
Joined: Aug 2004
Posts: 4
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

Joined: Dec 2002
Posts: 788
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 788
/loadbuf [lines] -p @window file.txt

The -p flag is what you want.

Eamonn.

Joined: Aug 2004
Posts: 4
B
btc Offline OP
Self-satisified door
OP Offline
Self-satisified door
B
Joined: Aug 2004
Posts: 4
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.

Last edited by btc; 15/08/04 06:31 PM.
Joined: Dec 2002
Posts: 788
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 788
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.

Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
You'd need to split the lines yourself to "wrap" them into a list window.


Link Copied to Clipboard