mIRC Home    About    Download    Register    News    Help

Print Thread
#27948 03/06/03 07:34 PM
Joined: Dec 2002
Posts: 45
P
piko Offline OP
Ameglian cow
OP Offline
Ameglian cow
P
Joined: Dec 2002
Posts: 45
Code:
alias mp3 {
  set %mp3.artist $mp3artist
  set %mp3.title $mp3title
  set %mp3.album $mp3album
  set %mp3.filename $dll($scriptdir\dlls\wa_link.dll, WA_Link_Raw_Stats, TRACKFILENAME)
  set %mp3.trackno $dll($scriptdir\dlls\wa_link.dll, WA_Link_Raw_Stats, TRACKNO)
  if ($mp3artist = $null) {
    say :: %mp3.trackno $+ . %mp3.filename
    halt
  }
  elseif ($mp3title = $null) {
    say :: %mp3.trackno $+ . %mp3.filename
    halt
  }
  elseif ($mp3title && $mp3artist = $null) {
    say :: %mp3.trackno $+ . %mp3.filename
    halt
}
  else say :: %mp3.trackno $+ . %mp3.artist - %mp3.title %mp3.album
  unset %mp3.*
}

alias mp3artist {
  if ($dll($scriptdir\dlls\wa_link.dll, WA_Link_Raw_Stats, ARTIST) = $false) return $null
  else return $dll($scriptdir\dlls\wa_link.dll, WA_Link_Raw_Stats, ARTIST)
}

alias mp3title {
  if ($dll($scriptdir\dlls\wa_link.dll, WA_Link_Raw_Stats, TITLE) = $false) return $null
  else return $dll($scriptdir\dlls\wa_link.dll, WA_Link_Raw_Stats, TITLE)
}

alias mp3album {
  if ($dll($scriptdir\dlls\wa_link.dll, WA_Link_Raw_Stats, ALBUM) = $false) return $null
  else return $chr(47) $dll($scriptdir\dlls\wa_link.dll, WA_Link_Raw_Stats, ALBUM)
}  


this dll read the id3-tag, and if there is no id3-tag i wanted it to return the filename, but instead it returns the FULL path to the mp3, like x:\download\mp3\asdas - asd.mp3, but it should return "asdas - asd.mp3", but if both $mp3title and $mp3artist returns $false it return "asdas - asd.mp3"..anyone?

Last edited by piko; 03/06/03 07:41 PM.
#27949 03/06/03 07:42 PM
Joined: May 2003
Posts: 730
S
Hoopy frood
Offline
Hoopy frood
S
Joined: May 2003
Posts: 730
use $nopath to remove the path
$nopath(path\filename)

#27950 03/06/03 07:51 PM
Joined: Dec 2002
Posts: 45
P
piko Offline OP
Ameglian cow
OP Offline
Ameglian cow
P
Joined: Dec 2002
Posts: 45
thx m8 laugh

#27951 30/12/05 09:24 PM
Joined: Dec 2005
Posts: 1
Mostly harmless
Offline
Mostly harmless
Joined: Dec 2005
Posts: 1
for some reason, this dll crashes mirc almost every time i use it...
i'm using winamp 5.12 and the latest version of mirc...
if anyone knows what's the issue here, please help.


10x in advance,
hal


Link Copied to Clipboard