custom bang doesn't work to hide bar Thread last updated on 2003-10-31 20:41:45

Posted by member 1316 on 2003-10-30 19:18:35

The following code is supposed to hide my entire bar: tasks, systray, all the labels, vwm, etc. but it doesn't. can someone tell me why? I have it below both ways which i've tried it. It looks fine, as far as I can tell, but it doesn't do anything!
*Script bang !togglebar
*Script exec !LabelBackToggle
*Script exec !LabelPrevToggle
*Script exec !LabelPauseToggle
*Script exec !LabelStopToggle
*Script exec !LabelNextToggle
*Script exec !LabelTimeToggle
*Script exec !LabelREmTimeToggle
*Script exec !LabelScrollToggle
*Script exec !LabelBackToggle
*Script exec !LabelMemToggle
*Script exec !VWMRollup
*Script exec !TaskbarToggle
*Script exec !SystrayToggle
*Script ~bang

and
*Script bang !togglebar
*Script exec !Execute [!LabelBackToggle] [!LabelPrevToggle] [!LabelPauseToggle] [!LabelStopToggle] [!LabelNextToggle] [!LabelTimeToggle] [!LabelREmTimeToggle] [!LabelScrollToggle] [!LabelBackToggle] [!LabelMemToggle] [!VWMRollup] [!TaskbarToggle] [!SystrayToggle]
*Script ~bang

thanks for any advice anyone can throw my way!

** Update: Fixed the wrap thing... - Dev

Posted by member 1316 on 2003-10-30 19:20:04 link

hmm, not sure why it's making the single space between *script and exec, and exec and !Execute so long...

Posted by member 37809 on 2003-10-30 20:36:43 link

because that one line is so friggin' long and without spaces, browsers don't break these 'single word's :)

i suppose wherever you have this, mzscript isn't picking it up. recheck config about where the scripts may be read: either as part
of step.rc, or in a varfile.

for what's here, you don't even need mzscript, if this is all you're using it for; you could do without it.
just define an evar with that big line without spaces there, and !execute $WhoaNelly$

Posted by member 1 on 2003-10-30 22:47:46 link

There used to be a rule about the length in memory in which something could be stored...I wonder if you shortened it to !LabelToggle if it would start working.

Posted by member 1316 on 2003-10-31 13:24:54 link

it's going now. I was doing "include $configdir$script.rc", when I should have been doing "*mzscriptfile $configdir$script.rc".

Posted by member 1 on 2003-10-31 20:41:45 link

ah...you could also have done..."mzscriptusestep"