mIRC Homepage
Posted By: Sek Help with Flashing Icon and ...... - 28/01/18 08:49 PM
Hi I need help with making the mIRC icon in the bottom flash when my nick is said and also can I have small messages of what is being said in the room pop up even when I am on other websites ? thanks so much
Posted By: maroon Re: Help with Flashing Icon and ...... - 29/01/18 07:11 AM
In address book you can set a highlights rule for $me and it can do anything except the part about showing the message containing your nick.

The highlight message seems to recognize $chan and $me and other global identifiers, but it doesn't recognize identifiers you create in aliases tab nor does it recognize $1- or $nick.

See if putting this in a remote script works. If you don't want to create a new remote script, you can place it in another script as long as it doesn't already have the ON :TEXT: event, because one of them would prevent the other from seeing the event.

The 15 can change, it's the number of seconds for the tip window to stay up. You can check /help /flash to change the -r1 parameter for the /flash command. Right now it just flashes 1 time without beeping. To test the flash command, you would need to use a timer that gives you time to jump to a different application, since it doesn't do anything while mIRC is active. Something like /timer 1 5 /flash -b2

Code:
ON *:TEXT:*:#:{
  if ($me isin $1-) { var %pattern /\Q $+ $replacexcs($me, \E, \E\\E\Q) $+ \E/i
  if ($regex($strip($1-),%pattern)) { flash -r1 | noop $tip(name,self,$network $chan $nick $+ : $1-,15) } }
}
Posted By: maroon Re: Help with Flashing Icon and ...... - 30/01/18 05:38 AM
Update, this should keep it from matching your nick if it's touched by a number or a-z.

Code:
ON *:TEXT:*:#:{
  if ($me isin $1-) { var %pattern /(?<![a-z\d])(\Q $+ $replacexcs($me,\E,\E\\E\Q) $+ \E)(?![a-z\d])/i)
  if ($regex($strip($1-),%pattern)) { flash -r1 | noop $tip(name,self,$network $chan $nick $+ : $1-,15) } }
}
© mIRC Discussion Forums