*xTaskbar taskbarname
Define your own Taskbar name! (Or for having more then one Taskbar.)
Important: If you only need one Taskbar, you do not need to set this! (See Examples)
Example settings without custom Taskbar(name) (90% of the users will use xTaskbar this way!):
xTaskbarX x-coordinate
xTaskbarY ....
Example settings with custom Taskbar(name), in this case "Task":
*xTaskbar Task
TaskX x-coordinate
TaskY ....
Key:
• = PlaceHolder, must be replaced with the xTaskbar name. Default is "xTaskbar".
(Button Type) = PlaceHolder, can be one of the following:
xTaskbarShowHoverState
xTaskbarUseGrouping
X INT
Y INT
Width INT
Height INT
AlwaysOnTop BOOL
BehindWindow "Classname" "WindowName"
StartHidden BOOL
HideIfEmpty BOOL
AddOnlyMatching "SubString from Class or Windowname;SubString from Class or Windowname;..."
RemoveOnlyMatching "SubString from Class or Windowname;SubString from Class or Windowname;..."
AlphaTransparency INT
AlphaMap BOOL
AlphaFade BOOL
CustomAlphaFade (STEPSIZE) (DELAY)
TransparencyMode BOOL
Borders LEFT RIGHT TOP BOTTOM or (LEFT/RIGHT) (TOP/BOTTOM) or (LEFT/RIGHT/TOP/BOTTOM)
LeftBorder INT
TopBorder INT
RightBorder INT
BottomBorder INT
Lines INT
MaxLines INT
ButtonMaxWidth INT
ButtonMaxHeight INT
ButtonXSpacing INT
ButtonYSpacing INT
Layout ".horizontal" or ".vertical"
ButtonDirection ".left", ".right", ".top" or ".bottom"
ButtonWrapDirection ".top", ".bottom", ".left" or ".right"
WrapCount INT
UpdateInterval INT
FlashInterval INT
LoadInBox BOOL
NoCreateAtStartup BOOL
UseBigIcon BOOL
UseGrouping BOOL
ShowIcon BOOL
ShowText BOOL
ShowTooltip BOOL
BalloonTooltip [TITLE(string)] [ICON(int)]
xTaskbarBalloonTooltip
--> BallonTooltip without Title and IconxTaskbarBalloonTooltip true
--> BallonTooltip without Title and IconxTaskbarBalloonTooltip "Info:" 1
--> BallonTooltip with Title "Info:" and Info IconxTaskbarBalloonTooltip "TaskButton Info:"
--> BallonTooltip with Title "TaskButton Info:" and No IconxTaskbarBalloonTooltip "TaskButton Info:" 0
--> BallonTooltip with Title "TaskButton Info:" and No Icon
TITLE is a plain title text.
ICON is an INT value:
0 = No Icon
1 = Info Icon
2 = Warning Icon -> Quite silly ;)
3 = Error Icon -> Quite silly ;)
TooltipDurations INT INT
TooltipColor COLOR
TooltipTextColor COLOR
ShowHoverState BOOL
Display "flashing", "all", "normal", "active", "minimized", "normal+active", "normal+minimized" and "active+minimized"
Sort ".none", ".filename", ".classname", ".windowname"
FocusOnEnter BOOL
NoMinimizeOnClick BOOL
VWMCurrentDesktopOnly BOOL
DropDelay INT
Image IMAGE
ImageMode "stretch", "tile", "tile-horizontal", "tile-vertical"
ImageLeftEdge INT
ImageRightEdge INT
ImageTopEdge INT
ImageBottomEdge INT
SaturationIntensity INT
HueIntensity INT
HueColor COLOR
Attention: Only valid, if "xTaskbarUseSolidColors" is set!
UseSolidColors BOOL
SolidColors (bgCOLOR) [(lightbevelCOLOR)] [(darkbevelCOLOR)]
SolidBevelSize LEFT RIGHT TOP BOTTOM or (LEFT/RIGHT) (TOP/BOTTOM) or (LEFT/RIGHT/TOP/BOTTOM)
xTaskbarSolidBevelSize 1 | sets all borders to 1px |
xTaskbarSolidBevelSize 1 0 | sets left/right borders to 1px and top/bottom borders to 0px |
xTaskbarSolidBevelSize 1 0 2 1 | sets left/right/top/bottom border to the defined values |
SolidGradientColors (COLOR) [(COLOR)] [(COLOR)] ...
SolidGradientVertical BOOL
BorderMethod "Raised", "Sunken", "Etched", "Bump" and ".none" (Default)
(Note that you will need to define dummy variables if you include these in scripts/rc files with standard $evar$ syntax, since when LiteStep reads these files xTaskbar has not yet added them, causing LiteStep to think the variables are undefined.)
Only useful if used in HANDTYPED BANGS (LSXCommand) or if you use it in mzscripts or with "xLabels" special "!ParseEvars" Bang Command!
To use $evars$ in Bangs, which contain the "CURRENT" value, use the escape code %# and prefix the "!ParseEvars" Bang!
$xtaskbarcurrentwidth$
becomes %#xtaskbarcurrentwidth%#
and so on ...
If you use a Custom TaskbarName or more than one taskbar, "xTaskbar" naturally becomes the name of your Taskbar!
$xTaskbarCurrentX$
$xTaskbarCurrentY$
$xTaskbarCurrentWidth$
$xTaskbarCurrentHeight$
$xTaskbarCurrentButtonCount$
$xTaskbarCurrentLines$
$xTaskbarHoverTask$
The "(Button Type)" in front of each setting means that every setting can be:
Normal, Active, Minimized, Flashing, Hover or Grouped
If you don't set any of these 6 specific modifiers, the default settings will be used for all modes. (See Examples)
If you set a setting with "Normal" then, THIS becomes Default for all other States except Hover and Grouped!!
Example:
xTaskbarButtonSaturationIntensity 70
All Button States have a SaturationIntensity of 70!
xTaskbarMinimizedButtonSaturationIntensity 70
Minimized Buttons have a SaturationIntensity of 70!
(Button Type) = PlaceHolder, can be one of the following:
xTaskbarShowHoverState
xTaskbarUseGrouping
(Button Type)ButtonTrueTransparent BOOL
(Button Type)ButtonImage IMAGE
(Button Type)ButtonImageLeftEdge INT
(Button Type)ButtonImageTopEdge INT
(Button Type)ButtonImageRightEdge INT
(Button Type)ButtonImageBottomEdge INT
(Button Type)ButtonImageMode "stretch", "tile", "tile-horizontal" or "tile-vertical"
(Button Type)ButtonSaturationIntensity INT
(Button Type)ButtonHueIntensity INT
(Button Type)ButtonHueColor COLOR
Attention: Only valid, if "xTaskbarUse(Button Type)ButtonSolidColors" is set!
Use(Button Type)ButtonSolidColors BOOL
(Button Type)ButtonSolidColors (bgCOLOR) [(lightbevelCOLOR)] [(darkbevelCOLOR)]
(Button Type)ButtonSolidBevelSize LEFT RIGHT TOP BOTTOM or (LEFT/RIGHT) (TOP/BOTTOM) or (LEFT/RIGHT/TOP/BOTTOM)
xTaskbar(Button Type)ButtonSolidBevelSize 1 | sets all borders to 1px |
xTaskbar(Button Type)ButtonSolidBevelSize 1 0 | sets left/right borders to 1px and top/bottom borders to 0px |
xTaskbar(Button Type)ButtonSolidBevelSize 1 0 2 1 | sets left/right/top/bottom border to the defined values |
(Button Type)ButtonSolidGradientColors (COLOR) [(COLOR)] [(COLOR)] ...
(Button Type)ButtonSolidGradientVertical BOOL
(Button Type)ButtonBorderMethod "Raised", "Sunken", "Etched", "Bump" and ".none" (Default)
The "(Button Type)" in front of each setting means that every setting can be:
Normal, Active, Minimized, Flashing, Hover and Grouped
If you don't set any of these 6 specific modifiers, the default settings will be used for all modes. (See Examples)
If you set a setting with "Normal" then, THIS becomes Default for all other States except Hover and Grouped!!
Example:
Additionally you must enable the Hover Icon Settings explicit with "xTaskbarUseHoverIconSettings"
UseHoverIconSettings BOOL
If defined, Hover Icon Settings are enabled, otherwise current State settings are used.
Additionally you must enable the Grouped Icon Settings explicit with "xTaskbarUseGroupedIconSettings"
UseGroupedIconSettings BOOL
If defined, Grouped Icon Settings are enabled, otherwise current State settings are used.
xTaskbarIconX 5
All Button States have a IconX Position of 5!
xTaskbarMinimizedIconX 5
Minimized Buttons have a IconX Position of 5!
(Button Type) = PlaceHolder, can be one of the following:
xTaskbarShowHoverState
and xTaskbarUseHoverIconSettings
xTaskbarUseGrouping
and xTaskbarUseGroupedIconSettings
(Button Type)IconX INT
(Button Type)IconY INT
(Button Type)IconSize INT
xTaskbarUseBigIcon
(Button Type)IconSaturationIntensity INT
(Button Type)IconHueIntensity INT
(Button Type)IconHueColor COLOR
The "(Button Type)" in front of each setting means that every setting can be:
Normal, Active, Minimized, Flashing, Hover and Grouped
If you don't set any of these 6 specific modifiers, the default settings will be used for all modes. (See Examples)
If you set a setting with "Normal" then, THIS becomes Default for all other States except Hover and Grouped!!
Example:
Additionally you must enable the Hover Font Settings explicit with "xTaskbarUseHoverFontSettings"
UseHoverFontSettings BOOL
If defined, Hover Font Settings are enabled, otherwise current State settings are used.
Additionally you must enable the Grouped Font Settings explicit with "xTaskbarUseGroupedFontSettings"
UseGroupedFontSettings BOOL
If defined, Grouped Font Settings are enabled, otherwise current State settings are used.
xTaskbarFontHeight 20
All Button States have a FontHeight of 20!
xTaskbarMinimizedFontHeight 20
Minimized Buttons have a Text FontHeight of 20!
(Button Type) = PlaceHolder, can be one of the following:
xTaskbarShowHoverState
and xTaskbarUseHoverFontSettings
xTaskbarUseGrouping
and xTaskbarUseGroupedFontSettings
(Button Type)Font FONT
(Button Type)FontCharSet CHARSET
(Button Type)FontSmoothing BOOL
(Button Type)FontCleartype BOOL
(Button Type)FontHeight INT
(Button Type)FontLeftBorder INT
(Button Type)FontRightBorder INT
(Button Type)FontTopBorder INT
(Button Type)FontBottomBorder INT
(Button Type)FontColor COLOR
(Button Type)FontBold BOOL
(Button Type)FontItalic BOOL
(Button Type)FontUnderline BOOL
(Button Type)FontNoEllipsis BOOL
(Button Type)FontAlign "left", "right" or "center"
(Button Type)FontVertAlign "top", "bottom" or "center"
(Button Type)FontShadow BOOL
(Button Type)FontShadowColor COLOR
(Button Type)FontShadowX INT
(Button Type)FontShadowY INT
(Button Type)FontOutline BOOL
(Button Type)FontOutlineColor COLOR
All Values in '[...]' are optional, means if you didn't specify more than ONE Taskbar, you never need to specify [TASKBARNAME]!!
[TASKBARNAME] must naturally be replaced with the current Taskbarname, you want to be affected!
The exact purpose of every bang should be quite obvious.
!xTaskbarAlwaysOnTop [TASKBARNAME] ("true"|"on", "false"|"off" or "toggle"|"switch")
!xTaskbarCreate [TASKBARNAME]
!xTaskbarDestroy [TASKBARNAME]
!xTaskbarDisplay [TASKBARNAME] (Values, see: xTaskbarDisplay)
!xTaskbarHide [TASKBARNAME]
!xTaskbarLSBoxHook [TASKBARNAME]
!xTaskbarMove [TASKBARNAME] X Y [STEPS] [TIME]
!xTaskbarMoveBy [TASKBARNAME] X Y [STEPS] [TIME]
!xTaskbarRefresh [TASKBARNAME] SETTING NEWVALUE
You can change "EVERY" Taskbarsetting On-The-Fly without the need of a hardcoded bang! This is like Normal Bangs only temporary until next Recycle! If you want to keep settings, you must change and save them.
Examples:
You want (On-The-Fly) another Background Image for the Taskbar, simply call this Bang:
!xtaskbarrefresh xtaskbarimage new_image.png
Attention:
You need always TWO settings!
!xtaskbarrefresh xtaskbarshowtooltips
won't work, you must define the new setting value (e.g. false)
!xtaskbarrefresh xtaskbarshowtooltips false
!xTaskbarReposition [TASKBARNAME] X Y WIDTH HEIGHT [STEPS] [TIME]
!xTaskbarRepositionBy [TASKBARNAME] X Y WIDTH HEIGHT [STEPS] [TIME]
!xTaskbarResize [TASKBARNAME] WIDTH HEIGHT [STEPS] [TIME]
!xTaskbarResizeBy [TASKBARNAME] WIDTH HEIGHT [STEPS] [TIME]
!xTaskbarSetAlpha [TASKBARNAME] INT [STEPS] [TIME]
!xTaskbarShow [TASKBARNAME]
!xTaskbarSwitch [TASKBARNAME] "next", "prev"
!xTaskbarToggle [TASKBARNAME]
• ActionsOnButtonDown BOOL
If defined, the activation of actions on ButtonDown is used, instead of ButtonUp.
OnLeftClickButton ".select", ".menu", ".close", ".ontop" or ".none"
OnRightClickButton ".select", ".menu", ".close", ".ontop" or ".none"
OnMiddleClickButton ".select", ".menu", ".close", ".ontop" or ".none"
OnSelect ACTION
OnEnter ACTION
OnLeave ACTION
OnLeftClickDown ACTION
OnLeftClickUp ACTION
OnMiddleClickDown ACTION
OnMiddleClickUp ACTION
OnRightClickDown ACTION
OnRightClickUp ACTION
OnWheelDown ACTION
xTaskbarFocusOnEnter
OnWheelUp ACTION
xTaskbarFocusOnEnter
OnResize ACTION
OnMove ACTION
OnAdd ACTION
OnRemove ACTION
OnLineAdd ACTION
OnLineRemove ACTION
The following "Substring" references use the "Standard Wildcard" Syntax!
You can remove the Buttons of specific Applications with the following:
*xTaskbarRemove "SubString from Class or Windowname"
All Applications, which "Class" or "Windowname" match the "SubString", will not be shown in any Taskbars.
Example:
*xTaskbarRemove "*free*"
All Applications, which have the string "free" somewhere in their Classname or Windowname, will be ignored from xTaskbar.
You can define Custom Icons for Applications with the following:
*xTaskbarIcon "SubString from Class or Windowname" "FULL Path to a (Icon-)File"
All Applications, which "Class" or "Windowname" match the "SubString", get the Icon from the choosen (Icon-)File in all Taskbars. *xTaskbarIcon supports Icon Extraction based on IconIndexNumber, so you can extract even more Icons.
Example:
*xTaskbarIcon "*free*" "c:\winnt\explorer.exe,8"
All Applications, which have the string "free" somewhere in their Classname or Windowname, get the Eight Icon of Explorer.exe, which is in this case an "Alert Icon".
First the standard settings, which are all the same for the following examples:
xtaskbarx 20
xtaskbartopborder 4
xtaskbarbuttonxspacing 4
xtaskbarbuttonmaxwidth 200
xtaskbarfontleftborder 24xtaskbarusesolidcolors
xtaskbarbordermethod etched
xtaskbarusebuttonsolidcolors
xtaskbarbuttonbordermethod raised
xtaskbaractivebuttonbordermethod sunken
xtaskbarminimizedbuttonbordermethod bump
xtaskbary 20
xtaskbarwidth $resolutionx-40$ (remove this setting, if another value is used below!)
xtaskbarheight 32 (remove this setting, if another value is used below!)
xtaskbarbottomborder 4
xtaskbarleftborder 10
xtaskbarrightborder 10
xtaskbarbuttonyspacing 2
xtaskbariconx 4
1. Normal SingleLine Taskbar:
Guess what, you only need the standard settings :)
2. Taskbar With Two Lines horizontally filled and a Vertical Wrap with the 6th Button:
xtaskbarheight 58 (we should start bigger due to second line)
xtaskbarlines 2
xtaskbarwrapcount 5 (you can also cut this out cause the Default in this case is also 5)
3. Taskbar With Two Lines vertically filled and a Horizontal Wrap:
xtaskbarheight 58 (we should start bigger due to second line)
xtaskbarlines 2
xtaskbarlayout .vertical
xtaskbarwrapcount 2
4. SingleLine Taskbar, which grows on Wrap ( 4 Buttons ) vertically:
xtaskbarwrapcount 4
xtaskbaronlineadd !xtaskbarresizeby 0 26
xtaskbaronlineremove !xTaskbarReSizeBy 0 -26
5. SingleLine Taskbar, which grows/shrinks with each added/removed Button:
xtaskbarwidth 0 (we should start with zero, cause no buttons)
xtaskbaronadd !xtaskbarresizeby 200 0 (our TaskButton should be 200px width)
xtaskbaronremove !xtaskbarresizeby -200 0 (our TaskButton should be 200px width)
For all Layouts, you can define the Direction and WrapDirection with the according settings!
These 5 layouts should give you an impression how to create your desired taskbar layout.
A little Example, which shows TWO Taskbars and the use of xTaskbarDisplay:
tbleftx 2
tbrightx 154
*xtaskbar tbleft
*xtaskbar tbright
tblefty 2
tbleftwidth 152
tbleftheight $resolutiony/2$
tbleftlayout .vertical
tbleftdisplay "normal+minimized"
tbleftusesolidcolors
tbleftsolidcolors c0c0c0 000000
tbleftsolidbevelsize 1
tbleftusebuttonsolidcolors
tbleftbuttonmaxheight 24
tbleftleftborder 2
tbleftrightborder 2
tblefttopborder 2
tbleftbottomborder 2
tbleftfontleftborder 20
tblefticonx 2
tbrighty 2
tbrightwidth 152
tbrightheight 24
tbrightdisplay "active"
tbrightusesolidcolors
tbrightusebuttonsolidcolors
tbrightleftborder 2
tbrightrightborder 2
tbrighttopborder 2
tbrightbottomborder 2
tbrightfontleftborder 20
tbrighticonx 2
If you want a autosizing Taskbar, with Taskbuttons that have a exact size (eg. 64x64), do this:
The Taskbutton Width and Height are automatically calculated, so your xTaskbarWidth must EXACTLY match the following calculation.
((xTaskbarWidth-xTaskbarLeftBorder-xTaskbarRightBorder)-(ButtonCount-1)*xTaskbarButtonxSpacing)/ButtonCount
If the rest of this calculation is 0, then all Taskbuttons have all the exact same size (the result).
Specific Example:
The Taskbuttons are 64x64, centered at the top if the screen and grow towards each side of the screen. The xSpacing between the buttons is 6.
xTaskbarOnAdd !xTaskbarRepositionBy -35 0 70 0
xTaskbarHideIfEmpty
xTaskbarx 0c
xTaskbary 5
xTaskbarWidth 0
xTaskbarHeight 64
xTaskbarButtonMaxWidth 64 (you don't need this, if the calculation is exact)
xTaskbarButtonMaxHeight 64 (you don't need this, if the calculation is exact)
xTaskbarTransparencyMode true
xTaskbarLeftBorder 3
xTaskbarRightBorder 3
xTaskbarButtonxSpacing 6
xTaskbarUseBigIcon
xTaskbarIconSize 64
xTaskbarShowText false
xTaskbarOnRemove !xTaskbarRepositionBy 35 0 -70 0
One tricky point is important!
You must add the xSpacing together with the desired ButtonWidth, but the FIRST Button doesn't need this! If you don't care it may bother you later :P
2 Solutions:
1. Start with a Width of 0 and use LeftBorder and RightBorder so that they are together as big as your xSpacing.
2. Don't use a xSpacing and add/remove only the desired Width (64)
The above calculation in details:
First Button: ((70-3-3)-(1-1)*6)/1 -> 64/1 == 64 rest 0
Second Button: ((140-3-3)-(2-1)*6)/2 -> 128/2 == 64 rest 0
Third Button: ((210-3-3)-(3-1)*6)/3 -> 192/3 == 64 rest 0
...
If you refer to this, you can achieve all you want :)
Please report bugs, if there should be any, to:
andymon@ls-universe.info
Homepage:
www.LS-Universe.info
Here you find News, Updates, and some more.