; http://hawkee.com/snippet/7101
; $tip command only allows to create a popup that lasts from 3 to 60 seconds. I'd like a popup to stay permanently until I click on it.
; The same functionality can be achieved withing mIRC tools > options > display > options > tips
; 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,60,,,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)
}