Get and install this skin. The addon will also be installed in the Rainmeter\Addons folder.
The skin is just a little example to show how to use the addon.
Here is the skin code so I can explain a couple of things:
Code: Select all
[Rainmeter]
Update=1000
DynamicWindowSize=1
OnRefreshAction=!Execute ["#ADDONSPATH#DisplayAdapter\DisplayAdapter.exe" "#CURRENTPATH#DisplayAdapter.txt"][!RainmeterEnableMeasure MeasureGetAdapter "#CURRENTCONFIG#"]
[MeasureGetAdapter]
Measure=Plugin
Plugin=Plugins\WebParser.dll
URL=file://#CURRENTPATH#DisplayAdapter.txt
RegExp="(?siU)<DisplayAdapter>(.*)</DisplayAdapter>"
StringIndex=1
FinishAction=!Execute [!RainmeterDisableMeasure MeasureGetAdapter "#CURRENTCONFIG#"]
Disabled=1
[MeterDisplay]
Meter=String
MeasureName=MeasureGetAdapter
FontSize=10
FontColor=255,255,255,255
StringStyle=Bold
The reason I do it this way, with the WebParser measure disabled, is for two reasons. First, there is no need to EVER execute this addon on any "timed" basis. You obviously can't change your video card while Rainmeter is running. No matter how big you make UpdateRate on the measure, it's technically always a waste of resources. Second, due to the nature of Rainmeter, when you first run the skin brand new there will not yet be the text file created by the addon, so nothing will be returned on the first pass. Using the OnRefreshAction with the "!RainmeterEnableMeasure" gives the addon time to create the file before the WebParser measure is run.