mIRC Homepage

Script to prevent being "scrolled up"?

Posted By: Thrull

Script to prevent being "scrolled up"? - 12/07/09 10:48 AM

Hi,

On occasion, I find that I've been responding to questions/comments on a channel that happened hours ago. The problem? I scrolled up in channel, and never scrolled back down. As time goes by, more and more lines are said and I'm further and further behind.

While this is hardly a serious problem, I assumed I could fix it with a script. However, I can't seem to find a way to do it properly. Any help?

Thanks

Edit: Yeah, I know I can make Mirc beep if someone says something while I'm scrolled up. I was hoping I'd be able to either automatically scroll the window down on 5 minutes idle or something slightly less annoying than beeping.
Posted By: Lpfix5

Re: Script to prevent being "scrolled up"? - 13/07/09 02:14 AM

Only thing I can really suggest is that you can save your buffer or log. Then after you always return to your client just type /clear as it will clear your buffer and automatically start you fresh.

You can implement /clear into the On INPUT event on some kind of timer I suppose.

Peace out.
Posted By: Wims

Re: Script to prevent being "scrolled up"? - 13/07/09 03:50 AM

Something you can do is use sendkey to send page down :
Code:
alias pgdn .comopen a WScript.Shell | .comclose a $com(a,SendKeys,3,bstr,{pgdn})
Could use this with a timer, but maybe this is what you call 'not properly'
Posted By: Thrull

Re: Script to prevent being "scrolled up"? - 13/07/09 08:14 AM

Mmmm, would it be possible to just use sendkeys to send Control+End? Even if so, aside from the timer method (which is actually very doable) is there some way to check if I'm scrolled up? An identifier of some sort? SOMEthing? smile
Posted By: Wims

Re: Script to prevent being "scrolled up"? - 13/07/09 01:44 PM

He, I wasn't aware that control + end directly put the scroll at her maximum, of course you can do :
Code:
alias ctrl_end .comopen a WScript.Shell | .comclose a $com(a,SendKeys,3,bstr,^{end})
As for knowning if you're scrolled up, I think there no way to do this with mirc scripting itself, but a dll can be used.
Posted By: Thrull

Re: Script to prevent being "scrolled up"? - 13/07/09 11:56 PM

Ok, thank you very much. This ought to be enough to solve my issue. I can loop through all the windows when my idle reaches a certain point and just use the $com statement.
© 2022 mIRC Discussion Forums