It is currently May 3rd, 2024, 2:05 am

iTunes - MeasureTrackNumber issue

Report bugs with the Rainmeter application and suggest features.
User avatar
kenz0
Developer
Posts: 263
Joined: July 31st, 2009, 2:23 pm
Location: Tokyo, JPN

Re: iTunes - MeasureTrackNumber issue

Post by kenz0 »

Try this:

Code: Select all

[MeasureTrackNumber]
Measure=Plugin
Plugin=Plugins\iTunesPlugin.dll
Command=GetCurrentTrackTrackNumber
Substitute="":"0"

[MeasureStringValues]
Measure=Time
Format=[MeasureTrackNumber]
DynamicVariables=1

[MeasureIntegerValues]
Measure=Calc
Formula=MeasureStringValues < 10 ? MeasureStringValues * (-1) : MeasureStringValues + 0.1
Substitute=".00000":"",".10000":"th","-1":"opening","-2":"second","-3":"third","-4":"fourth","-5":"fifth","-6":"sixth","-7":"seventh","-8":"eighth","-9":"ninth","-0":"stopped"

[MeterTrackNumber]
Meter=STRING
W=100
H=20
SolidColor=FFFFFF
FontSize=12
AntiAlias=1
Text=[MeasureIntegerValues]
DynamicVariables=1
This is the way to forcibly change into a calculable value using Time Measure.

EDIT:
Fixed for defect in stop state.
.
Image
The Freek
Posts: 9
Joined: June 1st, 2010, 9:36 am

Re: iTunes - MeasureTrackNumber issue

Post by The Freek »

kenz0 wrote:Try this:

Code: Select all

[MeasureTrackNumber]
Measure=Plugin
Plugin=Plugins\iTunesPlugin.dll
Command=GetCurrentTrackTrackNumber
Substitute="":"0"

[MeasureStringValues]
Measure=Time
Format=[MeasureTrackNumber]
DynamicVariables=1

[MeasureIntegerValues]
Measure=Calc
Formula=MeasureStringValues < 10 ? MeasureStringValues * (-1) : MeasureStringValues + 0.1
Substitute=".00000":"",".10000":"th","-1":"opening","-2":"second","-3":"third","-4":"fourth","-5":"fifth","-6":"sixth","-7":"seventh","-8":"eighth","-9":"ninth","-0":"stopped"

[MeterTrackNumber]
Meter=STRING
W=100
H=20
SolidColor=FFFFFF
FontSize=12
AntiAlias=1
Text=[MeasureIntegerValues]
DynamicVariables=1
This is the way to forcibly change into a calculable value using Time Measure.

EDIT:
Fixed for defect in stop state.
How the...? It works like a f****** charm :D I can't stress enough how much I appreciate this! From all of you, that is. I'm mightly impressed by you guys :thumbsu:
The Freek
Posts: 9
Joined: June 1st, 2010, 9:36 am

Re: iTunes - MeasureTrackNumber issue

Post by The Freek »

Oh, and here's what you helped me out with, though it's not entirely finished :) I'm still working on the whole theme.

Image