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
darkspot
Apprentice


Joined: 29 Jul 2002
Posts: 105

PostPosted: Thu Feb 26, 2004 11:59 pm   

Focus checking
 
Is there a way to check if a specific session id is open at the moment as a window?
as in
#if (joe = connected or open) {:joe: do something} {:mike: do something}
any way to do this at all?
to check wether it's connected... or if the window is open at all either would serve my purpose (I close windows as they're not connected.)
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Fri Feb 27, 2004 2:39 am   
 
You can check for the window name in the %windows Predefined Variable. It is structured as a list. Also you could use the atconnect and atdisconnect special aliases to store the connected state of a window into a variable, and then access that windows variable from any other window with the dot notation @windowName.variableName
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