|
Leitia Adept
Joined: 04 May 2007 Posts: 292 Location: Boston
|
Posted: Fri Jan 16, 2009 8:55 pm
Correct Method |
I was wondering what is the proper way to write a help alias to load a status window.
I dislike the text not having margins so am using a space like these:
Code: |
#stw + " "%ansi( white)" BB q q [%3]"
#stw + " "%ansi( white)" set new default speed quick [cast BB at %3 (new target)]"
#stw + " "%ansi( white)" inputs BB highlighted, this will fire on old target with new default speed change"
|
|
|
|
|
Tech GURU
Joined: 18 Oct 2000 Posts: 2733 Location: Atlanta, USA
|
Posted: Sat Jan 17, 2009 12:31 am |
I usually find it easier to build my variable then then display it once. It's probably a bit more efficient since you're only drawing the screen once versus 3 times.
Code: |
#VAR Status {" "%ansi( white)" BB q q [%3]"}
#VAR Status %concat(@Status, " "%ansi( white)" set new default speed quick [cast BB at %3 (new target)]")
#VAR Status %concat(@Status, " "%ansi( white)" inputs BB highlighted, this will fire on old target with new default speed change"
#stw @Status
|
I did that off the top of my head so you may have to play with the syntax a bit. Also not you could probably do it one line with %concat() and %crlf |
|
_________________ Asati di tempari! |
|
|
|
Leitia Adept
Joined: 04 May 2007 Posts: 292 Location: Boston
|
Posted: Sat Jan 17, 2009 3:53 am |
Neat, I'll try it. Don't really see the new lines yet, but I like the idea. TY
|
|
|
|
Leitia Adept
Joined: 04 May 2007 Posts: 292 Location: Boston
|
Posted: Fri Jan 23, 2009 2:06 pm |
I pasted that into an alias and got hugeish complaints from the editor. This fooled the syntax help
#VAR Status {%literal( "BB q q [%3]")}
#STW %ansi( white) @status
I suppose I should proceed this way. Some small weirdness there between the normal use of quotes and %literal quotes by the syntax checker |
|
|
|
|
|