The display shows:
Track name
File name
Track length (mins:seconds)
Position in playlist
(This script uses the postmessage function that Chris has already announced will be there in next release)
Guyz i've already asked Chris to make the unstable (being-worked-upon) release available at some place on his website, and he liked this suggestion. Go on, ask him to do it!! :wink:
setbatchlines, 10ms SetTitleMatchMode, 2 SetWinDelay, 1 RegRead, wapath, REG_SZ, HKEY_CURRENT_USER, Software\Winamp, ifequal, wapath,, setenv, wapath, c:\program files\winamp Ifwinexist,- Winamp,,setenv, wawin,- Winamp Ifwinexist,Winamp 2,,goto,nosong Ifwinexist,Winamp 3,,goto,nosong Ifwinexist,Winamp 5,,goto,nosong ;saves playlist & gets track number PostMessage, 400,,78,%WAWin% WinGetTitle, track, %WAWin% StringGetPos, dotpos, track, . stringleft, track,track,%dotpos% ;extract info setenv, line, %track% envmult, line,2 FileReadLine, title, %wapath%\winamp.m3u, %line% StringGetPos, comma, title, `, StringGetPos, colon, title, : envadd, colon, 1 StringLeft, length, title, %comma% StringTrimLeft, length, length, %colon% setenv, mins, %length% EnvDiv, mins, 60 setenv, buffer, %mins% envmult, buffer, 60 setenv, secs, %length% envsub, secs, %buffer% envadd, comma, 1 StringTrimLeft, title, title, %comma% envadd, line, 1 FileReadLine, path, %wapath%\winamp.m3u, %line% ;available info: mins, secs, title, path, track ;Infobox filedelete, %temp%\temp.hta fileappend,<html>,%temp%\temp.hta fileappend,<title>Song Notification</title>,%temp%\temp.hta fileappend,<HTA:APPLICATION ID="Wizard",%temp%\temp.hta fileappend,APPLICATIONNAME="Wizard",%temp%\temp.hta fileappend,VERSION="1.0",%temp%\temp.hta fileappend,BORDER="dialog",%temp%\temp.hta fileappend,SCROLL="no",%temp%\temp.hta fileappend,CAPTION="no",%temp%\temp.hta fileappend,MINIMIZEBUTTON="no",%temp%\temp.hta fileappend,MAXIMIZEBUTTON="no",%temp%\temp.hta fileappend,CONTEXTMENU="no",%temp%\temp.hta fileappend,SINGLEINSTANCE="yes",%temp%\temp.hta fileappend,WINDOWSTATE="normal">,%temp%\temp.hta fileappend,</head>,%temp%\temp.hta fileappend,<body bgcolor="#FFFFFF">,%temp%\temp.hta fileappend,<p align="center"><font color="#0066CC" face="Verdana" style="font-size: 36pt">,%temp%\temp.hta fileappend,%title%</font></p>,%temp%\temp.hta fileappend,<p align="center"> </p>,%temp%\temp.hta fileappend,<p align="center"><font color="#6666CC" face="Verdana" style="font-size: 18pt">,%temp%\temp.hta fileappend,%path% </font></p>,%temp%\temp.hta fileappend,<p align="center"><font color="#6666CC" face="Verdana" style="font-size: 18pt">,%temp%\temp.hta fileappend,Song Length %mins%:%secs% </font></p>,%temp%\temp.hta fileappend,<p align="center"><font color="#6666CC" face="Verdana" style="font-size: 18pt">,%temp%\temp.hta fileappend,Position in playlist %track% </font></p>,%temp%\temp.hta fileappend,</body>,%temp%\temp.hta fileappend,</html>,%temp%\temp.hta ifexist, %temp%\temp.hta,run, %comspec% /c start %temp%\temp.hta,,hide winwait, Song Notification,,5 sleep, 2000 winclose, Song Notification filedelete, %temp%\temp.hta exit nosong: SplashTextOn , 200, 150,,`n`n NO SONG BEING PLAYED sleep, 2000