Alert $Tip Message Balloon
Platform: mIRC
Published Jan 03, 2010
Updated Mar 14, 2012
This alert snippet for mIRC6.3+ will display a $tip message balloon near your clock when mIRC or the associated window is not active when one of the following conditions occurs:
- Someone uses your nick in a channel message, action, or notice.
- Someone private messages you.
- A nick you have selected speaks.
- Someone says the nick of a nick you have selected.
- A word or phrase you have set to alert on is spoken in a channel.
Note: Alerts for NickServ and ChanServ are Blocked.
To set an alert word or phrase use: /alert
Double clicking in the $Tip message ballon will focus the associated window.
Messages are trundicated to 330 characters, adjust manually in code if you wish.
; To set an alert word or phrase use: /alert
on *:OPEN:?:alert $1-
on *:TEXT:*:*:alert $1-
on *:ACTION:*:*:alert $1-
on *:NOTICE:*:*:alert $1-
alias alert {
var %msg $strip($1-)
if !$chan || $nick = $snick(#,1) || $count(%msg,$me,$snick(#,1),%alert) {
if !$tip($nick) && !$istok(NickServChanServ,$nick,7) && (!$appactive || $activewid != $window($iif(#,#,$iif($nick,$v1,$active))).wid) {
flash -b1r2
%msg = $iif($len(%msg) < 333,%msg,$left(%msg,330) $+ ...)
noop $tip($nick,$iif(#,#,Private Message), $nick %msg,17,,,window -ax # $iif($window($nick),$nick,$iif($comchan($nick,1),$v1,"status window")))
}
}
if (!$nick) $iif($input(Enter Alert Text,toe,Alert!,%alert),set %alert $!,unset %alert)
}