I still have to investigate another "strangeness" I noticed today (it's already happened, but I thought about it only today...).
For the moment I noticed this only using the standard Update, but it's already strange.
Sometimes I have to refresh all, since I'm using WiFi, when it starts late, my skins using internet are stuck.
After the refresh, my Time skin (the one which uses your plugin) is stuck using some more cpu (usually not less than 1%)
If/when disabled it goes down to 0% and the only way is to unload and reload the skin... another refresh (of the skin) does nothing.
I still have to test it with UpdateDivider, when I can find some more time.
The code I'm using:
Code: Select all
[MeasureDVD1Status]
Measure=Plugin
Plugin=OpticalDriveStatus
Drive=#DVD1#
OnChangeAction=[!UpdateMeasure MeasureDVD1Condition][!UpdateMeasure MeasureDVDInfo]
;UpdateDivider=10
Disabled=#DVD1On#
[MeasureDVD1Condition]
Measure=Calc
Formula=[MeasureDVD1Status:]
IfCondition=(MeasureDVD1Condition=0)
IfTrueAction=[!HideMeter MeterDVD1Icon][!UpdateMeter MeterDVD1Icon][!SetOption MeterDVD1DriveButton RightMouseUpAction """["#@#Addons\nircmd\nircmd.exe" cdrom open #DVD1#]"""][!SetOption MeterDVD1DriveButton ButtonCommand "[]"][!SetOption MeterDVD1DriveButton ToolTipText "#DVDRem_0#"][!UpdateMeter MeterDVD1DriveButton][!Redraw]
IfCondition2=(MeasureDVD1Condition=1)
IfTrueAction2=[!ShowMeter MeterDVD1Icon][!SetOption MeterDVD1Icon ImageName "#@#Images\Time1\DVD_0.png"][!UpdateMeter MeterDVD1Icon][!SetOption MeterDVD1DriveButton RightMouseUpAction """["#@#Addons\nircmd\nircmd.exe" cdrom close #DVD1#]"""][!SetOption MeterDVD1DriveButton ButtonCommand "[]"][!SetOption MeterDVD1DriveButton ToolTipText "#DVDRem_1#"][!UpdateMeter MeterDVD1DriveButton][!Redraw]
IfCondition3=(MeasureDVD1Condition=2)
IfTrueAction3=[!ShowMeter MeterDVD1Icon][!SetOption MeterDVD1Icon ImageName "#@#Images\Time1\DVD.png"][!UpdateMeter MeterDVD1Icon][!SetOption MeterDVD1DriveButton RightMouseUpAction """["#@#Addons\nircmd\nircmd.exe" cdrom open #DVD1#]"""][!SetOption MeterDVD1DriveButton ButtonCommand """["#DVD1#"]"""][!SetOption MeterDVD1DriveButton ToolTipText "#DVDRem_0#"][!UpdateMeter MeterDVD1DriveButton][!Redraw]
DynamicVariables=1
UpdateDivider=-1
Disabled=#DVD1On#
[MeasureDVDInfo]
Measure=Freediskspace
Drive=#DVD1#
Label=1
UpdateDivider=-1
Disabled=#DVD1On#