press ctrl+f12 then type any part of the name of song and press enter (or let it timeout by 5 secs) and the song plays! ..u can even add complete folders using this (add \ as prefix for folders)...works from all apps. doesn't even let other apps see that u're typing the song name!
if u press Insert instead of Enter, then songs will be added to playlist!
(change paths to point to your winamp installation and your songs folder)
Code:
SetBatchLines, 10ms
^F12::
Input, UserInput, T5,{enter}{ins}
ifequal,userinput,, return
endkey=%errorlevel%
Loop, e:\audio\mp3\*.*, 1, 1
{
mp3 = %A_LoopFileFullPath%
Found = Yes
Loop, Parse, UserInput, %a_space%
IfNotInString, mp3, %A_LoopField%, SetEnv, Found, No
IfEqual, Found, Yes
{
Ifnotinstring, mp3,.mp3, Ifinstring, mp3,., break
ifequal, endkey, Endkey:Insert, run, e:\program files\winamp\winamp.exe /ADD "%mp3%"
ifnotequal, endkey, Endkey:Insert, run, e:\program files\winamp\winamp.exe "%mp3%"
Found = No
break
}
}
Return