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


Joined: 28 Nov 2003
Posts: 1

PostPosted: Tue Jan 11, 2005 9:43 am   

Window Focus
 
I am looking for a COM call or function that can determine if ZMud is the active window.

I am trying to create an Alarm that disables itself if the window loses focus. Prevent myself from accidentally going AFK skripting when surfing a page and not paying attention.

#say %Zmud.ZmudIsActive
Yields result -1

Thank you,
D
_________________
Reply with quote
Full Throttle
Wanderer


Joined: 07 Dec 2004
Posts: 65

PostPosted: Mon Jan 31, 2005 9:33 am   
 
#alias {checkwindow} {
#if (%mss(Zmud.zMUDIsActive) = -1) {#show {zMud is the active window.}}
#if (%mss(Zmud.zMUDIsActive) = 0) {#show {zMud is not the active window.}}}

To test if zMud is not the active window, enter the following alarm and open another window.

#alarm {+3} {checkwindow}
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