Topic: synchronization xtray and label
system:win7 64 bit
as shown,when normal, Startbutton should have been left of the xtray
Now is that theme loaded the Startbutton will automatically move one cell to the right every few seconds, meaning that automate xTrayOnRemove command.
here is code:
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
theme.rc:
xTrayX -0
xTrayY -128
xTrayAutoSize true
xTrayAutoSize 25 5
IF trayON
xTrayStartHidden false
ELSE
xTrayStartHidden true
ENDIF
xTrayAlphaMap
xTrayAlwaysOnTop
xTrayBorders 4 10 10 102
xTrayXSpacing 4
xTrayDirection ".left"
;xTrayWrapDirection ".bottom "
xTrayShowTooltip false
xTrayPaintingMode ".image"
xTrayImage trayBackgroundWhite.png
xTrayImageTopEdge 22
xTrayOnMove !movexTray
xTrayOnMiddleClickUp !xTrayToggleHiddenIcons
xTrayOnAdd !trayIconAdded
xTrayOnRemove !trayIconRemoved
;xTrayOnAdd !execute [!If ["%{trayOn}" = "true"] [!LabelMoveBy startButton -20 0 25 5]]
;xTrayOnRemove !execute [!If ["%{trayOn}" = "true"] [!LabelMoveBy startButton 20 0 25 5]]
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
script.rc:
*Script bang !trayOn
*Script exec !xTrayShow
*Script exec !LabelMoveBy startButton %#-xTrayCurrentWidth%# 0 25 5
*Script exec !varset trayOn true
*Script exec !varsave trayOn
*Script exec !PopupRescan reload
*Script ~bang
*Script bang !trayOff
*Script exec !LabelMove startButton -103 -128 25 5
*Script exec !xTrayHide
*Script exec !varset trayOn false
*Script exec !varsave trayOn
*Script exec !PopupRescan reload
*Script ~bang
*Script bang !trayIconAdded
*Script exec !If ["%{trayOn}" = "true"] [!LabelMoveBy startButton -20 0 25 5]
*Script ~bang
*Script bang !trayIconRemoved
*Script exec !If ["%{trayOn}" = "true"] [!LabelMoveBy startButton 20 0 25 5]
*Script ~bang
*Script bang !movexTray
*Script exec !varset xTrayCurrentWidth %#xTrayCurrentWidth%#
*Script exec !varsave xTrayCurrentWidth
*Script ~bang
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
themeVars.rc
colourScheme 1
transparentOn true
runDialogCoordinateX 1266
runDialogCoordinateY 646
shutdownDialogCoordinateX 1287
shutdownDialogCoordinateY 227
ampON true
ampCoordinateX 50
ampCoordinateY 564
ampDockedOn true
startMenuOn true
trayOn true
volumeOn true
timeMode 1
dateMode 1
clockCoordinateX 787
clockCoordinateY 473
clockDockedOn true
taskbarGroupingOn false
xTrayCurrentWidth 330
;xTrayCurrentHeigh 200