Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD Beta Forum
Valkenar
Beginner


Joined: 12 Aug 2009
Posts: 15

PostPosted: 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
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: 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.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD Beta Forum All times are GMT
Page 1 of 1

 
Jump to:  
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

© 2009 Zugg Software. Hosted by Wolfpaw.net