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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
psyborg
Beginner


Joined: 12 May 2003
Posts: 24

PostPosted: 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?
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: 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
Reply with quote
psyborg
Beginner


Joined: 12 May 2003
Posts: 24

PostPosted: Tue Jun 10, 2003 11:53 pm   
 
Tried that already. It doesn't update.
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: 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.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD 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