Posted by member 7223 on 2003-06-10 01:45:30 link

Glad to see the code section isn't dead :)

I haven't tested this piece of code but I understand it's logicial. Of course, some little tests can be add (haven't tested them):
*script bang !systrayLeft
*script exec !varadd systrayx $systrayIconSize+systrayIconSpacingX$
*Script exec !IfEval ("%{systrayx}" > "%#SystrayCurrentWidth-SystrayBorderSize%#") |VarSet systrayx %#SystrayCurrentWidth-SystrayBorderSize%#
*script exec !systraymove -%#(resolutionx+%{systrayx})%# 0
*script ~bang

*script bang !systrayRight
*script exec !varadd systrayx -$systrayIconSize+systrayIconSpacingX$
*Script exec !IfEval ("%{systrayx}" less than "%#SystrayBorderSize%#") |VarSet systrayx %#SystrayBorderSize%#
*script exec !systraymove -%#(resolutionx+%{systrayx})%# 0
*script ~bang


Of course, if you had defined SystrayBorderLeft and SystrayBorderRight instead of SystrayBorder, you should replace SystrayBorderSize with SystrayBorderLeft+SystrayBorderRight


Note: i've replaced the opposite sign of ">" with "less than" because this f** char is messing up everything