It is currently May 3rd, 2024, 2:05 am
Report bugs with the Rainmeter application and suggest features.
kenz0
Developer
Posts: 263 Joined: July 31st, 2009, 2:23 pm
Location: Tokyo, JPN
Post
by kenz0 » June 2nd, 2010, 1:10 pm
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.
.
The Freek
Posts: 9 Joined: June 1st, 2010, 9:36 am
Post
by The Freek » June 3rd, 2010, 12:23 am
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
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
Post
by The Freek » June 3rd, 2010, 12:34 am
Oh, and here's what you helped me out with, though it's not entirely finished
I'm still working on the whole theme.