code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
| on *:load:{
if ($dll(scripts\mp3\swamp.dll, WinAmpGet, INSTALLED)) {
dll scripts\mp3\swamp.dll WinAmpCmd CLOSEWINAMP
move scripts\mp3\GEN_MIRC.DLL [ $shortfn($dll(scripts\mp3\swamp.dll, WinAmpGet, DIRECTORY)) ] $+ plugins
move scripts\mp3\gen_mirc.txt [ $shortfn($dll(scripts\mp3\swamp.dll, WinAmpGet, DIRECTORY)) ] $+ plugins
writeini [ $shortfn($dll\scripts\mp3\swamp.dll, WinAmpGet, DIRECTORY)) ] $+ plugins\plugin.ini "Nullsoft mIRC Control" Enabled 1
writeini [ $shortfn($dll(scripts\mp3\swamp.dll, WinAmpGet, DIRECTORY)) ] $+ plugins\plugin.ini "Nullsoft mIRC Control" Server mIRC
writeini [ $shortfn($dll(scripts\mp3\swamp.dll, WinAmpGet, DIRECTORY)) ] $+ plugins\plugin.ini "Nullsoft mIRC Control" String /writeini scripts\mp3\mp3.ini now_playing song %s
}
}
alias mp3 {
if ($dll($shortfn($mircdirscripts\mp3\swamp.dll), WinAmpGet, INSTALLED) == $false) { halt }
if ($dll($shortfn($mircdirscripts\mp3\swamp.dll), WinAmpGet, RUNNING) == $false) { halt }
if ($dll($shortfn($mircdirscripts\mp3\swamp.dll), WinAmpGet, STATE) == Playing) { /me 4 Blows his speakers with: 14 "7 $readini(scripts\mp3\mp3.ini, now_playing, song) 14" 4 @ full volume | halt }
if ($dll($shortfn($mircdirscripts\mp3\swamp.dll), WinAmpGet, STATE) == Paused) { halt }
if ($dll($shortfn($mircdirscripts\mp3\swamp.dll), WinAmpGet, STATE) == Stopped) { halt }
}
alias mp3self {
if ($dll($shortfn($mircdirscripts\mp3\swamp.dll), WinAmpGet, INSTALLED) == $false) { halt }
if ($dll($shortfn($mircdirscripts\mp3\swamp.dll), WinAmpGet, RUNNING) == $false) { halt }
if ($dll($shortfn($mircdirscripts\mp3\swamp.dll), WinAmpGet, STATE) == Playing) { /echo 8******* 9Je hoort nu 14 "4 $readini(scripts\mp3\mp3.ini, now_playing, song) 14" 9aan | halt }
if ($dll($shortfn($mircdirscripts\mp3\swamp.dll), WinAmpGet, STATE) == Paused) { halt }
if ($dll($shortfn($mircdirscripts\mp3\swamp.dll), WinAmpGet, STATE) == Stopped) { halt }
} |
Dit script (geschreven door straat btw) werkt bij mij niet meer goed. Als ik nu /mp3 type dan krijg ik dit te zien:
code:
1
| [12:28am] * yukkie Blows his speakers with: " " @ full volume |
tussen die kwootjes moet natuurlijk de artiest + titel van het nummer komen te staan. dat-ie uit de file mp3.ini plukt.
het schrijven naar mp3.ini werkt wel goed, alleen het retrieven uit die file niet. Straat wil me niet helepen hiermee (hij vind het wel rustig zo op irc
Ik gebruik trouwens Excursion 8.11 voor irc, dat is een flink getweakte versie van mIRC
We've got that ring of confidence