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
OnRefreshAction=!Execute ["#ADDONSPATH#DisplayAdapter\DisplayAdapter.exe" "#CURRENTPATH#DisplayAdapter.txt"][!RainmeterEnableMeasure MeasureGetAdapter "#CURRENTCONFIG#"]
FinishAction=!Execute [!RainmeterDisableMeasure MeasureGetAdapter "#CURRENTCONFIG#"]
So what happens is that when the skin is loaded or refreshed, the addon is run and creates a little text file with the information in the designated location and file. It then "enables" a WebParser measure to read the file and display it with a string meter.
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.