How to use:
Through the RunCommand plugin.
Abstract example:
Parameter = WindowsNowPlaying [title|artist|album] [truncate at] [add at end of truncated string]
or
Parameter = WindowsNowPlaying thumb
Real example:
Code: Select all
[MeasureTitle]
Measure=Plugin
Plugin=RunCommand
Parameter=WindowsNowPlaying title 32 ...
DynamicVariables=1
OutputType=ANSI
OutputFile=#CURRENTPATH#title.txt
The output of [MeasureTitle] will be the title of the song / video or whatever is playing. If it is longer than 32 characters, it will be truncated to the 32nd character and "..." will be added to the end.
The [truncate at] and [add at end of truncated string] parameters cannot be used with the thumb parameter.
When calling "WindowsNowPlaying thumb" a file named "thumbnail.png" will be saved in the same location as the .ini, if something is playing. For the example I used the QuotePlugin plugin to display the image.
The output of "WindowsNowPlaying thumb" can be two values (150/84). These values represent the height of the image resolution. The file can be in the format of 150x150 or 150x84 (youtube thumnails generally).
When there is nothing playing or paused, the output will be null / empty and the thumbnail will be deleted.
And I believe that is all.