xLabel multiple bangs Thread last updated on 2006-12-18 09:36:16

Posted by member 348804 on 2006-12-17 19:25:56

I am trying to do this to dynamically show rows of icons. The lower row grows the image onenter and should hide the other popup rows.

pl0OnEnter !ParseEvars !LabelRepositionBy %[LabelName]% -4 -4 8 8

works fine for enlarge effect, however
pl0OnEnter !ParseEvars !LabelShow pl1 !LabelRepositionBy %[LabelName]% -4 -4 8 8

Doesn't show the pl1 group and doesn't execute the reposition.

Peter

Posted by member 1 on 2006-12-17 20:28:00 link

pl0OnEnter !Execute [!ParseEvars] [!LabelShow pl1] [!LabelRepositionBy %[LabelName]% -4 -4 8 8]

RTFM!!!!

Posted by member 348804 on 2006-12-17 23:06:49 link

I did RTFM if you can actually call it a manual. And I tried what you show, long before you posted it. However it doesn't work either. Seems !Execute doesn't like the %[LabelName]% becuase when I hard code a label instead of the variable it works.

Peter

Posted by member 12025 on 2006-12-18 00:10:36 link

could be: brackets.

Posted by member 5575 on 2006-12-18 00:12:41 link

That ought to be more like this, I think:

pl0OnEnter !execute [!LabelShow pl1][!ParseEvars !LabelRepositionBy %[LabelName]% -4 -4 8 8]

!ParseEvars should precede the bang in which an evar needs to be parsed, not just plopped on the front of a whole series like that.

Posted by member 212670 on 2006-12-18 00:14:55 link

The parseevars is in the wrong place in DeV's example. :P

pl0OnEnter !ParseEvars !Execute [!LabelShow pl1][!LabelRepositionBy %[LabelName]% -4 -4 8 8]

Try that.

edit - Boreas' example should work just fine, too. (Mine would parse multiple %[...]% through out the line, his just for the command enclosed within the [] with it.)

Posted by member 348804 on 2006-12-18 08:45:04 link

thx, moving parseevars did it.

(soapbox)
I've spent days upon days reading docs, some well written, others not. Core docs for LS are missing, this website is broke in several places. It certainly isn't easy for a newcomer.
(/soapbox)

My theme is mostly complete now and after solving my last couple of gitches I'll share with others.

Peter

Posted by member 12025 on 2006-12-18 09:36:16 link

The ones at Shellfront still apply for the core and have the info.