|
psyborg Beginner
Joined: 12 May 2003 Posts: 24
|
Posted: Tue Jun 10, 2003 11:02 pm
Buttons in other windows. |
I am trying to put all my buttons on a window I call "status" instead of on on the main window. I get a GSL trigger j, which updates the buttons on my main window using the following trigger:
#TRIGGER {j} {#NOOP %btnenable( btnn, %ismember( n, %gsl( j)))}
this works for the main window, but how would I have this trigger update the buttons on the other window. the only way I can think of is to set a variable @status.n to 0 or 1, and set a #trigger {@n} expression...but there HAS to be a better way. Can anyone point me to a better solution? or maybe to a section of the help files/tutorials that explain how to have windows "work" with each other? |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Tue Jun 10, 2003 11:11 pm |
prefix your regular command with the window name:
:status:#noop blah blah blah
Alternatively, you can ditch the first colon if you want the focus (where the cursor goes) on the buttons when this happens.
li'l shmoe of Dragon's Gate MUD |
|
|
|
psyborg Beginner
Joined: 12 May 2003 Posts: 24
|
Posted: Tue Jun 10, 2003 11:53 pm |
Tried that already. It doesn't update.
|
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: Wed Jun 11, 2003 11:02 am |
You probably need to use an #EXEC %expand combo. Look in the help under #EXEC, #ALARM, Special Characters, or Multiplaying. There is an example in one of them.
|
|
|
|
|
|