MSN Notify — File Browser
MSNNotifyv1.5 / MSNNotifyv1.5 / notify / notify.mrc
notify.mrc — 8.57 KB — Download this file
;Notify List v1.5 - by da^hype (da-hype@hirc.org)
;website: http://www.hirc.org
;Malaysian Made
alias -l aboutmsn.anim {
if ((!$dialog(aboutmsn)) || (%.anim._i > 150)) { .timer_anim off | unset %.anim.tmp* %.anim._i | return }
:1 | %.anim.tmpx = $calc(($window(-1).w / 2) - %.anim._i) | %.anim.tmpy = $calc(($window(-1).h / 2) - %.anim._i) | %.anim.tmpw = $calc(%.anim._i * 2) | %.anim.tmph = $calc(%.anim._i * 2)
dialog -s aboutmsn %.anim.tmpx %.anim.tmpy %.anim.tmpw %.anim.tmph | inc %.anim._i 5
}
alias -l dccnick {
if ($status) {
did -i notify 2 1 page event
tokenize 32 $did(notify,2,1,1)
if (!$5) halt
else .dcc chat $notify($calc($5 - 1))
}
}
alias -l n.whois {
if ($status) {
did -i notify 2 1 page event
tokenize 32 $did(notify,2,1,1)
if (!$5) halt
else .whois $notify($calc($5 - 1))
}
}
alias -l n.query {
if ($status) {
did -i notify 2 1 page event
tokenize 32 $did(notify,2,1,1)
if (!$5) halt
else msg $notify($calc($5 - 1)) $$?="Type message"
}
}
alias -l rem.contact2 { .notify -r $$?="Contact to Remove?" | did -r notify 2 | .timermsn.notify 1 1 msn.notify }
alias -l rem.contact {
did -i notify 2 1 page event
tokenize 32 $did(notify,2,1,1)
if (!$5) halt
else {
.notify -r $notify($calc($5 - 1))
did -r notify 2
.timermsn.notify 1 1 msn.notify
}
}
alias -l msn.notify {
did -r notify 2
did -i notify 2 1 iconsize normal small
did -i notify 2 1 seticon normal 0, $+ $scriptdiricons\Notify.ico
did -i notify 2 1 seticon normal 0, $+ $scriptdiricons\online.ico
did -i notify 2 1 seticon normal 0, $+ $scriptdiricons\offline.ico
var %y = 1
while (%y <= $scid(0)) {
scon %y
did -i notify 2 1 cb root
did -a notify 2 +eb 1 1 $iif($status,$me $chr(40) Online $chr(41),$me $chr(40) Offline $chr(41) )
did -i notify 2 1 cb last
did -a notify 2 +eb 2 2 Online
did -i notify 2 1 cb last
var %x = 1
while (%x <= $notify(0)) {
if ($notify(%x).ison) did -a notify 2 + 2 2 $notify(%x)
inc %x
}
did -i notify 2 1 cb up
did -a notify 2 +eb 3 3 Offline
did -i notify 2 1 cb last
var %x = 1
while (%x <= $notify(0)) {
if (!$notify(%x).ison) did -a notify 2 + 3 3 $notify(%x)
inc %x
}
inc %y
}
did -i notify 2 1 cb up
}
alias -l baca.file { if ($isfile($+(",$scriptdirsettings.ini,"))) return $readini $+(",$scriptdirsettings.ini,") $1 $2- }
alias -l tulis.file { writeini $+(",$scriptdirsettings.ini,") $$1- }
alias pop tokenize 32 $dll($pdll.notify,Popup,$1-) | if ($isid) return $1- | $iif($4- != did not select a menu item,$4-)
alias popup return $shortfn($scriptdirdll\popups.dll)
alias -l aboutmsn if (!$dialog(aboutmsn)) dialog -m aboutmsn aboutmsn
alias -l add.contact { .notify $$?="Contact to Add?" | did -r notify 2 | .timermsn.notify 1 1 msn.notify }
alias -l pdll.notify { return $+(",$scriptdirdll\popups.dll,") }
alias -l mdx.notify { return $+(",$scriptdirdll\mdx.dll,") }
alias -l views.notify { return Notify\dll\views.mdx }
alias -l ddll.notify { return Notify\dll\dialog.mdx }
alias nlist { if (!$dialog(notify)) dialog -m notify notify }
menu channel,menubar {
-
&Notify List:nlist
-
}
menu nicklist,query {
-
&Notify
.&Config:nlist
.-
.&Add:.notify $$1 $$?="Add Note or Info (Press cancel for none)"
.&Rem:.notify -r $$1
-
}
on *:LOAD: {
if ($version >= 6.0) { echo -s Welcome to 4Notify List v1.5 by da^hype | echo -s contact: da-hype@hirc.org | echo -s website: http://www.hirc.org | nlist }
else { echo -a Sorry, you can't use This Script with version $version of mIRC, get the latest version at http://www.mirc.com/ | .unload -rs Notify\notify.mrc }
}
dialog aboutmsn {
title "Notify List v1.5"
size -1 -1 1 1
icon $scriptdiricons\about.ico
text "", 1, 50 20 150 15
icon 71, 10 8 32 32, " $+ $scriptdiricons\msn.ico $+ "
button "Copyright© 2002 da^hype All rights reserved", 2, 10 60 280 50, center
text "Website:", 3, 10 134 50 15
edit "http://www.hirc.org", 4, 60 130 150 22, autohs read
button "Visit!", 5, 220 130 50 22, center
edit "", 6, 10 160 280 80, read multi return autohs autovs
box "", 7, -10 40 320 210
button "Close", 200, 120 260 60 30, ok
}
dialog notify {
title "v1.5 [ /nlist ]"
option dbu
size -1 -1 120 160
icon $scriptdiricons\msn.ico
list 2, 1 2 119 158
menu "&File", 20
item "&Refresh", 12, 20
item "&Notify Sounds",14,20
item "break", 13, 20
item "&Close", 11, 20
menu "&Actions", 30
item "&Send a File or Photo...", 21, 30
item "break", 22, 30
item "Send &E-mail...", 23, 30
menu "&Tools", 40
item "&Add a Contact...", 31, 40
item "&Remove a Contact...", 32, 40
menu "&Help", 50
item "&ReadMe", 41, 50
item "&HomePage", 42, 50
item "Break", 43, 50
item "&Email", 44, 50
item "&About", 45, 50
button ok,1, 0 0 0 0,cancel
button positioner,10, 0 0 0 0
}
on *:dialog:aboutmsn:init:*: {
did -o aboutmsn 6 1 Credits: | did -o aboutmsn 6 2 Thanks to #hirc.help idealers on WebChat
did -o aboutmsn 6 3 Beta testers were Fury_G3, | did -o aboutmsn 6 4 Double[0]seveN and tyso
did -a aboutmsn 1 Script By da^hype
%.anim._i = 0 | .timer_anim -m 0 1 aboutmsn.anim
}
on *:dialog:aboutmsn:sclick:2:.timerabout 1 0 echo -a 8,1 Using more than 100 lines from this script is considered stealing script whether modified or not. You can use any less than 100 lines of this script, but must give us credit. We do not allow anyone to translate this script to any language!
on *:dialog:aboutmsn:sclick:5:.url -n http://www.hirc.org
on *:dialog:notify:menu:*:{
if ($did == 11) dialog -x notify
if ($did == 12) msn.notify
if ($did == 14) {
$iif($baca.file(sound,on),tulis.file sound on 0,tulis.file sound on 1)
if ($baca.file(sound,on)) did -c notify 14
if (!$baca.file(sound,on)) did -u notify 14
}
if ($did == 21) { dccnick | dcc send %dccnick $sfile($mircdir) | unset %dccnick }
; if ($did == 22) list $$?="Chat Rooms to Search?"
if ($did == 23) run mailto:
if ($did == 31) add.contact
if ($did == 32) rem.contact2
if ($did == 41) run $+(",$scriptdirreadme.txt,")
if ($did == 42) url -n http://www.hirc.org
if ($did == 44) run mailto:da-hype@hirc.org?subject=Notify List v1.5.
if ($did == 45) aboutmsn
}
on *:dialog:notify:sclick:*:{
if ($did == 10) {
var %action = $gettok($did($dname,10),1,32)
if (%action == size) {
var %w = $dialog($dname).cw,%h = $dialog($dname).ch
dll $mdx.notify MoveControl $dname 2 * * $calc(%w -6) $calc(%h -2)
}
}
if ($did == 2) {
if ($gettok($did($dname,2,1),1,32) != rclick) halt
dll $popup New MSNnotify 16 16
dll $popup LoadImg MSNnotify icon small $scriptdir/icons/add.ico
dll $popup LoadImg MSNnotify icon small $scriptdir/icons/del.ico
dll $popup LoadImg MSNnotify icon small $scriptdir/icons/whois.ico
dll $popup LoadImg MSNnotify icon small $scriptdir/icons/query.ico
dll $popup LoadImg MSNnotify icon small $scriptdir/icons/chat.ico
dll $popup LoadImg MSNnotify icon small $scriptdir/icons/refresh.ico
dll $popup LoadImg MSNnotify icon small $scriptdir/icons/about.ico
dll $popup AddItem MSNnotify end 1 1 &Add $cr add.contact
dll $popup AddItem MSNnotify end $iif($status,+,+d) 2 2 &Remove $cr rem.contact
dll $popup AddItem MSNnotify end
dll $popup AddItem MSNnotify end $iif($status,+,+d) 3 3 &Whois $cr n.whois
dll $popup AddItem MSNnotify end $iif($status,+,+d) 4 4 &Query $cr n.query
dll $popup AddItem MSNnotify end $iif($status,+,+d) 5 5 &Chat $cr dccnick
dll $popup AddItem MSNnotify end
dll $popup AddItem MSNnotify end 6 6 R&efresh $cr msn.notify
dll $popup AddItem MSNnotify end 7 7 A&bout $cr aboutmsn
pop MSNnotify $mouse.dx $mouse.dy
}
}
on *:dialog:notify:init:*:{
dll $mdx.notify SetMircVersion $version
dll $mdx.notify MarkDialog $dname
dll $mdx.notify SetDialog $dname style border title sysmenu minbox
dll $mdx.notify SetControlMDX $dname 10 positioner size minbox maxbox > $ddll.notify
dll $mdx.notify SetControlMDX $dname 2 treeview hasbuttons showsel rowselect insertdroptarget > $views.notify
if ($baca.file(sound,on)) did -c notify 14
msn.notify
}
on *:NOTIFY:{
if ($dialog(notify)) msn.notify
echo -a %sign 13*** ( $+ $nick $+ ) is on IRC
if ($baca.file(sound,on)) splay -w $scriptdirsounds\online.wav
halt
}
on *:CONNECT:{ if ($dialog(notify)) msn.notify }
on *:DISCONNECT:{ if ($dialog(notify)) msn.notify }
on *:UNOTIFY:{ if ($dialog(notify)) msn.notify }