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
Lucavi
Newbie


Joined: 11 Dec 2007
Posts: 3

PostPosted: Sun Dec 30, 2007 5:18 pm   

status bar info from other windows
 
How would you go about getting a variable from another window to show up on your main window's status bar?
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Sun Dec 30, 2007 10:34 pm   
 
If it's a plain one-value or stringlist variable (ie, Var = "test" or Var = "test|test"), then you can use the @windowname.variablename syntax.
_________________
EDIT: I didn't like my old signature
Reply with quote
Lucavi
Newbie


Joined: 11 Dec 2007
Posts: 3

PostPosted: Mon Dec 31, 2007 6:20 pm   
 
the variable in my other window is and @rer im trying to figure out how to send it to my main so it can be used......im just barely learning this so please bear with me
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Mon Dec 31, 2007 8:19 pm   
 
You don't need to send it, the main window can access it directly using the syntax above.

Using the Settings Editor
1)with the main window selected, click the Settings button
2)in the Settings Editor, click the arrow next to the New button and select Status Bar or Status Line (whichever it is)
3)in the statusbar editor that appears, in the one-line textbox (I think the label says "Line:") type in @windowname.rer (windowname is the actual name of your other window)
4)close the Settings Editor, and click in the main window to refresh the window

Using the command-line
1)with the cursor in the main window's command-line, type the following:

#status {@windowname.rer}

2)change the windowname to the actual name of your other window
3)press enter (unlike with the settings editor, the results should appear immediately)
_________________
EDIT: I didn't like my old signature
Reply with quote
Lucavi
Newbie


Joined: 11 Dec 2007
Posts: 3

PostPosted: Thu Jan 03, 2008 1:08 am   
 
thanx that worked perfectly
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