 |
Nayuko Novice
Joined: 17 Jun 2008 Posts: 41
|
Posted: 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 :) |
|
|
 |
Fang Xianfu GURU

Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: 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.
|
|
|
 |
Zugg MASTER

Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: 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}} |
|
|
|
 |
Nayuko Novice
Joined: 17 Jun 2008 Posts: 41
|
Posted: 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. |
|
|
 |
Zugg MASTER

Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: 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"
|
|
|
 |
|
|