mIRC Homepage
Posted By: DrainBamaged Retrieving nicklist width. - 10/05/03 08:58 PM
What I want is to retrieve the width of the nicklist, in an echo, when it's being resized. So if it's at 90 and I'm moving to 110, it will show me that in echo's. I don't plan to keep it like this, since it will be a screen flood doing so, but I just want to view a code on how to do it, so I may change it around a bit.

Also, if someone's unsure on how to do this, perhaps they could just tell me how to get the current position of the nicklist.

Thanks in advance. smile
Posted By: ScatMan Re: Retrieving nicklist width. - 10/05/03 09:07 PM
the first thing is impossible
about the second, u if u meant that u want to get the selected line in the nicklist, u can use $sline(window,N)
N is the number of the selected nick
u can use $snick too if the window is a channel
Posted By: Nimue Re: Retrieving nicklist width. - 10/05/03 10:29 PM
There is two places in mirc.ini where you might find the width of the nicklist. Below wil grab the non-default if it exists, or the default if it does not.
//echo -a Nicklist width: $gettok($gettok($readini($mircini,nicklist,#),2,44) $gettok($readini($mircini,options,n4),29,44),1,32)
You can use it in a timer to echo the size, but only when you drop (release the mouse button) it. Try it and you'll see what I mean.
Posted By: DrainBamaged Re: Retrieving nicklist width. - 11/05/03 01:19 AM
That's goog, but I want to somehow set it as a variable, which I don't think is possible. I want this variable set when the nicklist is resized, so the next channel I join will be the same size.
Posted By: _D3m0n_ Re: Retrieving nicklist width. - 11/05/03 02:44 AM
does the nicklist dll allow u to use GetSize???
Posted By: qwerty Re: Retrieving nicklist width. - 11/05/03 10:57 AM
Nicklist.dll by Epsilon provides a way to monitor nicklist resizing, among other things. Look for it on ms.org.
© mIRC Discussion Forums