Public feed #599075

Mine

public text v1 · immutable
Raw Edit
·published 2007-07-01 23:54 UTC
rendered paste body
  if ($dll(WinAmpI.dll, GetSongLength, 0) == unknown) { 
    set %track $dll(WinAmpI.dll, GetSongPosition, 0) $+ / $+ Unlimited (Radio)
    tokenize 58 $dll(WinAmpI.dll, GetSongPosition, 0) | if ($3) { set %track $asctime($calc($2 * 60 + $3),hh:nn:ss) $+ / $+ Unlimited (Radio) }
  }
  elseif ($dll(WinAmpI.dll, GetSongLength, 0) !== unknown) { 
    set %track $dll(WinAmpI.dll, GetSongPosition, 0) $+ / $+ $dll(WinAmpI.dll, GetSongLength,0)
    set %position $dll(WinAmpI.dll, GetSongPosition, 0)
    tokenize 58 $dll(WinAmpI.dll, GetSongPosition, 0) | if ($3) { set %position $asctime($calc($2 * 60 + $3),hh:nn:ss) }
    tokenize 58 $dll(WinAmpI.dll, GetSongLength, 0) | if ($3) { set %endtime $asctime($calc($2 * 60 + $3),hh:nn:ss) }
    if (%endtime) { set %track %position $+ / $+ %endtime }
    unset %position
    unset %endtime
  }