Posted by member 2018 on 2003-11-08 13:24:23 link

TaskBarX $ResolutionX/2$ is the correct syntax.
the problem with this approach is it only works when LS starts or recycles so if you have a dynamic sized taskbar( ie the size grows everytime you run a new task) it won't work to keep it centered.
taskbarx $ResolutionX/2$
TaskbarOnAdd !tbca
TaskbarOnDel !tbcd

MzScript vars
TaskBarSize 0

Mzscript
*Script bang !tbcd
*Script exec !TaskbarSize 0 -20
*Script exec !varsub Taskbarsize 20
*Script exec !TaskbarMoveBy 0 20
*Script ~bang

*Script bang !tbca
*Script exec !TaskbarSize 0 20
*Script exec !varadd Taskbarsize 20
*Script exec !TaskbarMoveBy 0 -20
*Script ~bang

this should work although i havn't tested it.
good luck