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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
Nayuko
Novice


Joined: 17 Jun 2008
Posts: 41

PostPosted: Wed Dec 17, 2008 12:54 am   

Sending commands/functions to other windows
 
I tried to solve that problem in my own, unfortunately i couldn't cope with it.

I would like to catch a pattern in one window, and based on this, make an alias sent to other window. If the alias is made in one window, i can't use it in others. #All and #EXECWINDOW aren't the best way, because they are sending commands to windows. I want to make for example aliases in other windows based on pattern in others :] I have no idea if I explained my problem in clear way :)
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Wed Dec 17, 2008 1:40 am   
 
You need to put the alias in a module so that both windows can see the alias - things inside windows aren't visible to things outside them. Hopefully that'll help you get whatever you want done - if it's not, be more specific. "I want to make aliases in other windows based on pattern in others" isn't really enough to understand what you're after.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
Zugg
MASTER


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

PostPosted: Wed Dec 17, 2008 5:37 pm   
 
If you want to make an alias in another window, the #EXECWINDOW is the correct way to go:
Code:
#EXECWINDOW WindowName {#ALIAS aliasname {whatever}}
Reply with quote
Nayuko
Novice


Joined: 17 Jun 2008
Posts: 41

PostPosted: Wed Dec 17, 2008 7:31 pm   
 
Hah, it really works. The problem was in '.' in name of the window. The name was created automaticly during converting zMud scipt to Cmud script. I mean, Cmud made the extension .MUD in name of main window.

Thanks!

N.
Reply with quote
Zugg
MASTER


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

PostPosted: Wed Dec 17, 2008 10:01 pm   
 
The way to handle that case is to put the full name of the window within quotes, like "whatever.mud"
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General Discussion 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