mIRC Home    About    Download    Register    News    Help

Print Thread
#198484 29/04/08 03:11 PM
Joined: Apr 2008
Posts: 6
W
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
W
Joined: Apr 2008
Posts: 6
I am writing a little script that will post data to a @test window. How can I make it scroll with the data so I don't need to scroll down each time I want to see new data?

Thanks

Joined: Nov 2006
Posts: 1,559
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Nov 2006
Posts: 1,559
To "jump" to the bottom of the window (after adding your text via e.g. aline/echo), select the last line with:
sline @yourwindow $line(@yourwindow,0)

Note that the window "keeps scrolling" if the scrollbar is at the very bottom (the last line had been selected once).
If the window contains zero lines so far, the sline command will cause an error. Thus, "jump" after adding text or check for e.g.:
if ($line(@yourwindow,1))

Last edited by Horstl; 29/04/08 03:32 PM.
Joined: Apr 2008
Posts: 6
W
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
W
Joined: Apr 2008
Posts: 6
perfect thank you!


Link Copied to Clipboard