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


Joined: 08 May 2004
Posts: 1
Location: United Kingdom

PostPosted: Sat May 08, 2004 1:54 pm   

Sound on active windows?
 
Hi, wondering if anyone can help me. Does anyone know if it's possible to get a sound to trigger when a window goes 'green'/active? I've tried to look in the help files etc but haven't spotted anything yet to say whether this is possible. It would really be helpful for when I'm AFK and don't want to keep straining my eyes to see if the ZMud taskbar's gone green or not :) Thanks! Very Happy
Reply with quote
Rorso
Wizard


Joined: 14 Oct 2000
Posts: 1368

PostPosted: Thu May 13, 2004 8:10 pm   
 
quote:
Originally posted by Grayswandir

Hi, wondering if anyone can help me. Does anyone know if it's possible to get a sound to trigger when a window goes 'green'/active? I've tried to look in the help files etc but haven't spotted anything yet to say whether this is possible. It would really be helpful for when I'm AFK and don't want to keep straining my eyes to see if the ZMud taskbar's gone green or not :) Thanks! Very Happy


Usually you have some events you want to get notified of. Like if someone logs in or some chat message is sent to you. So you could do some triggers to trigger on those lines and then use the #play command to play the sound file.
Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: Mon Dec 05, 2005 6:39 pm   
 
http://forums.zuggsoft.com/phpbb/viewtopic.php?t=21423
[quote=Full Throttle]
#if (%mss(Zmud.zMUDIsActive) = 0) {#beep}}
[/quote]

http://forums.zuggsoft.com/phpbb/viewtopic.php?t=19637
[quote=Full Throttle]
#if (%mss(Zmud.zMUDIsActive) = -1) {#show {zMud is the active window.}}
#if (%mss(Zmud.zMUDIsActive) = 0) {#show {zMud is not the active window.}}
[/quote]

You can have an alarm trigger that checks the active flag result and notifies you when you it goes active.
Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: Mon Dec 05, 2005 6:42 pm   
 
Hrm what you are looking for really is if new mud input has arrived.

Maybe when you go afk you toggle a button/variable that enables something that will check

%line the last line received from the MUD
%line2 the line before the last line received
%line3 the line before the line before the last line received

If it is different or changed then #BEEP you.
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