home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
napalm.napnet.hu
/
2015-02-12.napalm.napnet.hu.tar
/
napalm.napnet.hu
/
programok
/
kommunikacio
/
mpp700.exe
/
WinAmp2mIRC.mrc
< prev
next >
Wrap
Text File
|
2003-05-23
|
27KB
|
805 lines
dialog wa2mIRCSetup {
title "Winamp2mIRC addon for SystemInfo by C}{$, modified by Task"
size -1 -1 250 157
option dbu
tab "Options", 21, 2 2 245 132
text "Just type /song when a file is playing in winamp and your sorted.", 3, 47 19 156 8, tab 21
edit "", 4, 48 29 155 10, tab 21 autohs
text "Change the prefix of the information in the above box.", 5, 50 41 152 8, tab 21 center
check "Display Length", 12, 47 51 48 10, tab 21
check "Display BitRate", 7, 95 51 48 10, tab 21
check "Display Sample Rate", 13, 143 51 61 10, tab 21
radio "Use /me", 20, 47 61 33 10, tab 21
radio "Use /ame", 23, 83 61 35 10, tab 21
radio "Use /say", 29, 125 61 34 10, tab 21
radio "Use /amsg", 34, 166 61 38 10, tab 21
box "Auto Song", 36, 10 71 231 22, tab 21
check "Enable Auto-song", 24, 42 79 54 10, tab 21
button "Channels", 33, 98 77 37 13, tab 21
check "Active channel Auto-song", 35, 139 79 77 10, tab 21
box "Remote Song", 17, 5 93 240 31, tab 21
check "Enable Remote Song via /ctcp NICKNAME WinAmp2mIRC", 16, 8 101 148 10, tab 21
text "Remote Song prefix:", 14, 8 113 51 8, tab 21
edit "", 15, 60 111 182 10, tab 21 autohs
tab "About", 22
text "Links:", 25, 49 16 16 8, tab 22
link "http://www.phucknut.net/scripts", 26, 49 25 81 8, tab 22
text "- Website for other scripts", 30, 130 25 67 8, tab 22
link "irchs@btinternet.com", 28, 49 33 53 8, tab 22
text "- CHS' e-mail address", 31, 102 33 55 8, tab 22
link "AdamTasker@gubm.com", 27, 49 41 60 8, tab 22
text "- Task's e-mail address", 32, 110 41 57 8, tab 22
text "All of this is done using the WinampToMirc.dll. This addon was created by C}{$", 8, 29 72 191 8, tab 22
link "(irchs@btinternet.com)", 10, 16 82 56 8, tab 22
text "modified by Task", 9, 73 82 40 8, tab 22
link "(AdamTasker@gubm.com)", 18, 114 82 64 8, tab 22
text "and dll by Scott Rennie", 6, 178 82 56 8, tab 22
text "Please report bugs to the e-mail address provided.", 11, 63 92 126 8, tab 22
button "E&xit and Save", 2, 65 138 39 16, ok
button "&Cancel", 19, 106 138 39 16, cancel
button "&Unload Addon", 1, 147 138 39 16
}
dialog wa2mIRCChannels {
title "Channels"
size -1 -1 96 93
option dbu
check "Enabled channel exclusion/inclusion", 1, 1 2 95 10
radio "Exclude these channels", 2, 1 11 70 10
radio "Include these channels", 3, 1 20 90 10
edit "", 4, 0 32 72 10, autohs
button "&Add", 5, 73 31 22 12
list 6, 0 42 72 50, size
button "&Del", 7, 73 45 22 12
button "&Save", 9, 73 59 22 12
button "E&xit", 8, 73 80 22 12, ok cancel
}
dialog wa2mircunload {
title "Alert!"
size -1 -1 142 41
option dbu
text "Are you sure you want unload WinAmp2mIRC", 1, 15 1 113 8
text "Version 1.1b?! Doing this will lose all your", 2, 23 9 98 8
text "settings for the addon. Do you wish to continue?!", 3, 11 17 120 8
button "Yes!", 4, 34 27 37 12, ok
button "No!", 5, 74 27 37 12, cancel
}
on 1:dialog:wa2mIRCSetup:init:*:{
if (%wa2mIRC.messagetype == $null) {
set %wa2mIRC.messagetype /me
}
did -a wa2mIRCSetup 4 %wa2mIRC.prefix
did -a wa2mIRCSetup 15 %wa2mIRC.RSprefix
if ( %wa2mIRC.length == on ) {
did -c wa2mIRCSetup 12
}
if ( %wa2mIRC.bitrate == on ) {
did -c wa2mIRCSetup 7
}
if ( %wa2mIRC.samplerate == on ) {
did -c wa2mIRCSetup 13
}
if ( %wa2mIRC.RemoteSong == on ) {
did -c wa2mIRCSetup 16
}
if ( %wa2mIRC.RemoteSong == off ) {
did -b wa2mIRCSetup 15
}
if (%wa2mIRC.Autosong == on) {
did -c wa2mIRCSetup 24
}
if (%WA2mIRC.ActiveAutosong == on) {
did -c WA2mIRCSetup 35
}
if (%WA2mIRC.AutoSong == off) {
did -b WA2mIRCSetup 33
did -b WA2mIRCSetup 35
}
if ((%WA2mIRC.AutoSong == on) && (%WA2mIRC.ActiveAutosong == on)) {
did -b WA2mIRCSetup 33
}
if ( %wa2mIRC.messagetype == /me ) {
did -c wa2mIRCSetup 20
}
if ( %wa2mIRC.messagetype == /ame ) {
did -c wa2mIRCSetup 23
}
if ( %wa2mIRC.messagetype == /say ) {
did -c wa2mIRCSetup 29
}
if ( %wa2mIRC.messagetype == /amsg ) {
did -c wa2mIRCSetup 34
}
.set %wa2mIRC.version Version 1.1b
writeini " $+ $scriptdirSystemInfo.ini $+ " wa2mIRC name WinAmp2mIRC by C}{$/Task/Deadpool
writeini " $+ $scriptdirSystemInfo.ini $+ " wa2mIRC command /wa2mircsetup
writeini " $+ $scriptdirSystemInfo.ini $+ " wa2mIRC version Version 1.1b
}
on 1:dialog:wa2mIRCSetup:sclick:2:{
set %wa2mIRC.buffer $did(4).text
set %wa2mIRC.Prefix $strip(%wa2mIRC.buffer,burc)
set %wa2mIRC.buffer $did(15).text
set %wa2mIRC.RSprefix $strip(%wa2mIRC.buffer,burc)
if ( $did(12).state >= 1 ) {
set %wa2mIRC.length on
}
else {
set %wa2mIRC.length off
}
if ( $did(7).state >= 1 ) {
set %wa2mIRC.bitrate on
}
else {
set %wa2mIRC.bitrate off
}
if ( $did(13).state >= 1 ) {
set %wa2mIRC.samplerate on
}
else {
set %wa2mIRC.samplerate off
}
if ( $did(16).state >= 1 ) {
set %wa2mIRC.RemoteSong on
}
else {
set %wa2mIRC.RemoteSong off
}
if ( $did(35).state >= 1 ) {
set %WA2mIRC.ActiveAutosong on
}
else {
set %WA2mIRC.ActiveAutosong off
}
if ( $did(20).state >= 1 ) {
set %wa2mIRC.messagetype /me
}
if ( $did(23).state >= 1 ) {
set %wa2mIRC.messagetype /ame
}
if ( $did(29).state >= 1 ) {
set %wa2mIRC.messagetype /say
}
if ( $did(34).state >= 1 ) {
set %wa2mIRC.messagetype /amsg
}
if ( $did(24).state >= 1 ) {
set %wa2mIRC.Autosong on
scid 1 .timerCheckWinamp -io 0 1 /checkwinamp
}
else {
set %wa2mIRC.Autosong off
scid 1 .timerCheckWinamp off
}
if ((%Wa2mIRC.ActiveAutosong == on) || (%wa2mirc.enablechannelfilter == $null)) {
set %wa2mirc.enablechannelfilter 0
}
}
on 1:dialog:wa2mIRCSetup:sclick:1:{
/dialog -x wa2mIRCSetup wa2mIRCSetup
/dialog -m wa2mircunload wa2mircunload
}
on 1:dialog:wa2mIRCSetup:sclick:16:{
if ( $did(wa2mIRCSetup,16).state == 0 ) {
did -b wa2mIRCSetup 15
}
else {
did -e wa2mIRCSetup 15
}
}
on 1:dialog:WA2mIRCSetup:sclick:24:{
if ( $did(WA2mIRCSetup,24).state == 0 ) {
did -b WA2mIRCSetup 33
did -b WA2mIRCSetup 35
}
else {
if ($did(WA2mIRCSetup,35).state == 1) {
did -b WA2mIRCSetup 33
}
else {
did -e WA2mIRCSetup 33
}
did -e WA2mIRCSetup 35
}
}
on 1:dialog:WA2mIRCSetup:sclick:35:{
if ( $did(WA2mIRCSetup,35).state == 1 ) {
did -b WA2mIRCSetup 33
}
else {
did -e WA2mIRCSetup 33
}
}
on 1:dialog:wa2mIRCSetup:sclick:10,28:{
/run mailto://irchs@btinternet.com
}
on 1:dialog:wa2mIRCSetup:sclick:18,27:{
/run mailto://AdamTasker@gubm.com
}
on 1:dialog:wa2mIRCSetup:sclick:26:{
/run http://www.phucknut.net/scripts
}
on 1:dialog:wa2mIRCSetup:sclick:33:{
dialog -m wa2mIRCChannels wa2mIRCChannels
}
on 1:dialog:wa2mircunload:sclick:4:{
unset %wa2mIRC.*
/echo -a 2*** WinAmp2mIRC Addon unloaded.
remini " $+ $scriptdirSystemInfo.ini $+ " wa2mIRC
unload -rs " $+ $script $+ "
}
on *:DIALOG:wa2mIRCChannels:INIT:*:{
tokenize 44 %wa2mIRC.Channels
set %wa2mIRC.Count 1
while ( $eval($ $+ %wa2mIRC.Count,2) != $null ) {
did -a wa2mIRCChannels 6 $eval($ $+ %wa2mIRC.Count,2)
inc %wa2mIRC.Count
}
if ( %wa2mIRC.EnableChannelFilter == 1 ) {
did -c wa2mIRCChannels 1
}
if ( %wa2mIRC.ChannelFilterMode == exclude ) {
did -c wa2mIRCChannels 2
}
else {
did -c wa2mIRCChannels 3
}
}
on *:DIALOG:wa2mIRCChannels:sclick:5:{
if (($left($did(4).text,1) == $eval(#,0)) && ($findtok($didtok(wa2mIRCChannels,6),$did(4).text,44) == $null)) {
did -a wa2mIRCChannels 6 $did(4).text
}
}
on *:DIALOG:wa2mIRCChannels:sclick:7:{
if ( $did(wa2mIRCChannels,6).sel != $null ) {
did -d wa2mIRCChannels 6 $did(wa2mIRCChannels,6).sel
}
}
on *:DIALOG:wa2mIRCChannels:sclick:9:{
if ( $did(wa2mIRCChannels,1).state >= 1 ) {
set %wa2mIRC.EnableChannelFilter 1
}
else {
set %wa2mIRC.EnableChannelFilter 0
}
if ( $did(wa2mIRCChannels,2).state >= 1 ) {
set %wa2mIRC.ChannelFilterMode exclude
}
if ( $did(wa2mIRCChannels,3).state >= 1 ) {
set %wa2mIRC.ChannelFilterMode include
}
set %wa2mIRC.count 1
unset %wa2mIRC.buffer2
while ( $did(6,%wa2mIRC.count).text != $null ) {
if ( %wa2mIRC.buffer2 == $null ) {
set %wa2mIRC.buffer2 $did(6,%wa2mIRC.count).text
}
else {
set %wa2mIRC.buffer2 %wa2mIRC.buffer2 $+ , $+ $did(6,%wa2mIRC.count).text
}
inc %wa2mIRC.count
}
if ( %wa2mIRC.buffer2 != $null ) {
set %wa2mIRC.Channels %wa2mIRC.buffer2
}
}
on *:LOAD:{
if ( $isalias(syssetup) != $true ) {
/echo -ae 2*** There has been an error loading WinAmp2mIRC. Please check that SystemInfo by C}{$ has been loaded.
/unload -rs " $+ $script $+ "
}
if (%wa2mIRC.prefix == $null) /set %wa2mIRC.prefix is currently listening to
if (%wa2mIRC.RSPrefix == $null) /set %wa2mIRC.RSprefix I'm currently listening to
if (%wa2mIRC.length == $null) /set %wa2mIRC.length on
if (%wa2mIRC.bitrate == $null) /set %wa2mIRC.bitrate on
if (%wa2mIRC.samplerate == $null) /set %wa2mIRC.samplerate on
if (%wa2mIRC.RemoteSong == $null) /set %wa2mIRC.RemoteSong on
if (%wa2mIRC.Autosong == $null) /set %wa2mIRC.Autosong off
if (%wa2mIRC.messagetype == $null) /set %wa2mIRC.messagetype /me
if ( %sys.simpleversion < 0.5 ) {
/echo -ae 2*** There has been an error loading WinAmp2mIRC. Please grab the latest version of SystemInfo by C}{$ from http://www.phucknut.net/scripts/
/unload -rs " $+ $script $+ "
}
.set %wa2mIRC.version Version 1.1b
writeini " $+ $scriptdirSystemInfo.ini $+ " wa2mIRC name Winamp2mIRC By C}{$/Task
writeini " $+ $scriptdirSystemInfo.ini $+ " wa2mIRC command /wa2mIRCSetup
writeini " $+ $scriptdirSystemInfo.ini $+ " wa2mIRC version Version 1.1b
/echo -ae 2*** WinAmp2mIRC by C}{$/Task was loaded sucessfully.
/wa2mIRCSetup
:veryend
}
on *:CONNECT:{
if (%wa2mIRC.Autosong == on) {
scid 1 .timerCheckWinamp -io 0 1 /checkwinamp
}
}
ctcp *:WINAMP2MIRC:*:{
if (%wa2mIRC.RemoteSong == off) {
goto veryend
}
if (%wa2mIRC.RemoteSong == on) {
setupcolours
wa2mircoutputstuff
if ( %sys.removeALLformatting == 1 ) {
ctcpreply $nick WINAMP2MIRC $strip(%wa2mIRC.output,burc)
}
else {
ctcpreply $nick WINAMP2MIRC %wa2mIRC.output
}
}
:veryend
}
alias -l WA2MFilterMessage {
if ( $1 == -d ) {
if ( $2 == exclude ) {
if ( $scid(0) != $null ) {
set %wa2mIRC.servercount 0
while ( %wa2mIRC.servercount < $scid(0) ) {
inc %wa2mIRC.servercount
.scid -s $scon(%wa2mIRC.servercount)
unset %wa2mIRC.channelbuffer
set %wa2mIRC.count 0
while ( %wa2mIRC.count < $chan(0) ) {
inc %wa2mIRC.count
if ( $findtok($3,$chan(%wa2mIRC.count),1,44) == $null ) {
if ( %wa2mIRC.channelbuffer == $null ) {
set %wa2mIRC.channelbuffer $chan(%wa2mIRC.count)
}
else {
set %wa2mIRC.temp %wa2mIRC.channelbuffer $+ , $+ $chan(%wa2mIRC.count)
if ( $len(%wa2mIRC.temp) > 60 ) {
describe %wa2mIRC.channelbuffer $4-
unset %wa2mIRC.channelbuffer
set %wa2mIRC.channelbuffer $chan(%wa2mIRC.count)
}
else {
set %wa2mIRC.channelbuffer %wa2mIRC.channelbuffer $+ , $+ $chan(%wa2mIRC.count)
}
}
}
}
if ( %wa2mIRC.channelbuffer != $null ) {
describe %wa2mIRC.channelbuffer $4-
}
}
;END FIRST WHILE
}
;ELSE FOR NO MULTISERVER
else {
unset %wa2mIRC.channelbuffer
set %wa2mIRC.count 0
while ( %wa2mIRC.count < $chan(0) ) {
inc %wa2mIRC.count
if ( $findtok($3,$chan(%wa2mIRC.count),1,44) == $null ) {
if ( %wa2mIRC.channelbuffer == $null ) {
set %wa2mIRC.channelbuffer $chan(%wa2mIRC.count)
}
else {
set %wa2mIRC.temp %wa2mIRC.channelbuffer $+ , $+ $chan(%wa2mIRC.count)
if ( $len(%wa2mIRC.temp) > 60 ) {
describe %wa2mIRC.channelbuffer $4-
unset %wa2mIRC.channelbuffer
set %wa2mIRC.channelbuffer $chan(%wa2mIRC.count)
}
else {
set %wa2mIRC.channelbuffer %wa2mIRC.channelbuffer $+ , $+ $chan(%wa2mIRC.count)
}
}
}
}
if ( %wa2mIRC.channelbuffer != $null ) {
describe %wa2mIRC.channelbuffer $4-
}
}
}
;ELSE FOR INCLUDE CODE
else {
if ( $scid(0) != $null ) {
set %wa2mIRC.servercount 0
while ( %wa2mIRC.servercount < $scid(0) ) {
inc %wa2mIRC.servercount
.scid -s $scon(%wa2mIRC.servercount)
unset %wa2mIRC.channelbuffer
set %wa2mIRC.count 0
while ( %wa2mIRC.count < $chan(0) ) {
inc %wa2mIRC.count
if ( $findtok($3,$chan(%wa2mIRC.count),1,44) != $null ) {
if ( %wa2mIRC.channelbuffer == $null ) {
set %wa2mIRC.channelbuffer $chan(%wa2mIRC.count)
}
else {
set %wa2mIRC.temp %wa2mIRC.channelbuffer $+ , $+ $chan(%wa2mIRC.count)
if ( $len(%wa2mIRC.temp) > 60 ) {
describe %wa2mIRC.channelbuffer $4-
unset %wa2mIRC.channelbuffer
set %wa2mIRC.channelbuffer $chan(%wa2mIRC.count)
}
else {
set %wa2mIRC.channelbuffer %wa2mIRC.channelbuffer $+ , $+ $chan(%wa2mIRC.count)
}
}
}
}
if ( %wa2mIRC.channelbuffer != $null ) {
describe %wa2mIRC.channelbuffer $4-
}
}
;END FIRST WHILE
}
;ELSE FOR NO MULTISERVER
else {
unset %wa2mIRC.channelbuffer
set %wa2mIRC.count 0
while ( %wa2mIRC.count < $chan(0) ) {
inc %wa2mIRC.count
if ( $findtok($3,$chan(%wa2mIRC.count),1,44) != $null ) {
if ( %wa2mIRC.channelbuffer == $null ) {
set %wa2mIRC.channelbuffer $chan(%wa2mIRC.count)
}
else {
set %wa2mIRC.temp %wa2mIRC.channelbuffer $+ , $+ $chan(%wa2mIRC.count)
if ( $len(%wa2mIRC.temp) > 60 ) {
describe %wa2mIRC.channelbuffer $4-
unset %wa2mIRC.channelbuffer
set %wa2mIRC.channelbuffer $chan(%wa2mIRC.count)
}
else {
set %wa2mIRC.channelbuffer %wa2mIRC.channelbuffer $+ , $+ $chan(%wa2mIRC.count)
}
}
}
}
if ( %wa2mIRC.channelbuffer != $null ) {
describe %wa2mIRC.channelbuffer $4-
}
}
;END INCLUDE SHITE
}
;END DESCRIBE STUFF
elseif ( $1 == -m ) {
if ( $2 == exclude ) {
if ( $scid(0) != $null ) {
set %wa2mIRC.servercount 0
while ( %wa2mIRC.servercount < $scid(0) ) {
inc %wa2mIRC.servercount
.scid -s $scon(%wa2mIRC.servercount)
unset %wa2mIRC.channelbuffer
set %wa2mIRC.count 0
while ( %wa2mIRC.count < $chan(0) ) {
inc %wa2mIRC.count
if ( $findtok($3,$chan(%wa2mIRC.count),1,44) == $null ) {
if ( %wa2mIRC.channelbuffer == $null ) {
set %wa2mIRC.channelbuffer $chan(%wa2mIRC.count)
}
else {
set %wa2mIRC.temp %wa2mIRC.channelbuffer $+ , $+ $chan(%wa2mIRC.count)
if ( $len(%wa2mIRC.temp) > 60 ) {
msg %wa2mIRC.channelbuffer $4-
unset %wa2mIRC.channelbuffer
set %wa2mIRC.channelbuffer $chan(%wa2mIRC.count)
}
else {
set %wa2mIRC.channelbuffer %wa2mIRC.channelbuffer $+ , $+ $chan(%wa2mIRC.count)
}
}
}
}
if ( %wa2mIRC.channelbuffer != $null ) {
msg %wa2mIRC.channelbuffer $4-
}
}
;END FIRST WHILE
}
;ELSE FOR NO MULTISERVER
else {
unset %wa2mIRC.channelbuffer
set %wa2mIRC.count 0
while ( %wa2mIRC.count < $chan(0) ) {
inc %wa2mIRC.count
if ( $findtok($3,$chan(%wa2mIRC.count),1,44) == $null ) {
if ( %wa2mIRC.channelbuffer == $null ) {
set %wa2mIRC.channelbuffer $chan(%wa2mIRC.count)
}
else {
set %wa2mIRC.temp %wa2mIRC.channelbuffer $+ , $+ $chan(%wa2mIRC.count)
if ( $len(%wa2mIRC.temp) > 60 ) {
msg %wa2mIRC.channelbuffer $4-
unset %wa2mIRC.channelbuffer
set %wa2mIRC.channelbuffer $chan(%wa2mIRC.count)
}
else {
set %wa2mIRC.channelbuffer %wa2mIRC.channelbuffer $+ , $+ $chan(%wa2mIRC.count)
}
}
}
}
if ( %wa2mIRC.channelbuffer != $null ) {
msg %wa2mIRC.channelbuffer $4-
}
}
}
;ELSE FOR INCLUDE CODE
else {
if ( $scid(0) != $null ) {
set %wa2mIRC.servercount 0
while ( %wa2mIRC.servercount < $scid(0) ) {
inc %wa2mIRC.servercount
.scid -s $scon(%wa2mIRC.servercount)
unset %wa2mIRC.channelbuffer
set %wa2mIRC.count 0
while ( %wa2mIRC.count < $chan(0) ) {
inc %wa2mIRC.count
if ( $findtok($3,$chan(%wa2mIRC.count),1,44) != $null ) {
if ( %wa2mIRC.channelbuffer == $null ) {
set %wa2mIRC.channelbuffer $chan(%wa2mIRC.count)
}
else {
set %wa2mIRC.temp %wa2mIRC.channelbuffer $+ , $+ $chan(%wa2mIRC.count)
if ( $len(%wa2mIRC.temp) > 60 ) {
msg %wa2mIRC.channelbuffer $4-
unset %wa2mIRC.channelbuffer
set %wa2mIRC.channelbuffer $chan(%wa2mIRC.count)
}
else {
set %wa2mIRC.channelbuffer %wa2mIRC.channelbuffer $+ , $+ $chan(%wa2mIRC.count)
}
}
}
}
if ( %wa2mIRC.channelbuffer != $null ) {
msg %wa2mIRC.channelbuffer $4-
}
}
;END FIRST WHILE
}
;ELSE FOR NO MULTISERVER
else {
unset %wa2mIRC.channelbuffer
set %wa2mIRC.count 0
while ( %wa2mIRC.count < $chan(0) ) {
inc %wa2mIRC.count
if ( $findtok($3,$chan(%wa2mIRC.count),1,44) != $null ) {
if ( %wa2mIRC.channelbuffer == $null ) {
set %wa2mIRC.channelbuffer $chan(%wa2mIRC.count)
}
else {
set %wa2mIRC.temp %wa2mIRC.channelbuffer $+ , $+ $chan(%wa2mIRC.count)
if ( $len(%wa2mIRC.temp) > 60 ) {
msg %wa2mIRC.channelbuffer $4-
unset %wa2mIRC.channelbuffer
set %wa2mIRC.channelbuffer $chan(%wa2mIRC.count)
}
else {
set %wa2mIRC.channelbuffer %wa2mIRC.channelbuffer $+ , $+ $chan(%wa2mIRC.count)
}
}
}
}
if ( %wa2mIRC.channelbuffer != $null ) {
msg %wa2mIRC.channelbuffer $4-
}
}
;END INCLUDE SHITE
}
}
else {
echo invalid identifiers specified
}
}
}
alias uninstallwa2mirc {
dialog -m wa2mircunload wa2mircunload
}
alias wa2mIRCSetup {
dialog -m wa2mIRCSetup wa2mIRCSetup
}
alias wa2 song
alias song {
if (%wa2mIRC.messagetype == $null) {
set %wa2mIRC.messagetype /me
}
setupcolours
wa2mircoutputstuff
if ( %sys.removeALLformatting == 1 ) {
%wa2mirc.messagetype $strip(%wa2mIRC.output,burc)
}
else {
%wa2mIRC.messagetype %wa2mIRC.output
}
}
alias -l wa2mircoutputstuff {
set %wa2mIRC.output %sys.BoldHeader $+ %sys.UnderLineHeader $+ $+ %sys.HeadColourVar $+ %wa2mIRC.Prefix $+ %sys.UnderLineHeader $+ %sys.BoldHeader $+ : %sys.Underlineenc $+ $+ %sys.encColourVar $+ %sys.Boldenc $+ %sys.encLeftvar $+ %sys.Underlineenc $+ %sys.Boldenc $+ $+ %sys.ValueColourVar $+ %sys.UnderLineValue $+ %sys.BoldValue $+ $+ $+ $right($dll( $scriptdir $+ winamptomirc.dll, GetTitle, _ ),-1) $+ $+ %sys.UnderLineValue $+ $+ %sys.BoldValue $+ %sys.Underlineenc $+ %sys.Boldenc $+ $+ %sys.encColourVar $+ %sys.encRightvar $+ %sys.Underlineenc $+ %sys.Boldenc
if (%wa2mIRC.length == on) {
set %wa2mIRC.output %wa2mIRC.output %sys.Boldsep $+ %sys.Underlinesep $+ $+ %sys.sepColourvar $+ %sys.sepWith $+ %sys.Boldsep $+ $+ %sys.Underlinesep %sys.BoldHeader $+ %sys.UnderLineHeader $+ $+ %sys.HeadColourVar $+ Length $+ %sys.UnderLineHeader $+ %sys.BoldHeader $+ : %sys.Underlineenc $+ $+ %sys.encColourVar $+ %sys.Boldenc $+ %sys.encLeftvar $+ %sys.Underlineenc $+ %sys.Boldenc $+ $+ %sys.ValueColourVar $+ %sys.UnderLineValue $+ %sys.BoldValue $+ $+ $dll( $scriptdir $+ winamptomirc.dll, GetLength, _ ) $+ $+ %sys.UnderLineValue $+ $+ %sys.BoldValue $+ %sys.Underlineenc $+ %sys.Boldenc $+ $+ %sys.encColourVar $+ %sys.encRightvar $+ %sys.Underlineenc $+ %sys.Boldenc
}
if (%wa2mIRC.bitrate == on) {
set %wa2mIRC.output %wa2mIRC.output %sys.Boldsep $+ %sys.Underlinesep $+ $+ %sys.sepColourvar $+ %sys.sepWith $+ %sys.Boldsep $+ $+ %sys.Underlinesep %sys.BoldHeader $+ %sys.UnderLineHeader $+ $+ %sys.HeadColourVar $+ BitRate $+ %sys.UnderLineHeader $+ %sys.BoldHeader $+ : %sys.Underlineenc $+ $+ %sys.encColourVar $+ %sys.Boldenc $+ %sys.encLeftvar $+ %sys.Underlineenc $+ %sys.Boldenc $+ $+ %sys.ValueColourVar $+ %sys.UnderLineValue $+ %sys.BoldValue $+ $+ $dll( $scriptdir $+ winamptomirc.dll, GetBitRate, _ ) $+ $+ %sys.UnderLineValue $+ $+ %sys.BoldValue $+ %sys.Underlineenc $+ %sys.Boldenc $+ $+ %sys.encColourVar $+ %sys.encRightvar $+ %sys.Underlineenc $+ %sys.Boldenc
}
if (%wa2mIRC.samplerate == on) {
set %wa2mIRC.output %wa2mIRC.output %sys.Boldsep $+ %sys.Underlinesep $+ $+ %sys.sepColourvar $+ %sys.sepWith $+ %sys.Boldsep $+ $+ %sys.Underlinesep %sys.BoldHeader $+ %sys.UnderLineHeader $+ $+ %sys.HeadColourVar $+ Sample Rate $+ %sys.UnderLineHeader $+ %sys.BoldHeader $+ : %sys.Underlineenc $+ $+ %sys.encColourVar $+ %sys.Boldenc $+ %sys.encLeftvar $+ %sys.Underlineenc $+ %sys.Boldenc $+ $+ %sys.ValueColourVar $+ %sys.UnderLineValue $+ %sys.BoldValue $+ $dll( $scriptdir $+ winamptomirc.dll, GetSampleRate, _ ) $+ %sys.UnderLineValue $+ $+ %sys.BoldValue $+ %sys.Underlineenc $+ %sys.Boldenc $+ $+ %sys.encColourVar $+ %sys.encRightvar $+ %sys.Underlineenc $+ %sys.Boldenc
}
}
alias -l wa2mircfilterstuff {
if (%WA2mIRC.automessagetype == /me) {
set %WA2mIRC.filter -d
}
if (%WA2mIRC.automessagetype == /say) {
set %WA2mIRC.filter -m
}
}
menu channel {
Media Overkill
.WinAmp2mIRC
..Winamp2 Setup (/wa2mIRCSetup):/wa2mIRCSetup
..Winamp2 Song Report (/wa2 or /song):/song
.-
.WinAmp3mIRC
..Setup Helper (/WA3setup):/WA3setup
..Winamp3 Setup (/WA3mIRCSetup):/WA3mIRCSetup
..Winamp3 Song Report (/wa3):/song
..-
; .Reload Script:.timer 1 1 /wa2mIRCSetup | /reload -rs " $+ $script $+ "
; .Completely Unload:/uninstallwa2mirc
}
menu query {
Media Overkill
.WinAmp2mIRC
..Setup (/WA2mIRCSetup):/wa2mIRCSetup
..-
..Remote Song
...View Song:ctcp $1 WINAMP2MIRC
..-
..OMFG SONG (/Song):/song
.-
; .Reload Script:.timer 1 1 /wa2mIRCSetup | /reload -rs " $+ $script $+ "
; .Completely Unload:/uninstallwa2mirc
}
menu nicklist {
-
Media Overkill
.WinAmp2mIRC
..Setup (/wa2mIRCSetup):/wa2mIRCSetup
..-
..Remote Song
...View Song:ctcp $1 WINAMP2MIRC
.-
;.Reload Script:.timer 1 1 /wa2mIRCSetup | /reload -rs " $+ $script $+ "
;.Completely Unload:/uninstallwa2mirc
}
alias checkwinamp {
if (($remove($dll($scriptdir $+ winamptomirc.dll,GetTitle,_ ),$chr(32)) != %wa2mirc.title) && ($dll( $scriptdir $+ winamptomirc.dll,GetTitle,_ ) != $null)) {
setupcolours
if (%WA2mIRC.messagetype == /me) {
set %WA2mIRC.message /ame
}
if (%WA2mIRC.messagetype == /say) {
set %WA2mIRC.message /amsg
}
if (%WA2mIRC.messagetype == /ame) {
set %WA2mIRC.automessagetype /me
}
if (%WA2mIRC.messagetype == /amsg) {
set %WA2mIRC.automessagetype /say
}
else {
set %WA2mIRC.automessagetype %WA2mIRC.messagetype
set %WA2mIRC.message %WA2mirc.messagetype
}
wa2mircoutputstuff
if ( %sys.removeALLformatting == 1 ) {
if ( %wa2mIRC.EnableChannelFilter == 1 ) {
wa2mircfilterstuff
wa2mfiltermessage %WA2mIRC.filter %wa2mIRC.ChannelFilterMode %wa2mIRC.Channels $strip(%wa2mIRC.output,burc)
}
if ( %wa2mIRC.EnableChannelFilter == 0) {
if (%WA2mIRC.ActiveAutosong == on) {
if (%WA2mIRC.automessagetype == /me) set %WA2mIRC.activemessage /describe
elseif (%WA2mIRC.automessagetype == /say) set %WA2mIRC.activemessage /msg
%WA2mIRC.activemessage $active $strip(%WA2mIRC.output,burc)
}
else {
scid -a %WA2mIRC.message $strip(%WA2mIRC.output,burc)
}
}
}
else {
if ( %wa2mIRC.EnableChannelFilter == 1 ) {
wa2mircfilterstuff
wa2mfiltermessage %wa2mirc.filter %wa2mIRC.ChannelFilterMode %wa2mIRC.Channels %wa2mIRC.output
}
if ( %wa2mIRC.EnableChannelFilter == 0 ) {
if (%WA2mIRC.ActiveAutosong == on) {
if (%WA2mIRC.automessagetype == /me) set %WA2mIRC.activemessage /describe
elseif (%WA2mIRC.automessagetype == /say) set %WA2mIRC.activemessage /msg
%WA2mIRC.activemessage $active %WA2mIRC.output
}
else {
scid -a %WA2mIRC.message %WA2mIRC.output
}
}
}
}
set %wa2mirc.title $remove($dll($scriptdir $+ winamptomirc.dll,GetTitle,_),$chr(32))
}