It is currently May 3rd, 2024, 10:24 pm

[SOLVED] Help for create skin

Get help with creating, editing & fixing problems with skins
User avatar
balala
Rainmeter Sage
Posts: 16198
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Help for create skin

Post by balala »

jade wrote:Sorry, the folder contained 70 folders, there was no problem. :x
Is there a way to read the property of a film (16/9 or 4/3, stereo, ....)
otherwise there he means to retrieve the tag of an XML file
I don't know about a such possibility. You can try to find a plugin, something similar with the ImageSize plugin, but which should work for movies too (because ImageSize works just for images). As I said, I don't know a such plugin. Maybe someone else will have an idea?
jade
Posts: 15
Joined: August 25th, 2016, 4:47 pm

Re: Help for create skin

Post by jade »

Hi, i don(t find a "videosize" plugin. So i create a Xml files with ratio tag.

When i use webparser, i can't see any text.

My code :

Code: Select all

[MeasureXmlRatio]
Measure=Plugin
Plugin=WebParser
URL=file://H:\Film\Ratio.xml
RegExp="(?siU)<Ratio>(.*)</Ratio>"

[MeterDisplay]
Meter=String
Text=[MeasureXmlRatio]
W=300
H=500
StringIndex=1
AntiAlias=1
Xml file :

Code: Select all

<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<Movie>
  <Ratio>16/9</Ratio>
</Movie>
Where is my mistake ?
Thank you.
User avatar
winterwulf
Posts: 94
Joined: August 17th, 2016, 1:48 am
Location: São Paulo - Brazil

Re: Help for create skin

Post by winterwulf »

jade wrote:Hi, i don(t find a "videosize" plugin. So i create a Xml files with ratio tag.

When i use webparser, i can't see any text.

My code :

Code: Select all

[MeasureXmlRatio]
Measure=Plugin
Plugin=WebParser
URL=file://H:\Film\Ratio.xml
RegExp="(?siU)<Ratio>(.*)</Ratio>"

[MeterDisplay]
Meter=String
Text=[MeasureXmlRatio]
W=300
H=500
StringIndex=1
AntiAlias=1
Xml file :

Code: Select all

<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<Movie>
  <Ratio>16/9</Ratio>
</Movie>
Where is my mistake ?
Thank you.
try this:

RegExp=(?siU).*<Ratio>(.*)</Ratio>
User avatar
ikarus1969
Posts: 571
Joined: February 28th, 2011, 3:20 pm
Location: Vienna, Austria

Re: Help for create skin

Post by ikarus1969 »

Hi jade!

2 things:
  • The "StringIndex" belongs to the WebParser measure (never to a meter)
  • You should "bind" the Meter to the Measure by setting "MeasureName" on the meter
Could you try that:

Code: Select all

[MeasureXmlRatio]
Measure=Plugin
Plugin=WebParser
URL=file://H:\Film\Ratio.xml
RegExp="(?siU)<Ratio>(.*)</Ratio>"
StringIndex=1

[MeterDisplay]
Meter=String
MeasureName=MeasureXmlRatio
W=300
H=500
AntiAlias=1
jade
Posts: 15
Joined: August 25th, 2016, 4:47 pm

Re: Help for create skin

Post by jade »

thank you everyone. My skin works well now.

Can we use variable in url=file ?

Something like this :

URL=file://[mPath][mIndex1Name]resume.xml

the fileview plugin work well.

:thumbup:
User avatar
balala
Rainmeter Sage
Posts: 16198
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Help for create skin

Post by balala »

jade wrote:Can we use variable in url=file ?

Something like this :

URL=file://[mPath][mIndex1Name]resume.xml
[mPath] and [mIndex1Name] are not variables, but section variables. And yes, you can use them, but not this way. Try the following URL: URL=file://[[color=#FF0000]&[/color]mPath][[color=#FF0000]&[/color]mIndex1Name]resume.xml (read the last paragraph here).
jade
Posts: 15
Joined: August 25th, 2016, 4:47 pm

Re: Help for create skin

Post by jade »

sorry, not working.

I post the code may be you can see what is wrong.

Code: Select all

[Rainmeter]
Update=1000
SkinWidth=1920
SkinHeight=1080

[Variables]
H=24
Offset=25
RightAlignOffset=75
Num=0
Pos=0
U=[!UpdateMeasure "MeasureSlide"][!UpdateMeasure "MeasurePos"][!UpdateMeasure "MeasureFocus"][!UpdateMeterGroup "Elements"][!Redraw]

[StringStyle]
W=150
H=#H#
Padding=10,0,0,0
FontColor=220,220,220
FontEffectColor=0,0,0
StringEffect=Shadow
FontSize=8
FontFace=Segoe UI
StringStyle=BOLD
StringAlign=LEFTTCENTER
AntiAlias=1
DynamicVariables=1
Group=Elements

[mPath]
Measure=Plugin
Plugin=FileView
Path="H:\Film"
Count=1
ShowDotDot=0

[mIndex1Name]
Measure=Plugin
Plugin=FileView
Path=[mPath]
Type=FileName
Index=1
Group=Children

[MeasureXmlRatio]
Measure=Plugin
Plugin=WebParser
URL=file://[&mPath][&mIndex1Name]resume.xml
RegExp=(?siU).*<Ratio>(.*)</Ratio>
StringIndex=1
DynamicVariables=1

[MeasureSlide]
Measure=Plugin
Plugin=ActionTimer
Group=Sliders
ActionList1=Repeat Up,25,10
Up=[!SetVariable Pos "(Clamp(#Pos#+0.2,0,1))"]#U#
ActionList2=Repeat Down,25,10
Down=[!SetVariable Pos "(Clamp(#Pos#-0.2,-1,0))"]#U#
DynamicVariables=1

[MeasurePos]
Measure=Calc
Formula=#Pos#
IfCondition=(MeasurePos>=1)
IfTrueAction=[!CommandMeasure MeasureSlide "Stop 1"][!CommandMeasure MeasureSlide "Stop 2"][!SetVariable Num "(#Num#+1)"][!SetVariable Pos "0"]#U#
IfCondition2=(MeasurePos<=-1)
IfTrueAction2=[!CommandMeasure MeasureSlide "Stop 1"][!CommandMeasure MeasureSlide "Stop 2"][!SetVariable Num "(#Num#-1)"][!SetVariable Pos "0"]#U#
DynamicVariables=1

[MeterBackground]
Meter=Image
SolidColor=80,80,80,1
X=0
Y=0
W=500
H=#CURRENTCONFIGHEIGHT#
MouseScrollUpAction=[!CommandMeasure mPath "IndexUp"][!UpdateMeasure mPath][!UpdateMeasureGroup Children][!UpdateMeter *][!UpdateMeterGroup "Elements"][!SetWallpaper "[mPath][mIndex1Name]\Background.jpg"][!Redraw]
MouseScrollDownAction=[!CommandMeasure mPath "IndexDown"][!UpdateMeasure mPath][!UpdateMeasureGroup Children][!UpdateMeter *][!UpdateMeterGroup "Elements"][!SetWallpaper "[mPath][mIndex1Name]\Background.jpg"][!Redraw]
DynamicVariables=1

[Meter1]
Meter=Image
SolidColor=80,80,80,160
X=0
Y=0
W=500
H=#CURRENTCONFIGHEIGHT# 
LeftMouseUpAction=["[mPath][mIndex1Name]\film.avi"]
DynamicVariables=1

[MeterDisplay]
Meter=String
MeasureName=MeasureXmlRatio
W=300
H=500
AntiAlias=1
DynamicVariables=1
Thank you again balala.
User avatar
balala
Rainmeter Sage
Posts: 16198
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Help for create skin

Post by balala »

Yes, I see. The problem is that it takes a while until the FileView plugin can read the data. When it finish, the WebParser measure should be updated. For this, add the following option to the [mPath] measure (the FinishAction must be added to the parent measure): FinishAction=[!CommandMeasure "MeasureXmlRatio" "Update"]. When the FileView plugin finish reading the folders and files, this bang will be executed and this will update the WebParser measure.
But there is another small suplimentar issue with the URL option of your [MeasureXmlRatio] measure: the [mIndex1Name] is not returning a backslash, so you'll have to add it manually: use URL=file://[&mPath][&mIndex1Name][color=#FF0000]\[/color]resume.xml, instead of URL=file://[&mPath][&mIndex1Name]resume.xml (how you had it initially).