vtray with mouse wheel Thread last updated on 2003-09-30 03:39:16

Posted by member 7223 on 2003-09-30 02:50:19

Want to use the mouse wheel to scroll systray icons ?
use this:
*netloadmodule one-0.5 http://loose-screws.com/mdownload.php?id=203
*netloadmodule xlabel-2.2
*netloadmodule vtray-1.06
*netloadmodule mzscript-0.9b12-jam4 http://loose-screws.com/mdownload.php?id=198

vtrayIconScrollStep 1
vtrayonmouseenter !execute [!varset wheelup "!vtrayscrollicons back"][!varset wheeldown "!vtrayscrollicons next"][!one xLabel wheellabel]


*label wheellabel

wheellabelstarthidden
wheellabelalwaysontop
wheellabelonwheelup !exec %{wheelup}
wheellabelonwheeldown !exec %{wheeldown}

Sometimes, just enter the vtray area to give focus to the label and enable wheelscroll. But generally, you'll still need to activate it by middle-clicking on vtray.
Guess other modules could hook the wheel this way

Posted by member 265 on 2003-09-30 03:04:45 link

i haven't tried this, but it sounds like an excellent idea. :)

good job Smurth. :)

Posted by member 7223 on 2003-09-30 03:39:16 link

humm, just tried it with layercut and it works, too. I simply have to enable middle click like this:
*layercut execution ampplay
*layercut left !amp_playpause
*layercut right !popupamp
*layercut in !execute [!varset wheelup %{ampwheelup}][!varset wheeldown %{ampwheeldown}][!one xLabel wheellabel]
*layercut middle !one xLabel wheellabel
*layercut ~execution