mIRC Home    About    Download    Register    News    Help

Print Thread
Getting the scroll status of a window #242229 26/06/13 04:20 PM
Joined: Dec 2008
Posts: 95
A
asdfasdf Offline OP
Babel fish
OP Offline
Babel fish
A
Joined: Dec 2008
Posts: 95
Hi mIRC friends,

is there any way to get the scroll status of a window?

I was unable to find a suitable $window() or $line() property or any other possible solution.

Say you're scrolled up in a window, is it possible to tell if you are, and maybe to which line you're scrolled up to?

Thank you very much.

Re: Getting the scroll status of a window [Re: asdfasdf] #242230 26/06/13 04:52 PM
Joined: Jun 2007
Posts: 933
5
5618 Offline
Hoopy frood
Offline
Hoopy frood
5
Joined: Jun 2007
Posts: 933
No, this is, afaik, not (natively) possible and has been discussed before. The only condition under which it is possible to detect is when the channel buffer has reached it maximum size. If you are scrolled up, the buffer size will exceed its maximum size and only flush when you scroll down.

Given that this situation is never guaranteed, it's not reliable.

Re: Getting the scroll status of a window [Re: 5618] #242231 26/06/13 05:34 PM
Joined: Dec 2008
Posts: 95
A
asdfasdf Offline OP
Babel fish
OP Offline
Babel fish
A
Joined: Dec 2008
Posts: 95
Thanks for your response.

Where is the channel buffer information stored?

Edit: I take it it's in the [options] section (first token of n3) of the mirc.ini, always $gettok($readini($mircini,options,n3),1,44)?

Last edited by asdfasdf; 26/06/13 05:43 PM.