It is currently May 7th, 2024, 7:50 am

Please advise.

Get help with creating, editing & fixing problems with skins
Machocyclone
Posts: 7
Joined: October 7th, 2011, 2:03 am

Please advise.

Post by Machocyclone »

I am customizing a skin that I like to suit my needs. I am having a problem when trying to display the free RAM and the Used Ram. I am using the following code:

Code: Select all

[Rainmeter]
Update=1000


==========================================================================

============================
[MeterCpubg]
Meter=IMAGE
X=190
Y=3
W=100
H=30
ImageName=bg.png
AntiAlias=1



[MeasureCPU]
Measure=CPU

[MeterTitleCPU]
Meter=STRING
X=220
Y=10
FontColor=255, 255, 255, 255
FontSize=10
StringAlign=Center
FontFace=Digital Sans EF
AntiAlias=1
Prefix=CPU:


[MeterCPU]
Meter=STRING
MeasureName=MeasureCPU
Percentual=1
X=270
Y=10
FontColor=255, 255, 255, 255
FontSize=10
StringAlign=Center
FontFace=Digital Sans EF
AntiAlias=1
Postfix="%"
Autoscale=1
 


============================


[MeterRambg]
Meter=IMAGE
X=290
Y=78
W=100
H=30
ImageName=bg.png
AntiAlias=1

[MeasureMemTotal]
Measure=PhysicalMemory
Total=1
UpdateDivider=2


[MeterMemoryInfo]
Meter=String
MeasureName=MeasureMemTotal
X=100
Y=85
FontSize=10
FontColor=255,255,255,255
AntiAlias=1
AutoScale=1
Text=Total: %1B
 

==============================


[MeterSpeedbg]
Meter=IMAGE
X=90
Y=78
W=100
H=30
ImageName=bg.png
AntiAlias=1

[MeasureMemUsed]
Measure=PhysicalMemory
UpdateDivider=2

[MeterMemoryInfo2]
Meter=String
MeasureName=MeasureMemUsed
X=305
Y=85
FontSize=10
FontColor=255,255,255,255
AntiAlias=1
AutoScale=1
Text=Used: %2B





==============================

[MeterDlbg]
Meter=IMAGE
X=190
Y=158
W=100
H=30
ImageName=bg.png
AntiAlias=1

[MeasureMemFree]
Measure=PhysicalMemory
InvertMeasure=1
UpdateDivider=2

[MeterMemoryInfo3]
Meter=String
MeasureName=MeasureMemFree
X=205
Y=165
FontColor=255,255,255,255
AntiAlias=1
AutoScale=1
Text=Free: %3B

======================================
The Meter CPU and the Measure Mem Total works fine. The last two sections is what giving me trouble. They will display the %2B or %3B on the desktop instead of the actual value. Can anyone offer any advise on what I am doing wrong. For my setup, I want to display the Total RAM, Used Ram, and Free Ram seperatly.

Thanks in advance.
User avatar
jsmorley
Developer
Posts: 22631
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Please advise.

Post by jsmorley »

Text=Free: %3B

Text=Free: %1B

For EACH meter, %1 displays the value of MeasureName=xxx on the meter, and %2 displays the value of MeasureName2=yyyy on the meter.

So each of your meters should use %1, not one with %1 one with %2 etc...
Machocyclone
Posts: 7
Joined: October 7th, 2011, 2:03 am

Re: Please advise.

Post by Machocyclone »

Thanks for the quick reply. That did the trick. I will have to remember that in the future.
Machocyclone
Posts: 7
Joined: October 7th, 2011, 2:03 am

Re: Please advise.

Post by Machocyclone »

Is there any reason why this code should not work?

Meter=IMAGE
X=300
Y=40
w=75
h=75
ImageName=Music.png
AntiAlias=1
LeftMouseDownAction=!execute ["F:\iTunes\iTunes.exe"]
User avatar
jsmorley
Developer
Posts: 22631
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Please advise.

Post by jsmorley »

Machocyclone wrote:Is there any reason why this code should not work?

Meter=IMAGE
X=300
Y=40
w=75
h=75
ImageName=Music.png
AntiAlias=1
LeftMouseDownAction=!execute ["F:\iTunes\iTunes.exe"]
Do you have a unique section name on top of it?

[MeterMusicImage]
Meter=IMAGE
X=300
Y=40
w=75
h=75
ImageName=Music.png
AntiAlias=1
LeftMouseDownAction=!execute ["F:\iTunes\iTunes.exe"]
Machocyclone
Posts: 7
Joined: October 7th, 2011, 2:03 am

Re: Please advise.

Post by Machocyclone »

Yes I do. Did not realize i did not include it.


[3]
Meter=IMAGE
X=300
Y=40
w=75
h=75
ImageName=Music.png
AntiAlias=1
LeftMouseDownAction=!execute ["F:\iTunes\iTunes.exe"]
User avatar
jsmorley
Developer
Posts: 22631
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Please advise.

Post by jsmorley »

Machocyclone wrote:Yes I do. Did not realize i did not include it.


[3]
Meter=IMAGE
X=300
Y=40
w=75
h=75
ImageName=Music.png
AntiAlias=1
LeftMouseDownAction=!execute ["F:\iTunes\iTunes.exe"]
Assuming that there is not another [3] section anywhere in the skin, that Music.png is in the same folder with the .ini and is really a valid .png file, and that iTunes.exe is in F:\iTunes and is not corrupted or something, then that should work fine.
Machocyclone
Posts: 7
Joined: October 7th, 2011, 2:03 am

Re: Please advise.

Post by Machocyclone »

Everything is where it is supposed to be. It will launch WMP just fine, but it won't run iTunes for some reason.

This was the orginal line of code:

LeftMouseDownAction=!execute ["%ProgramFiles%\Windows Media Player\wmplayer.exe" /prefetch:1"]
User avatar
jsmorley
Developer
Posts: 22631
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Please advise.

Post by jsmorley »

Machocyclone wrote:Everything is where it is supposed to be. It will launch WMP just fine, but it won't run iTunes for some reason.

This was the orginal line of code:

LeftMouseDownAction=!execute ["%ProgramFiles%\Windows Media Player\wmplayer.exe" /prefetch:1"]
No reason I can see from that snippet of code. Maybe you better post the entire skin .ini file.
Machocyclone
Posts: 7
Joined: October 7th, 2011, 2:03 am

Re: Please advise.

Post by Machocyclone »

Here you go. Everything else works fine.

[MeterRightLine]
Meter=IMAGE
X=265
Y=180
W=50
H=10
ImageName=bg.png
AntiAlias=1


[1]
Meter=IMAGE
X=100
Y=40
w=75
h=75
ImageName=Computer.png
AntiAlias=1
LeftMouseDownAction=!execute ["::{20D04FE0-3AEA-1069-A2D8-08002B30309D}"]

[2]
Meter=IMAGE
X=200
Y=40
w=75
h=75
ImageName=Documents.png
AntiAlias=1
LeftMouseDownAction=!execute ["::{450D8FBA-AD25-11D0-98A8-0800361B1103}"]

[3]
Meter=IMAGE
X=300
Y=40
w=75
h=75
ImageName=Music.png
AntiAlias=1
LeftMouseDownAction=!execute ["F:\iTunes\iTunes.exe"]

[4]
Meter=IMAGE
X=400
Y=40
w=75
h=75
ImageName=Browser.png
AntiAlias=1
LeftMouseDownAction=!execute ["www.google.com"]

[5]
Meter=IMAGE
X=250
Y=100
w=75
h=75
ImageName=Recycle.png
LeftMouseDownAction=!execute ["::{645FF040-5081-101B-9F08-00AA002F954E}"]
AntiAlias=1