active world/mushclient window

Posted by Irkhimn on Sat 11 Dec 2004 05:19 PM — 4 posts, 15,305 views.

#0
One thing I'm still missing .. or just haven't noticed yet.

I use to have several worlds opened at a time, therefore I don't always notice it when someone does a tell to me. I've made a soundtrigger on this event, but sometimes I just miss it.
I'd like to build a script function, which checks, wether the world is 'active'. If not, search the active world window and do a Note() there. Well, and if the Mushclient window isn't activated, is it possible to flash it in the taskbar?

My idea for the script would be (in Lua)


--
function tell_received()
   if not world.isActivated then
      if not world.isClientActivated then
         FlashClient()
      else
         for k,v in pairs(GetWorldIdList()) do
            if GetWorldById(v).isActivated then
               GetWorldById(v).Note("Tell in World "..GetInfo(2))
               break
            end
         end
      end
   end
end
--


Assuming, that world.isActivated and world.isClientActivated are boolean values and there's a function called FlashClient - but those I miss.
Any suggestions?
Amended on Sat 11 Dec 2004 05:21 PM by Irkhimn
Australia Forum Administrator #1
I think you can get the taskbar to flash on new activity anyway.

I have added a new selector to GetInfo (113) which returns true if the current world is the active world.
Australia Forum Administrator #2
Quote:

I've made a soundtrigger on this event, but sometimes I just miss it.


What you could do is make a timer that fires (say) every 10 seconds. In that timer you check GetInfo (202) which is the number of lines received but not yet seen. This becomes zero as soon as the world is active.

In that timer play a sound (if the number is not zero), so every 10 seconds or so you get a chime or something to warn you that you have text you haven't seen.
#3
GetInfo(113) helps.. thanks for that :)