Scripting help - Please!
Thursday, April 6, 2006 by Dalek124 | Discussion: DesktopX
I'm trying to make a lyrics window in DesktopX, and have a folder full of my Lyrics files from a plug-in for Winamp (Leo'sLyrics). I what I'm trying to do, and have looked at the Scripts for similar objects, but can't for the life of me compile it into a rational script.
Can anyone help? It's starting to make my head hurt just thinking about it now, and I can't any documentation on scripting this.
Reply #2 Friday, April 7, 2006 9:45 PM

Reply #3 Saturday, April 8, 2006 1:25 PM
. So far I've been looking at antu^jamban's Silica Album Art widget , as it can get the file playing in winamp's name. I build my own player interface (to Winamp
), and am using the Silica Album Art widget for the cover, I just need to have the lyrics embedded in my desktop, and I'll be happy.So yes, please! Throw widgets at me! Shower me with widgets!
Please login to comment and/or vote for this skin.
Welcome Guest! Please take the time to register with us.
There are many great features available to you once you register, including:
- Richer content, access to many features that are disabled for guests like commenting on the forums and downloading skins.
- Access to a great community, with a massive database of many, many areas of interest.
- Access to contests & subscription offers like exclusive emails.
- It's simple, and FREE!







Reply #1 Thursday, April 6, 2006 12:21 PM
First you'll need to retrieve the information about the currently playing track. You say a .txt file with the same filename (I assume you mean excluding the extension), but is that really the information you want to get from WinAmp? I would think the filenames could be in any number of formats, and that the track title from the mp3 tags would be of more use. But maybe you got that covered. In any case, can you get the info you need from winamp?
Next you'll need to find the corresponding text file. Again the specifics will be determined by your situation--it sounds like you have all the lyrics in a single folder. But what if you wanted the lyrics in the same folder as the mp3? Or if you wanted to organize your lyric files into sub-folders? Should your widget be able to handle these cases?
Once you've found a text file you can read it as a string and then display it in any manner you wish.
One thing for sure, you'll be using the File System Object a lot as you find and read your text files. Here is a great list of samples, which you can pick and choose relevant bits from:
http://www.microsoft.com/technet/scriptcenter/scripts/misc/text/default.mspx
Good luck, sounds like a neat project.