Posted by member 700 on 2003-09-26 17:48:37
I am trying to use mzScript and TextReplace to make my taskbar center properly at the bottom of the screen. My code as of the moment looks like this:
My problem is that I need to preform a refresh to get the variables to pass into the Step.rc file. Can someone help me with this cause I can't for the life of me get it to work. I've tried putting a *Script exec !Refresh inside there but it keeps running it over and over again and finally crashes. Anyone give me any input on this?
*Script bang !TaskbarSetup
*Script exec !varSet TaskBarPosX %[xresolution]
*Script exec !varMul TaskBarPosX .5
*Script exec !varAdd TaskBarPosX -320
*Script exec !textreplace "step.rc" "TaskBarX" "TaskBarX %[TaskBarPosX]"
*Script ~bang
*Script exec !varSet TaskBarPosX %[xresolution]
*Script exec !varMul TaskBarPosX .5
*Script exec !varAdd TaskBarPosX -320
*Script exec !textreplace "step.rc" "TaskBarX" "TaskBarX %[TaskBarPosX]"
*Script ~bang
My problem is that I need to preform a refresh to get the variables to pass into the Step.rc file. Can someone help me with this cause I can't for the life of me get it to work. I've tried putting a *Script exec !Refresh inside there but it keeps running it over and over again and finally crashes. Anyone give me any input on this?