It is currently April 25th, 2024, 10:39 am

iTunes Meter

Get help with creating, editing & fixing problems with skins
User avatar
kami
Posts: 39
Joined: July 3rd, 2010, 10:47 am
Location: Canosa di Puglia, Italy

iTunes Meter

Post by kami »

Hi,
I'm creating a Rainmeter iTunes Desktop Remote.
I want to measure the current playing song's progression in minutes and seconds
and i wrote this measure:

[MeasureTime]
Measure=Plugin
Plugin=Plugins\iTunesPlugin.dll
Command=GetPlayerPosition

and the meter:

[Time]
MeasureName=MeasureTime
Meter=STRING
Text=%1
X=100
Y=-15
FontColor=0,0,0,30
FontFace="Century Gothic"
FontSize=75
AntiAlias=1

It is not working! When the meter is displayed on the desktop, there appears an error: "Type Incorrect". I don't know why!???
The syntax is correct and i followed manual's instructions...but i can't view flowing time while the song's playing.
Please help me! How do i solve this?
User avatar
kenz0
Developer
Posts: 263
Joined: July 31st, 2009, 2:23 pm
Location: Tokyo, JPN

Re: iTunes Meter

Post by kenz0 »

"GetPlayerPosition" is command which isn't returned directly as a string values.
To use "GetPlayerPosition", it needs to be changed into string values via Calc measure.

Code: Select all

[MeasureTime]
Measure=Plugin
Plugin=Plugins\iTunesPlugin.dll
Command=GetPlayerPosition

[MeasurePosition]
Measure=Calc
Formula=MeasureTime

and the meter:

[Time]
MeasureName=MeasurePosition
Meter=STRING
Text=%1
X=100
Y=-15
FontColor=0,0,0,30
FontFace="Century Gothic"
FontSize=75
AntiAlias=1
.
Image