!LabelMove x $resolutionx-systraycurrentwidth-56$ -30??? Thread last updated on 2004-06-01 15:00:51

Posted by member 7991 on 2004-06-01 01:38:13

Why isn't this working?? I'm trying to place an image directly to the left of an expanding sytray (which is right justified on the screen... grows left as icons are added).

I can move the image to the correct position if this exact command is run from LSCP2.

Using xlabel-2.2.1

Posted by member 12025 on 2004-06-01 01:42:45 link

1. Why such an old version of xLabel? Try 3.0.
2. Try !ParseEvars instead of just the normal bang.

Posted by member 7991 on 2004-06-01 01:53:54 link

Old version? oooohh. k.

SystrayCurrentWidth 0
SystrayOnAdd !execute[!ParseEvars][!LabelMove TaskSysJunction $resolutionx-systraycurrentwidth-56$ -30][!TaskbarShrink 18 0]
SystrayOnDel !execute[!ParseEvars][!LabelMove TaskSysJunction $resolutionx-systraycurrentwidth-56$ -30][!TaskbarGrow 18 0]
SystrayAutoSize
SystrayAlign right bottom
SysTrayX $ResolutionX-20$
SysTrayY $ResolutionY-30$
SystrayDirection Left
SystrayWidth 0
SystrayHeight 30
SysTrayIconSpacingX 2
SystrayIconSpacingY 0
SystrayBorderTop 8
SystrayBorderRight 0
SystrayBorderBottom 6
SystrayBitmapTiled
SystrayBitmap systrayBG.png
SystrayCheckOnCommand


Didn't work... Searched for info on !ParseEvars, and found nothing... am I using it correctly?

Posted by member 7223 on 2004-06-01 02:51:30 link

with mzscript-0.9-beta_12:
SystrayOnAdd !execute [!exec !LabelMove TaskSysJunction %#resolutionx-systraycurrentwidth-56%# -30][!TaskbarShrink 18 0]

Posted by member 12025 on 2004-06-01 03:08:52 link

xLabel readme.
!ParseEvars !original_bang params

Posted by member 7991 on 2004-06-01 10:12:22 link

Attempted both suggestions, didn't work...
*script bang !movejunctionleft
*Script exec !MoveLabelBy TaskSysJunction -18 0
*Script exec !TaskbarShrink 18 0
*Script ~bang

*script bang !movejunctionright
*Script exec !MoveLabelBy TaskSysJunction 18 0
*Script exec !TaskbarGrow 18 0
*Script ~bang


SystrayCurrentWidth 0
SystrayOnAdd !movejunctionleft
SystrayOnDel !movejunctionright
SystrayAutoSize


Didn't work... using mzscript-0.9-beta_12, xlabel-3.0

Posted by member 7991 on 2004-06-01 15:00:51 link

After some time away from my computer, and periodic nicotine administrations, I discovered the problem with the above scripts; !MoveLabelBy should be !LabelMoveBy... script is now working, thanks peeps!