Secondly, the following code does work as intended. However, there is a very disturbing flicker if the mouse is moved at all while over the displayed image ([MeterPicture])... In other words, The mouse enters the picture area, the picture disappears, the text for the memory readout appears fine, but the slightestmovement of the mouse causes the underlying picture to flash through for each pixel you cross over, until you stop moving the mouse. };] I am not ruling out a very crappy on board video card, but thought I would have you code monkeys look and see if I was doing something stupid as usual! };]
Code: Select all
[Rainmeter]
Update=1000
####################################
[Variables]
Path1=H:\
Path2=C:\Graphics\Pics\
Frame=#@#\Frame1Horizontal-5-3-250x150.png
####################################
[ImageStyle]
X=59
Y=47
W=250
H=150
SolidColor=0,0,0
PreserveAspectRatio=1
[TextStyle]
Font=Arial
FontSize=14
FontColor=0,255,255
SolidColor=0,0,0
####################################
[MeasureGetImage]
Measure=Plugin
Plugin=QuotePlugin
PathName=#Path1#
FileFilter=*.jpg;*.png
UpdateDivider=10
[MeasurePhysMemTotal]
Measure=PhysicalMemory
Total=1
UpdateDivider=3600
[MeasurePhysMemUsed]
Measure=PhysicalMemory
UpdateDivider=2
[MeasurePhysMemFree]
Measure=PhysicalMemory
InvertMeasure=1
UpdateDivider=2
####################################
[MeterBackground]
Meter=IMAGE
MeterStyle=ImageStyle
[MeterMemText]
Meter=String
MeasureName=MeasurePhysMemTotal
MeasureName2=MeasurePhysMemUsed
MeasureName3=MeasurePhysMemFree
NumOfDecimals=1
AutoScale=1
MeterStyle=TextStyle | ImageStyle
Text="RAM Total: %1B#CRLF#RAM Used: %2B#CRLF#RAM Free: %3B"
Hidden=1
[MeterPicture]
Meter=Image
MeasureName=MeasureGetImage
MeterStyle=ImageStyle
MouseOverAction=[!HideMeter MeterPicture][!ShowMeter MeterMemText][!Redraw]
MouseLeaveAction=[!ShowMeter MeterPicture][!HideMeter MeterMemText][!Redraw]
[MeterFrame]
Meter=IMAGE
ImageName=#Frame#
W=379
H=253
MiddleMouseUpAction=[!WriteKeyValue "Variables" "Path1" "#Path2#"][!WriteKeyValue "Variables" "Path2" "#Path1#"][!Refresh]
LeftMouseUpAction=!Refresh
DynamicVariables=1