Posted by member 99 on 2003-06-09 16:44:21
This will give you a systray that displays a fixed number of items displayed. If there are more icons than that, you can scroll through them with !systrayleft and !systrayright:
You can use lsbox instead of skinbox, but I'm more familiar with this. This will also need mzScript 0.9 b12 (jam 4), although you can modify it a bit to work with earlier versions.
Load order: mzscript, systray, skinbox/lsbox.
It does no error checking as it is, if you try to scroll it right past the end, it will give you a seemingly unrelated error and scroll past the end. Perhaps someone who's done more with mzScript can add checks.
; change these
systrayIconSize 16
systrayIconSpacingX 1
systrayHeight 20
systrayBorderSize $(systrayHeight-systrayIconSize)/2$
systrayBoxX 0
systrayBoxY 0
systrayDisplayCount 4
; do not change these
systrayAutoSize
systrayX 0
systrayY 0
*SkinBox systrayBox
systrayBoxWidth $systrayDisplayCount*(systrayIconSize+systrayIconSpacingX)+2*systrayBorderSize$
systrayBoxHeight $systrayHeight$
systrayBoxOnCreate !systrayhook .none ^@ih^
*script var systrayx $systrayx$
*script bang !systrayLeft
*script exec !varadd systrayx $systrayIconSize+systrayIconSpacingX$
*script exec !systraymove -%#(resolutionx+%{systrayx})%# 0
*script ~bang
*script bang !systrayRight
*script exec !varadd systrayx -$systrayIconSize+systrayIconSpacingX$
*script exec !systraymove -%#(resolutionx+%{systrayx})%# 0
*script ~bang
systrayIconSize 16
systrayIconSpacingX 1
systrayHeight 20
systrayBorderSize $(systrayHeight-systrayIconSize)/2$
systrayBoxX 0
systrayBoxY 0
systrayDisplayCount 4
; do not change these
systrayAutoSize
systrayX 0
systrayY 0
*SkinBox systrayBox
systrayBoxWidth $systrayDisplayCount*(systrayIconSize+systrayIconSpacingX)+2*systrayBorderSize$
systrayBoxHeight $systrayHeight$
systrayBoxOnCreate !systrayhook .none ^@ih^
*script var systrayx $systrayx$
*script bang !systrayLeft
*script exec !varadd systrayx $systrayIconSize+systrayIconSpacingX$
*script exec !systraymove -%#(resolutionx+%{systrayx})%# 0
*script ~bang
*script bang !systrayRight
*script exec !varadd systrayx -$systrayIconSize+systrayIconSpacingX$
*script exec !systraymove -%#(resolutionx+%{systrayx})%# 0
*script ~bang
You can use lsbox instead of skinbox, but I'm more familiar with this. This will also need mzScript 0.9 b12 (jam 4), although you can modify it a bit to work with earlier versions.
Load order: mzscript, systray, skinbox/lsbox.
It does no error checking as it is, if you try to scroll it right past the end, it will give you a seemingly unrelated error and scroll past the end. Perhaps someone who's done more with mzScript can add checks.