AudibleNickHighlighter

By Spoof on Apr 16, 2011

Audible nick highlighter Dialog script.
Features: Script On/Off , enable capability of selected sound (check box - turns sound on/off)
displays time, nick, and text of person that highlighted you in a separate window so that it doesn't block your
your current chat room.

This script was tested on mIRC v6.35 by me and tested on mIRC v7.22 by my friend Lewy.

on *:text:*:*: {
  if ($me isin $1-) && ($chan == $active) { halt }
  if ($me isin $1-) { 
    if ($_ar(audiblealerter,soundswitch) == on) { if ($_ar(audiblealerter,sound) != $null) { splay $_ar(audiblealerter,sound) }
      window @highlights 
      echo -t @highlights 8 $chan  11 $nick :9 $1- 
    }
  }
}
;[read write Audibledata/setting.ini]
alias _ar {
  if ($exists(Audibledata\setting.ini) == $false) { mkdir Audibledata | write -c Audibledata\setting.ini }
  return $readini Audibledata\setting.ini $$1 $$2 
}
alias _aw {
  if ($exists(Audibledata\setting.ini) == $false) { mkdir Audibledata | write -c Audibledata\setting.ini }
  writeini Audibledata\setting.ini $$1 $$2 $$3-
}
alias _arem {
  if ($exists(Audibledata\setting.ini) == $false) { mkdir Audibledata | write -c Audibledata\setting.ini }
  remini Audibledata\setting.ini $$1 $$2 
}

dialog audiblealerter {
  title "Audible Alerter v1.0"
  size -1 -1 96 40 
  option dbu
  check "enable", 1, 11 12 32 10, tab 1
  button "select sound", 2, 45 12 37 10, tab 1
  box "audible alert on highlight", 3, 8 2 80 26, tab 1
  button "ok", 4, 36 29 25 10, default ok
}
on *:dialog:*:init:*:{ 
  if ($dialog(audiblealerter) == $dname) {
    if ($_ar(audiblealerter,soundswitch) == on) { did -c audiblealerter 1 }
  }
}
on *:dialog:*:sclick:*:{ 
  if ($did == 1) { 
    if ($_ar(audiblealerter,soundswitch) != on) {  _aw audiblealerter soundswitch on | did -c audiblealerter 1 }
    else { _aw audiblealerter soundswitch off | did -u audiblealerter 1 }
  }
  if ($did == 2) { setaudiblealertersound }
}
alias -l setaudiblealertersound {
  _aw audiblealerter sound $$dir="Choose a wav:" $mircdir*.wav;*mp3;*.mid 
}
menu * {
  [Audible Alert]
  .setup:{ /dialog -m audiblealerter audiblealerter }
  .on $aao:_aw audiblealerter switch on 
  .off $aaf:_aw audiblealerter switch off
}

alias -l aao { 
  if ($_ar(audiblealerter,switch) == on) { return [x] }
}
alias -l aaf { 
  if ($_ar(audiblealerter,switch) == off) { return [x] }
}

Comments

Sign in to comment.
Spoof   -  Apr 17, 2011

Added -n to @highlights window so that it will auto minimize to the side bar on activation.
Thanks and enjoy your mIRC.

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.