Actions
On MSCROLL » History » Revision 1
Revision 1/5
| Next »
Per Amundsen, 12/08/2016 03:19 AM
Added in 2.7
on <level>:MSCROLL:<*#?=!@>:<commands>
Triggers when a user scrolls the message buffer in a window.
See also $mscroll.pos, $mscroll.max.
Parameters
<level> - The 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 ($mscroll.pos == 1) { echo -sg scrollbar for $active is at top } else if ($mscroll.pos == $mscroll.max) { echo -sg scrollbar for $active is at bottom } }
Updated by Per Amundsen about 8 years ago · 1 revisions