|
Josiah.Bruns Apprentice
Joined: 04 Mar 2007 Posts: 103
|
Posted: Sun Mar 04, 2007 11:26 pm
Need Help with #WIN command |
I am trying to use the #Win command with a variable. Should be simple but i am a bit confused with the use of variables and different command interpreter modes.
i have a variable:
Named: SummaryWindow
Value: StatisticsSummary %ansi( cyan, bold)
My Goal is to write something like this.
#win summarywindow MobName = %eval @MobName
and i would like to have "MobName = %eval @MobName" go to a window called StatisticsSummary and i would like it to be in cyan.
I have a command like this that is curently doing the trick.
#WIN StatisticsSummary %ansi( cyan, bold) MobName = %eval @MobName |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Sun Mar 04, 2007 11:58 pm |
Use brackets. The #WINDOW command helpfile has details on which set to use.
|
|
_________________ EDIT: I didn't like my old signature |
|
|
|
Josiah.Bruns Apprentice
Joined: 04 Mar 2007 Posts: 103
|
Posted: Mon Mar 05, 2007 12:26 am |
I was unable to figure it out, or see the reference in the #windows command help file.
It looks like i should try something like
#win <@SummaryWindow> hello
but that just creates a new window named <StatisticsSummary (square symbol) [0;36;40;1m>
if i do it without the <> its the same window name only it doesn't have the <> surrounding the name.
The hello is in the window thats created though. |
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Mon Mar 05, 2007 12:37 am |
You can use the colon character to do this:
SummaryWindow:whatever
:SummaryWindow:whatever
The first changes focus, the second doesn't. |
|
|
|
Josiah.Bruns Apprentice
Joined: 04 Mar 2007 Posts: 103
|
Posted: Mon Mar 05, 2007 12:43 am |
is the reason this isn't working because of this line of explination in the variable help file?
Most commands that create settings do not preform expansion on variables. The expansion occurs when the setting is used.
and if so is there a way to work around this? |
|
|
|
|
|