Project

General

Profile

Actions

On MSCROLL » History » Revision 4

« Previous | Revision 4/5 (diff) | Next »
Per Amundsen, 06/20/2017 10:48 AM


Added in 2.7

on <level>:MSCROLL:<*#?=!@>:<commands>

Triggers when a user scrolls the message buffer in a window.

See also /scrolltext, $window.mscrollpos, $window.mscrollmax.

Parameters

<level> - The User Access Level for the event to trigger.
<*#?=!@> - The Matchtarget to listen to.
<commands> - The commands to be performed when the event listener's criteria is met.

Example

on *:mscroll:#:{
  if ($window($active).mscrollpos == 1) {
    echo -sg scrollbar for $active is at top
  }
  else if ($window($active).mscrollpos == $window($active).mscrollmax) {
    echo -sg scrollbar for $active is at bottom
  }
}

Updated by Per Amundsen almost 7 years ago · 4 revisions

Also available in: PDF HTML TXT