K-Meleon
KMeleonWiki > Resources > MacroLibrary > MacroLibrary2 > Play Link in Winamp
Submitted by: MonkeeSage - MonkeeSage@ToughGuy.net - http://gratisDei.com/KM.htm
Notes:
Technically, this will add an item to your current playlist if winamp is open, not "play" it, to simply "play" the file (overwritting anything currently playing or in the playlist), do this:
# And finally, send it to winamp...
exec("C:\\Program Files\\winamp\\winamp.exe " . "\"" . $wlink . "\"");
Shelumi`El
Jordan
S.D.G
winamp_play_url { menu="&Play link in Winamp"; # Check for local files $local = index($LinkURL, "file:///"); $local == -1 ? $wlink = $LinkURL : $wlink = substr($LinkURL , 8); # For translated spaces we replace the %20 with a space $wlink = gsub("%20", " ", $wlink); # And finally, send it to winamp... exec("C:\\Program Files\\winamp\\winamp.exe /ADD " . "\"" . $wlink . "\""); }
LinkPopup{ // ... macros(winamp_play_url) // ... } ImageLinkPopup{ // ... macros(winamp_play_url) // ... } FrameLinkPopup{ // ... macros(winamp_play_url) // ... } FrameImageLinkPopup{ // ... macros(winamp_play_url) // ... }