|
Valkenar Beginner
Joined: 12 Aug 2009 Posts: 15
|
Posted: Tue Jan 19, 2010 5:27 pm
Window interaction |
I'm working on something involving tieing two mud windows together. What I'm having trouble with is directing commands received in the command line to another window. Usually they seem to do nothing at all. I've tried messing with the network connection options but that doesn't seem to have any desirable effects. How can I do this?
Also, is there any way to send colored text to another window? I am using #window, but it all shows up one color regardless of the source color. #window also seems to be a very very slow command. #capture is faster, but still introduces noticeable lag and is less convenient in other ways.
Using 3.12 beta |
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Tue Jan 19, 2010 6:03 pm |
The #EXECWIN command can be used to execute a command in another window:
#EXECWIN WindowName {command}
To just send text to another window, use the #WINDOW command:
#WINDOW WindowName {text}
For text color, just use %ansi or MXP/HTML color tags with the #WINDOW command:
#WINDOW WindowName {%ansi(red)red text}
#WINDOW WindowName {<COLOR red>red text</COLOR>}
The #WINDOW command forces the other window to update itself, which might explain the slowdown, but it should be pretty minor. There is no way to send text to another window without causing that window to refresh, sorry. |
|
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|