 |
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Sun Apr 26, 2009 5:13 am
[3.06pro]Window redirection seems not to be working correctly |
| Code: |
<alias name="ShowChannel" id="27">
<value>:History:#clr
#forall @{Channel$chan} {:History:%i}</value>
<arglist>$chan</arglist>
</alias>
|
Window redirection via an alias and a named parameter seems to not be working correctly. This alias evaluates properly (%i in the forall is populated with the correct item from the correct stringlist variable), but the information is sent to the main window as a command sent to the game rather than to the specified window. This behavior does not seem to be evident in aliases that rely on %1...%99 instead of named parameters.
EDIT: Found a new way to do it via #WINDOW and %expandlist that doesn't cause problems, but I'm still not sure why the above acts so goofy. Back to the manual, I guess...
Another thing I noticed was that the two alias options (Auto append and Parse arguments) seem to have the same tooltip/status bar text in the Package Editor. |
|
_________________ EDIT: I didn't like my old signature |
|
|
 |
Fang Xianfu GURU

Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Sun Apr 26, 2009 11:21 am |
You can only use : on the command line. Use #execwin elsewhere. And I think the status bar thing is a known issue.
|
|
|
|
 |
shalimar GURU

Joined: 04 Aug 2002 Posts: 4790 Location: Pensacola, FL, USA
|
Posted: Sun Apr 26, 2009 5:38 pm |
I use the : method in MXP send commands as well, without issue.
|
|
|
|
 |
Zugg MASTER

Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Mon Apr 27, 2009 5:13 pm |
As Fang mentioned, using #execwin is preferred for newer scripts. The :window: method was only intended to be used on the command line.
|
|
|
|
 |
shalimar GURU

Joined: 04 Aug 2002 Posts: 4790 Location: Pensacola, FL, USA
|
Posted: Mon Apr 27, 2009 5:39 pm |
'Preferred' was never even mentioned, i was debating the 'can only be used on the command line' statement, but that is quibbling semantics...
|
|
|
|
 |
|
|
|