Navigation Screen customization

Correct. When the Tile is clicked it fires a Start Process Action which launches or brings to focus WinAmp. I also have a small tray program called Snip that integrates with WinAmp to write the current Artist and Song to text files. I use the script helper file.ReadFromFile() to periodically read the files to display their content on the Tile.

Template:

<size 46><sym>♫</sym></size> <bold><size 48>Music</size></bold>
{CALL:fileop.nowplaying('D:\\SITES\\www\\hh\\html\\nowplaying')}


Script Handler: fileop

function nowplaying(filepath)
{
  var artist = file.ReadFromFile(filepath+'\\Snip_Artist.txt');
  var song = file.ReadFromFile(filepath+'\\Snip_Track.txt');
  if (song=='') {
    return '<size 14>Click here to start Music</size>';
  }
  return '<italic>' + song + '</italic><linebreak/>' + artist;
}
3 Likes