yeah...
Code:
on *:dialog:name:sclick:button-id:{
  if ($dll(swamp.dll,WinAmpGet,TRACKFILENAME) != $!null) {
   topic #chan $ifmatch
  }
}
use $nopath($ifmatch) if you want to display only file-name without its path.