It is currently March 28th, 2024, 7:33 pm

PluginBacklight - control the backlight of laptop or monitor

Share and get help with Plugins and Addons
User avatar
Seahorse
Posts: 1175
Joined: June 9th, 2010, 5:56 pm
Location: Locks heath, UK

Re: PluginBacklight - control the backlight of laptop or monitor

Post by Seahorse »

I have 3 working backlight skins and having manually removed the skin new skin I am working on while Rainmeter is not running I have established the new skin is the source of the Rainmeter crash. This is a first as I don't think I have every written one that crashes Rainmeter before. I am running the current beta on a Win10 tin with all the relevant up-to-date drivers having faffed around checking those also.

The only difference between the working ones and the crashing ones is I am attempting to use a vertical bar meter rather than a horizontal one, which forces me to use a calc. Pretty sure the syntax is the issue as I already have a working volume bar which I used as the template for brightness, but as it's based on code i have that already works?

Code: Select all

[MeasureBacklight]
Measure=Plugin
Plugin=Backlight
Divide=5

[MeasureBrightness]
Measure=Calc
Formula=MeasureBacklight
OnChangeAction=[!CommandMeasure "MeasureBacklight" "SetBackLight [MeasureBrightness]"][!UpdateMeasure MeasureBacklight][!UpdateMeter MeterBrightness][!Redraw]
MaxValue=100
UpdateDivider=-1

[MeterBrightness]
Meter=Bar
MeasureName=MeasureBacklight
BarOrientation=Vertical
Flip=0
X=10
Y=10
W=10
H=100
AntiAlias=1 
BarColor=[MeasureForeground1]
DynamicVariables=1
LeftMouseUpAction=[!SetOption MeasureBacklight Formula "(100-$MouseY:%$)"][!UpdateMeasure MeasureBrightness]
"Regrettably your planet is one of those scheduled for demolition"
Mike

My Skins at DeviantArt

User avatar
balala
Rainmeter Sage
Posts: 16110
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: PluginBacklight - control the backlight of laptop or monitor

Post by balala »

My Rainmeter don't crush, but the skin isn't working. So, I'm not sure if this will fix the crush problem, but you could try to use a, let's say, Bright variable (you don't have to add it to the [Variables] section) then modify the LeftMouseUpAction option of the [MeterBrightness] meter in a way to set the value of this variable when you click to the bar: LeftMouseUpAction=[!SetVariable Bright "(100-$MouseY:%$)"][!UpdateMeasure MeasureBrightness][!Redraw]. Now replace the Formula and the OnChangeAction options of the [MeasureBrightness] measure with these:

Code: Select all

Formula=#Bright#
OnChangeAction=[!CommandMeasure "MeasureBacklight" "SetBackLight #Bright#"][!UpdateMeasure MeasureBacklight][!UpdateMeter MeterBrightness][!Redraw]
(don't forget to add to the [MeasureBrightness] the DynamicVariables=1 option). This technique will set the brightness through Bright variable and you need this because the ideal would be to replace the !CommandMeasure bang of the [MeasureBrightness] measure with: [!CommandMeasure "MeasureBacklight" "SetBackLight (100-$MouseY:%$)"], but this won't work.
Just one more thing: I'd add to the [MeterBrightness] a SolidColor=0,0,0,150 option (or whatever color you want to use) to can set the brightnes to any value between 0% and 100% (if you don't add it, you can click only to the visible part of the bar, so you can just reduce the brightness).
User avatar
Seahorse
Posts: 1175
Joined: June 9th, 2010, 5:56 pm
Location: Locks heath, UK

Re: PluginBacklight - control the backlight of laptop or monitor

Post by Seahorse »

That's not working and Rainmeter crashes out still.

This is the working volume meter code cut from the main skin (looks more complicated as the skin is scalable using the mouse-wheel). This gives a vertical bar you can click on to alter windows volume. Armed with that it shouldn't really be much of a leap to get brightness going, which is why this is all the more frustrating for me. Am having another go now, but I have to edit, run, crash, restart, which is a pain.
[Rainmeter]
Author=Seahorse (AKA Osric Wuscfrea) mr.seahorse@gmail.com
Update=1000
BackgroundMode=2
SolidColor=0,0,0,1
AccurateText=1

;1.0 - Release

;===============================================================================================
;Variables
;===============================================================================================

[Variables]

;********************************************************************************************
;Radius - default size 80 means the meter starts as a 160 x 160 pixels. This variable is the key to the size of the whole skin. If you want the smaller, reduce the figure or if you want them bigger by default increase it, once you change the size of the skin with your MouseWheel the value is overwritten.
;********************************************************************************************

Radius=175

;The amount skin grows or shrinks when scrolling mouse in pixels.
ScrollMouseIncrement=5

;-----------------------------------------------------------------------------------------------
;Styles
;-----------------------------------------------------------------------------------------------

[StringStyle]
FontColor=[MeasureForeground1]
FontFace=Juice Regular
FontSize=12
StringAlign=CenterCenter
StringEffect=Shadow
AntiAlias=1

[StringStyleRight]
FontColor=[MeasureForeground1]
FontFace=Juice Regular
FontSize=12
StringAlign=Right
StringEffect=Shadow
AntiAlias=1

[StringStyleLeft]
FontColor=[MeasureForeground1]
FontFace=Juice Regular
FontSize=12
StringAlign=Left
StringEffect=Shadow
AntiAlias=1

[SecondsStyle]
H=(#Radius#*0.3)
W=(#Radius#*0.3)
X=(#Radius#*1.5)
Y=(#Radius#*0.2)
Solid=1
LineStart=(#Radius#*0.25)
LineLength=(#Radius#*0.3)
AntiAlias=1
LineColor=[MeasureForeground2],125
DynamicVariables=1

;===============================================================================================
;Measures
;===============================================================================================

;-----------------------------------------------------------------------------------------------
;Capture Wallpaper foreground and background colours.
;-----------------------------------------------------------------------------------------------

[MeasureChameleon]
Measure=Plugin
Plugin=Chameleon
Type=Desktop

[MeasureBackground1]
Measure=Plugin
Plugin=Chameleon
Parent=MeasureChameleon
Format=Dec
Color=Background1

[MeasureBackground2]
Measure=Plugin
Plugin=Chameleon
Parent=MeasureChameleon
Format=Dec
Color=Background2

[MeasureForeground1]
Measure=Plugin
Plugin=Chameleon
Parent=MeasureChameleon
Format=Dec
Color=Foreground1

[MeasureForeground2]
Measure=Plugin
Plugin=Chameleon
Parent=MeasureChameleon
Format=Dec
Color=Foreground2

;-----------------------------------------------------------------------------------------------
;Volume Bar
;-----------------------------------------------------------------------------------------------

[MeasureWin7Audio]
Measure=Plugin
Plugin=Win7AudioPlugin

[MeasureVolume]
Measure=Calc
Formula=MeasureWin7Audio
OnChangeAction=[!CommandMeasure "MeasureWin7Audio" "SetVolume [MeasureVolume]"][!UpdateMeasure MeasureWin7Audio][!UpdateMeter MeterVolume][!Redraw]
MaxValue=100
UpdateDivider=-1

[MeterBarsBackground]
Meter=IMAGE
X=(#Radius#*1.0)
Y=(#Radius#*0.1)
W=(#Radius#*0.4)
H=(#Radius#*0.65)
SolidColor=[MeasureBackground2],125
DynamicVariables=1

[MeterVolume]
Meter=Bar
MeasureName=MeasureWin7Audio
BarOrientation=Vertical
Flip=0
X=(#Radius#*1.05)
Y=(#Radius#*0.12)
W=(#Radius#*0.075)
H=(#Radius#*0.4)
AntiAlias=1
BarColor=[MeasureForeground1]
DynamicVariables=1
;Click on the progress bar to jump to that position in the track.
LeftMouseUpAction=[!SetOption MeasureVolume Formula "(100-$MouseY:%$)"][!UpdateMeasure MeasureVolume]

[MeterVolumeMax]
Meter=STRING
X=(#Radius#*1.08)
Y=(#Radius#*0.11)
MeterStyle=StringStyle
FontSize=(#Radius#*0.06)
Text="^"
DynamicVariables=1
LeftMouseUpAction=[!CommandMeasure "MeasureWin7Audio" "SetVolume 100"][!SetOption MeasureVolume Formula "100"][!UpdateMeasure MeasureVolume]

[MeterVolumeLabel]
Meter=STRING
MeasureName=MeasureVolume
X=(#Radius#*1.1)
Y=(#Radius#*0.65)
MeterStyle=StringStyle
FontSize=(#Radius#*0.06)
Text="Vol:#CRLF#%1"
DynamicVariables=1
"Regrettably your planet is one of those scheduled for demolition"
Mike

My Skins at DeviantArt

User avatar
balala
Rainmeter Sage
Posts: 16110
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: PluginBacklight - control the backlight of laptop or monitor

Post by balala »

Try to:
  • replace the Plugin option of the [MeasureWin7Audio] with Plugin=Backlight (I also replaced all occurences of the MeasureWin7Audio with MeasureBrightness).
  • replace the !CommandMeasure bang on the OnChangeAction of the [MeasureVolume] measure with this: [!CommandMeasure "MeasureBrightness" "SetBackLight [MeasureVolume]"] and add to the same OnChangeAction option this bang: [!UpdateMeter MeterVolumeLabel].
  • remove the UpdateDivider=-1 option from the [MeasureVolume] measure.
  • replace the MeasureName option of the [MeterVolumeLabel] meter with: MeasureName=MeasureBrightness
The code you've posted above, with the modifications I've described, is working well. Just for safeness, here is the whole, working code:

Code: Select all

[Rainmeter]
Author=Seahorse (AKA Osric Wuscfrea) mr.seahorse@gmail.com 
Update=1000
BackgroundMode=2
SolidColor=0,0,0,1
AccurateText=1

;1.0 - Release

;===============================================================================================
;Variables
;===============================================================================================

[Variables]

;********************************************************************************************
;Radius - default size 80 means the meter starts as a 160 x 160 pixels. This variable is the key to the size of the whole skin. If you want the smaller, reduce the figure or if you want them bigger by default increase it, once you change the size of the skin with your MouseWheel the value is overwritten.
;********************************************************************************************

Radius=175

;The amount skin grows or shrinks when scrolling mouse in pixels.
ScrollMouseIncrement=5

;-----------------------------------------------------------------------------------------------
;Styles
;-----------------------------------------------------------------------------------------------

[StringStyle]
FontColor=[MeasureForeground1]
FontFace=Juice Regular
FontSize=12
StringAlign=CenterCenter
StringEffect=Shadow
AntiAlias=1

[StringStyleRight]
FontColor=[MeasureForeground1]
FontFace=Juice Regular
FontSize=12
StringAlign=Right
StringEffect=Shadow
AntiAlias=1

[StringStyleLeft]
FontColor=[MeasureForeground1]
FontFace=Juice Regular
FontSize=12
StringAlign=Left
StringEffect=Shadow
AntiAlias=1

[SecondsStyle]
H=(#Radius#*0.3) 
W=(#Radius#*0.3)
X=(#Radius#*1.5) 
Y=(#Radius#*0.2)
Solid=1
LineStart=(#Radius#*0.25)
LineLength=(#Radius#*0.3)
AntiAlias=1
LineColor=[MeasureForeground2],125
DynamicVariables=1

;===============================================================================================
;Measures
;===============================================================================================

;-----------------------------------------------------------------------------------------------
;Capture Wallpaper foreground and background colours.
;-----------------------------------------------------------------------------------------------

[MeasureChameleon]
Measure=Plugin
Plugin=Chameleon
Type=Desktop

[MeasureBackground1]
Measure=Plugin
Plugin=Chameleon
Parent=MeasureChameleon
Format=Dec
Color=Background1

[MeasureBackground2]
Measure=Plugin
Plugin=Chameleon
Parent=MeasureChameleon
Format=Dec
Color=Background2

[MeasureForeground1]
Measure=Plugin
Plugin=Chameleon
Parent=MeasureChameleon
Format=Dec
Color=Foreground1

[MeasureForeground2]
Measure=Plugin
Plugin=Chameleon
Parent=MeasureChameleon
Format=Dec
Color=Foreground2

;-----------------------------------------------------------------------------------------------
;Volume Bar
;-----------------------------------------------------------------------------------------------

[MeasureBrightness]
Measure=Plugin
Plugin=Backlight

[MeasureVolume]
Measure=Calc
Formula=MeasureBrightness
OnChangeAction=[!CommandMeasure "MeasureBrightness" "SetBackLight [MeasureVolume]"][!UpdateMeasure MeasureBrightness][!UpdateMeter MeterVolume][!UpdateMeter MeterVolumeLabel][!Redraw]
MaxValue=100

[MeterBarsBackground]
Meter=IMAGE
X=(#Radius#*1.0)
Y=(#Radius#*0.1)
W=(#Radius#*0.4)
H=(#Radius#*0.65)
SolidColor=[MeasureBackground2],125
DynamicVariables=1

[MeterVolume]
Meter=Bar
MeasureName=MeasureBrightness
BarOrientation=Vertical
Flip=0
X=(#Radius#*1.05)
Y=(#Radius#*0.12)
W=(#Radius#*0.075)
H=(#Radius#*0.4)
AntiAlias=1 
BarColor=[MeasureForeground1]
DynamicVariables=1
;Click on the progress bar to jump to that position in the track.
LeftMouseUpAction=[!SetOption MeasureVolume Formula "(100-$MouseY:%$)"][!UpdateMeasure MeasureVolume]

[MeterVolumeMax]
Meter=STRING
X=(#Radius#*1.08)
Y=(#Radius#*0.11)
MeterStyle=StringStyle
FontSize=(#Radius#*0.06)
Text="^"
DynamicVariables=1
LeftMouseUpAction=[!CommandMeasure "MeasureBrightness" "SetVolume 100"][!SetOption MeasureVolume Formula "100"][!UpdateMeasure MeasureVolume]

[MeterVolumeLabel]
Meter=STRING
MeasureName=MeasureBrightness
X=(#Radius#*1.1)
Y=(#Radius#*0.65)
MeterStyle=StringStyle
FontSize=(#Radius#*0.06)
Text="Vol:#CRLF#%1"
DynamicVariables=1
Obviously, you should modify a few section names (eg you should rename the [MeasureVolume], the [MeterVolume], the [MeterVolumeMax] or the [MeterVolumeLabel] sections), to don't have Volume in their names, as it's no longer the case).
Now this code is working well for me. If it isn't for you, I'd be curious what version of Rainmeter and what version of Backlight plugin are you using.
User avatar
Seahorse
Posts: 1175
Joined: June 9th, 2010, 5:56 pm
Location: Locks heath, UK

Re: PluginBacklight - control the backlight of laptop or monitor

Post by Seahorse »

Works :D but still crashes. O.O
  • Rainmeter is 3.3.0 b r2468 4 Oct
  • Backlight is 0.9.3.0
Skin as is:
[Rainmeter]
Author=Seahorse (AKA Osric Wuscfrea) mr.seahorse@gmail.com
Update=1000
BackgroundMode=2
SolidColor=0,0,0,1
AccurateText=1

[Metadata]
Name=Daedalus
Version=1.1
License=Creative Commons BY-NC-SA 3.0
Information=Description: Multi-purpose system skin. | Instructions: Use mouse scroll wheel to resize. Default skin size defined by Radius variable, see instruction in skin. | Credits: Smurfier for the RoundLines code used in the seconds display, thank you Sir.

;1.0 - Release

;===============================================================================================
;Variables
;===============================================================================================

[Variables]

;-----------------------------------------------------------------------------------------------
;Global
;-----------------------------------------------------------------------------------------------

;********************************************************************************************
;Radius - default size 80 means the meter starts as a 160 x 160 pixels. This variable is the key to the size of the whole skin. If you want the smaller, reduce the figure or if you want them bigger by default increase it, once you change the size of the skin with your MouseWheel the value is overwritten.
;********************************************************************************************

Radius=175

;The amount clock grows or shrinks when scrolling mouse
ScrollMouseIncrement=5

;The size and spacing of the seconds counter.
SecondAngle=(1/300)
SecondSpace=((2*PI)*(1/59))

;The amount skin grows or shrinks when scrolling mouse in pixels.
ScrollMouseIncrement=5

;-----------------------------------------------------------------------------------------------
;Weather
;-----------------------------------------------------------------------------------------------

;F for Imperial, M for Metric
ImperialorMetric=m

************************************************************************************************
;Location Code - Visit http://www.weather.com/ - search for your location and copy the code from the end of the URL here.
;i.e. Mine is - http://www.weather.com/weather/today/UKXX1630 - so the location code is UKXX1630
************************************************************************************************

Location=UKXX1630

;-----------------------------------------------------------------------------------------------
;Styles
;-----------------------------------------------------------------------------------------------

[StringStyle]
FontColor=[MeasureForeground1]
FontFace=Juice Regular
FontSize=12
StringAlign=CenterCenter
StringEffect=Shadow
AntiAlias=1

[StringStyleRight]
FontColor=[MeasureForeground1]
FontFace=Juice Regular
FontSize=12
StringAlign=Right
StringEffect=Shadow
AntiAlias=1

[StringStyleLeft]
FontColor=[MeasureForeground1]
FontFace=Juice Regular
FontSize=12
StringAlign=Left
StringEffect=Shadow
AntiAlias=1

[SecondsStyle]
H=(#Radius#*0.3)
W=(#Radius#*0.3)
X=(#Radius#*1.5)
Y=(#Radius#*0.2)
Solid=1
LineStart=(#Radius#*0.25)
LineLength=(#Radius#*0.3)
AntiAlias=1
LineColor=[MeasureForeground2],125
DynamicVariables=1

;===============================================================================================
;Measures
;===============================================================================================

;-----------------------------------------------------------------------------------------------
;Capture Wallpaper foreground and background colours.
;-----------------------------------------------------------------------------------------------

[MeasureChameleon]
Measure=Plugin
Plugin=Chameleon
Type=Desktop

[MeasureBackground1]
Measure=Plugin
Plugin=Chameleon
Parent=MeasureChameleon
Format=Dec
Color=Background1

[MeasureBackground2]
Measure=Plugin
Plugin=Chameleon
Parent=MeasureChameleon
Format=Dec
Color=Background2

[MeasureForeground1]
Measure=Plugin
Plugin=Chameleon
Parent=MeasureChameleon
Format=Dec
Color=Foreground1

[MeasureForeground2]
Measure=Plugin
Plugin=Chameleon
Parent=MeasureChameleon
Format=Dec
Color=Foreground2

;-----------------------------------------------------------------------------------------------
;Date & Time
;-----------------------------------------------------------------------------------------------

[MeasureTime]
Measure=Time
Format=%H:%M

;Second Markers
[MeasureSecond]
Measure=Time
Format=%S

[MeasureDate]
Measure=Time
Format=%a %#d %b %y

;-----------------------------------------------------------------------------------------------
;Weather
;-----------------------------------------------------------------------------------------------

[MeasureWeather]
Measure=Plugin
Plugin=WebParser
UpdateRate=1800
Url=http://xml.weather.com/weather/local/#Location#?cc=*&unit=#ImperialorMetric#&dayf=1
RegExp="(?siU)<head>.*<dnam>(.*),.*<tmp>(.*)</tmp>.*<t>(.*)</t>.*<icon>(.*)</icon>.*<lsup>.*<hi>(.*)</hi>.*<low>(.*)</low>"

[MeasureLocation]
Measure=Plugin
Plugin=WebParser
Url=[MeasureWeather]
StringIndex=1
Substitute="N/A":"- "

[MeasureTemperature]
Measure=Plugin
Plugin=WebParser
Url=[MeasureWeather]
StringIndex=2
Substitute="N/A":"- "

[MeasureCurrentConditions]
Measure=Plugin
Plugin=WebParser
Url=[MeasureWeather]
StringIndex=3
Substitute="":"No#CRLF#Connection"

[MeasureIcon]
Measure=Plugin
Plugin=WebParser
Url=[MeasureWeather]
StringIndex=4
Substitute="47":"6","46":"$","45":"8","44":"H","43":"6#","42":"U","41":"W","40":"H","39":"H","38":"P","37":"P","36":"B","35":"W","34":"H","33":"4","32":"B","31":"2","30":"H","29":"4","28":"H","27":"4","26":"N","25":"W","24":"S","23":"S","22":"N","21":"N","20":"N","19":"N","18":"V","17":"W","16":"W","15":"V","14":"V","13":"U","12":"X","11":"R","10":"X","9":"R","8":"R","7":"V","6":"V","5":"V","4":"P","3":"O","2":"T","1":"T","0":"P","" :"?"

[MeasureHigh]
Measure=Plugin
Plugin=WebParser
Url=[MeasureWeather]
StringIndex=5
Substitute="N/A":"- "

[MeasureLow]
Measure=Plugin
Plugin=WebParser
Url=[MeasureWeather]
StringIndex=6
Substitute="N/A":"- "

;-----------------------------------------------------------------------------------------------
;Volume Bar
;-----------------------------------------------------------------------------------------------

[MeasureWin7Audio]
Measure=Plugin
Plugin=Win7AudioPlugin

[MeasureVolume]
Measure=Calc
Formula=MeasureWin7Audio
OnChangeAction=[!CommandMeasure "MeasureWin7Audio" "SetVolume [MeasureVolume]"][!UpdateMeasure MeasureWin7Audio][!UpdateMeter MeterVolume][!Redraw]
MaxValue=100
UpdateDivider=-1

;-----------------------------------------------------------------------------------------------
;Screen Brightness
;-----------------------------------------------------------------------------------------------

[MeasureBrightness]
Measure=Plugin
Plugin=Backlight

[MeasurerBrightnessCalc]
Measure=Calc
Formula=MeasureBrightness
OnChangeAction=[!CommandMeasure "MeasureBrightness" "SetBackLight [MeasurerBrightnessCalc]"][!UpdateMeasure MeasureBrightness][!UpdateMeter MeterBrightness][!UpdateMeter MeterBrightnessLabel][!Redraw]
MaxValue=100

;===============================================================================================
;Meters
;===============================================================================================

[MeterBackground]
Meter=Image
H=(#Radius#*2.0)
W=(#Radius#*2.0)
SolidColor=[MeasureBackground1],125
SolidColor2=[MeasureBackground2],125
GradientAngle=45
BevelType=1
DynamicVariables=1
Antialias=1
MouseScrollDownAction=[!SetVariable Radius "(#Radius#-#ScrollMouseIncrement# < 20 ? 20 : #Radius#-#ScrollMouseIncrement#)"][!WriteKeyValue Variables Radius "(#Radius#-#ScrollMouseIncrement# < 20 ? 20 : #Radius#-#ScrollMouseIncrement#)"][!UpdateMeter *][!UpdateMeasure *][!Redraw]
MouseScrollUpAction=[!SetVariable Radius "(#Radius#+#ScrollMouseIncrement#)"] [!WriteKeyValue Variables Radius "(#Radius#+#ScrollMouseIncrement#)"][!UpdateMeasure *][!UpdateMeter *][!Redraw]

[MeterTime]
Meter=String
MeasureName=MeasureTime
X=(#Radius#*1.65)
Y=(#Radius#*0.38)
MeterStyle=StringStyle
FontSize=(#Radius#*0.14)
DynamicVariables=1

;-----------------------------------------------------------------------------------------------
;Weather
;-----------------------------------------------------------------------------------------------

[WeatherIcon]
Meter=STRING
MeasureName=MeasureIcon
X=(#Radius#*0.2)
Y=(#Radius#*0.2)
MeterStyle=StringStyle
FontFace=Meteocons
Antialias=1
LeftMouseDownAction=[http://www.weather.com/weather/local/#Location#?cc=*&unit=#ImperialorMetric#]
FontSize=(#Radius#*0.2)
DynamicVariables=1

[MeterTemp]
Meter=STRING
MeasureName=MeasureTemperature
X=(#Radius#*0.7)
Y=(#Radius#*0.1)
ClipString=0
MeterStyle=StringStyleRight
Text="%1°C"
FontSize=(#Radius#*0.12)
DynamicVariables=1

[MeterHighLow]
Meter=STRING
MeasureName=MeasureHigh
MeasureName2=MeasureLow
X=(#Radius#*0.95)
Y=(#Radius#*0.1)
ClipString=0
MeterStyle=StringStyleRight
Text="H: %1°C#CRLF#L: %2°C"
FontSize=(#Radius#*0.055)
DynamicVariables=1

[MeterLocationConditions]
Meter=STRING
MeasureName=MeasureLocation
MeasureName2=MeasureCurrentConditions
X=(#Radius#*0.075)
Y=(#Radius#*0.3)
ClipString=0
MeterStyle=StringStyleLeft
Text="%1#CRLF#%2"
FontSize=(#Radius#*0.055)
DynamicVariables=1

;-----------------------------------------------------------------------------------------------
;Volume
;-----------------------------------------------------------------------------------------------

[MeterBarsBackground]
Meter=IMAGE
X=(#Radius#*1.0)
Y=(#Radius#*0.1)
W=(#Radius#*0.4)
H=(#Radius#*0.65)
SolidColor=[MeasureBackground2],125
DynamicVariables=1

[MeterVolume]
Meter=Bar
MeasureName=MeasureWin7Audio
BarOrientation=Vertical
Flip=0
X=(#Radius#*1.05)
Y=(#Radius#*0.12)
W=(#Radius#*0.075)
H=(#Radius#*0.4)
AntiAlias=1
BarColor=[MeasureForeground1]
DynamicVariables=1
;Click on the progress bar to jump to that position in the track.
LeftMouseUpAction=[!SetOption MeasureVolume Formula "(100-$MouseY:%$)"][!UpdateMeasure MeasureVolume]

[MeterVolumeMax]
Meter=STRING
X=(#Radius#*1.08)
Y=(#Radius#*0.11)
MeterStyle=StringStyle
FontSize=(#Radius#*0.06)
Text="^"
DynamicVariables=1
LeftMouseUpAction=[!CommandMeasure "MeasureWin7Audio" "SetVolume 100"][!SetOption MeasureVolume Formula "100"][!UpdateMeasure MeasureVolume]

[MeterVolumeLabel]
Meter=STRING
MeasureName=MeasureVolume
X=(#Radius#*1.1)
Y=(#Radius#*0.65)
MeterStyle=StringStyle
FontSize=(#Radius#*0.06)
Text="Vol:#CRLF#%1"
DynamicVariables=1

;-----------------------------------------------------------------------------------------------
;Brightness Bar
;-----------------------------------------------------------------------------------------------

[MeterBrightness]
Meter=Bar
MeasureName=MeasureBrightness
BarOrientation=Vertical
Flip=0
X=(#Radius#*1.2)
Y=(#Radius#*0.12)
W=(#Radius#*0.075)
H=(#Radius#*0.4)
AntiAlias=1
BarColor=[MeasureForeground1]
DynamicVariables=1
;Click on the progress bar to jump to that position in the track.
LeftMouseUpAction=[!SetOption MeasurerBrightnessCalc Formula "(100-$MouseY:%$)"][!UpdateMeasure MeasurerBrightnessCalc]

[MeterBrightnessMax]
Meter=STRING
X=(#Radius#*1.23)
Y=(#Radius#*0.11)
MeterStyle=StringStyle
FontSize=(#Radius#*0.06)
Text="^"
DynamicVariables=1
LeftMouseUpAction=[!CommandMeasure "MeasureBrightness" "SetBacklight 100"][!SetOption MeasurerBrightnessCalc Formula "100"][!UpdateMeasure MeasurerBrightnessCalc]

[MeterBrightnessLabel]
Meter=STRING
MeasureName=MeasureBrightness
X=(#Radius#*1.25)
Y=(#Radius#*0.65)
MeterStyle=StringStyle
FontSize=(#Radius#*0.06)
Text="Bri:#CRLF#%1"
DynamicVariables=1

;-----------------------------------------------------------------------------------------------
;Seconds
;-----------------------------------------------------------------------------------------------

[CalcSecond1]
Measure=Calc
Formula=(MeasureSecond>=1)*#SecondAngle#

[CalcSecondAngle1]
Measure=Calc
Formula=-PI/2

[MeterSecond1]
Meter=Roundline
MeasureName=CalcSecond1
StartAngle=[CalcSecondAngle1]
MeterStyle=SecondsStyle

[CalcSecond2]
Measure=Calc
Formula=(MeasureSecond>=2)*#SecondAngle#

[CalcSecondAngle2]
Measure=Calc
Formula=(-PI/2)+#SecondSpace#

[MeterSecond2]
Meter=Roundline
MeterStyle=SecondsStyle
MeasureName=CalcSecond2
StartAngle=[CalcSecondAngle2]

[CalcSecond3]
Measure=Calc
Formula=(MeasureSecond>=3)*#SecondAngle#

[CalcSecondAngle3]
Measure=Calc
Formula=(-PI/2)+#SecondSpace#*2

[MeterSecond3]
Meter=Roundline
MeterStyle=SecondsStyle
MeasureName=CalcSecond3
StartAngle=[CalcSecondAngle3]

[CalcSecond4]
Measure=Calc
Formula=(MeasureSecond>=4)*#SecondAngle#

[CalcSecondAngle4]
Measure=Calc
Formula=(-PI/2)+#SecondSpace#*3

[MeterSecond4]
Meter=Roundline
MeterStyle=SecondsStyle
MeasureName=CalcSecond4
StartAngle=[CalcSecondAngle4]

[CalcSecond5]
Measure=Calc
Formula=(MeasureSecond>=5)*#SecondAngle#

[CalcSecondAngle5]
Measure=Calc
Formula=(-PI/2)+#SecondSpace#*4

[MeterSecond5]
Meter=Roundline
MeterStyle=SecondsStyle
MeasureName=CalcSecond5
StartAngle=[CalcSecondAngle5]

[CalcSecond6]
Measure=Calc
Formula=(MeasureSecond>=6)*#SecondAngle#

[CalcSecondAngle6]
Measure=Calc
Formula=(-PI/2)+#SecondSpace#*5

[MeterSecond6]
Meter=Roundline
MeterStyle=SecondsStyle
MeasureName=CalcSecond6
StartAngle=[CalcSecondAngle6]

[CalcSecond7]
Measure=Calc
Formula=(MeasureSecond>=7)*#SecondAngle#

[CalcSecondAngle7]
Measure=Calc
Formula=(-PI/2)+#SecondSpace#*6

[MeterSecond7]
Meter=Roundline
MeterStyle=SecondsStyle
MeasureName=CalcSecond7
StartAngle=[CalcSecondAngle7]

[CalcSecond8]
Measure=Calc
Formula=(MeasureSecond>=8)*#SecondAngle#

[CalcSecondAngle8]
Measure=Calc
Formula=(-PI/2)+#SecondSpace#*7

[MeterSecond8]
Meter=Roundline
MeterStyle=SecondsStyle
MeasureName=CalcSecond8
StartAngle=[CalcSecondAngle8]

[CalcSecond9]
Measure=Calc
Formula=(MeasureSecond>=9)*#SecondAngle#

[CalcSecondAngle9]
Measure=Calc
Formula=(-PI/2)+#SecondSpace#*8

[MeterSecond9]
Meter=Roundline
MeterStyle=SecondsStyle
MeasureName=CalcSecond9
StartAngle=[CalcSecondAngle9]

[CalcSecond10]
Measure=Calc
Formula=(MeasureSecond>=10)*#SecondAngle#

[CalcSecondAngle10]
Measure=Calc
Formula=(-PI/2)+#SecondSpace#*9

[MeterSecond10]
Meter=Roundline
MeterStyle=SecondsStyle
MeasureName=CalcSecond10
StartAngle=[CalcSecondAngle10]

[CalcSecond11]
Measure=Calc
Formula=(MeasureSecond>=11)*#SecondAngle#

[CalcSecondAngle11]
Measure=Calc
Formula=(-PI/2)+#SecondSpace#*10

[MeterSecond11]
Meter=Roundline
MeterStyle=SecondsStyle
MeasureName=CalcSecond11
StartAngle=[CalcSecondAngle11]

[CalcSecond12]
Measure=Calc
Formula=(MeasureSecond>=12)*#SecondAngle#

[CalcSecondAngle12]
Measure=Calc
Formula=(-PI/2)+#SecondSpace#*11

[MeterSecond12]
Meter=Roundline
MeterStyle=SecondsStyle
MeasureName=CalcSecond12
StartAngle=[CalcSecondAngle12]

[CalcSecond13]
Measure=Calc
Formula=(MeasureSecond>=13)*#SecondAngle#

[CalcSecondAngle13]
Measure=Calc
Formula=(-PI/2)+#SecondSpace#*12

[MeterSecond13]
Meter=Roundline
MeterStyle=SecondsStyle
MeasureName=CalcSecond13
StartAngle=[CalcSecondAngle13]

[CalcSecond14]
Measure=Calc
Formula=(MeasureSecond>=14)*#SecondAngle#

[CalcSecondAngle14]
Measure=Calc
Formula=(-PI/2)+#SecondSpace#*13

[MeterSecond14]
Meter=Roundline
MeterStyle=SecondsStyle
MeasureName=CalcSecond14
StartAngle=[CalcSecondAngle14]

[CalcSecond15]
Measure=Calc
Formula=(MeasureSecond>=15)*#SecondAngle#

[CalcSecondAngle15]
Measure=Calc
Formula=(-PI/2)+#SecondSpace#*14

[MeterSecond15]
Meter=Roundline
MeterStyle=SecondsStyle
MeasureName=CalcSecond15
StartAngle=[CalcSecondAngle15]

[CalcSecond16]
Measure=Calc
Formula=(MeasureSecond>=16)*#SecondAngle#

[CalcSecondAngle16]
Measure=Calc
Formula=(-PI/2)+#SecondSpace#*15

[MeterSecond16]
Meter=Roundline
MeterStyle=SecondsStyle
MeasureName=CalcSecond16
StartAngle=[CalcSecondAngle16]

[CalcSecond17]
Measure=Calc
Formula=(MeasureSecond>=17)*#SecondAngle#

[CalcSecondAngle17]
Measure=Calc
Formula=(-PI/2)+#SecondSpace#*16

[MeterSecond17]
Meter=Roundline
MeterStyle=SecondsStyle
MeasureName=CalcSecond17
StartAngle=[CalcSecondAngle17]

[CalcSecond18]
Measure=Calc
Formula=(MeasureSecond>=18)*#SecondAngle#

[CalcSecondAngle18]
Measure=Calc
Formula=(-PI/2)+#SecondSpace#*17

[MeterSecond18]
Meter=Roundline
MeterStyle=SecondsStyle
MeasureName=CalcSecond18
StartAngle=[CalcSecondAngle18]

[CalcSecond19]
Measure=Calc
Formula=(MeasureSecond>=19)*#SecondAngle#

[CalcSecondAngle19]
Measure=Calc
Formula=(-PI/2)+#SecondSpace#*18

[MeterSecond19]
Meter=Roundline
MeterStyle=SecondsStyle
MeasureName=CalcSecond19
StartAngle=[CalcSecondAngle19]

[CalcSecond20]
Measure=Calc
Formula=(MeasureSecond>=20)*#SecondAngle#

[CalcSecondAngle20]
Measure=Calc
Formula=(-PI/2)+#SecondSpace#*19

[MeterSecond20]
Meter=Roundline
MeterStyle=SecondsStyle
MeasureName=CalcSecond20
StartAngle=[CalcSecondAngle20]

[CalcSecond21]
Measure=Calc
Formula=(MeasureSecond>=21)*#SecondAngle#

[CalcSecondAngle21]
Measure=Calc
Formula=(-PI/2)+#SecondSpace#*20

[MeterSecond21]
Meter=Roundline
MeterStyle=SecondsStyle
MeasureName=CalcSecond21
StartAngle=[CalcSecondAngle21]

[CalcSecond22]
Measure=Calc
Formula=(MeasureSecond>=22)*#SecondAngle#

[CalcSecondAngle22]
Measure=Calc
Formula=(-PI/2)+#SecondSpace#*21

[MeterSecond22]
Meter=Roundline
MeterStyle=SecondsStyle
MeasureName=CalcSecond22
StartAngle=[CalcSecondAngle22]

[CalcSecond23]
Measure=Calc
Formula=(MeasureSecond>=23)*#SecondAngle#

[CalcSecondAngle23]
Measure=Calc
Formula=(-PI/2)+#SecondSpace#*22

[MeterSecond23]
Meter=Roundline
MeterStyle=SecondsStyle
MeasureName=CalcSecond23
StartAngle=[CalcSecondAngle23]

[CalcSecond24]
Measure=Calc
Formula=(MeasureSecond>=24)*#SecondAngle#

[CalcSecondAngle24]
Measure=Calc
Formula=(-PI/2)+#SecondSpace#*23

[MeterSecond24]
Meter=Roundline
MeterStyle=SecondsStyle
MeasureName=CalcSecond24
StartAngle=[CalcSecondAngle24]

[CalcSecond25]
Measure=Calc
Formula=(MeasureSecond>=25)*#SecondAngle#

[CalcSecondAngle25]
Measure=Calc
Formula=(-PI/2)+#SecondSpace#*24

[MeterSecond25]
Meter=Roundline
MeterStyle=SecondsStyle
MeasureName=CalcSecond25
StartAngle=[CalcSecondAngle25]

[CalcSecond26]
Measure=Calc
Formula=(MeasureSecond>=26)*#SecondAngle#

[CalcSecondAngle26]
Measure=Calc
Formula=(-PI/2)+#SecondSpace#*25

[MeterSecond26]
Meter=Roundline
MeterStyle=SecondsStyle
MeasureName=CalcSecond26
StartAngle=[CalcSecondAngle26]

[CalcSecond27]
Measure=Calc
Formula=(MeasureSecond>=27)*#SecondAngle#

[CalcSecondAngle27]
Measure=Calc
Formula=(-PI/2)+#SecondSpace#*26

[MeterSecond27]
Meter=Roundline
MeterStyle=SecondsStyle
MeasureName=CalcSecond27
StartAngle=[CalcSecondAngle27]

[CalcSecond28]
Measure=Calc
Formula=(MeasureSecond>=28)*#SecondAngle#

[CalcSecondAngle28]
Measure=Calc
Formula=(-PI/2)+#SecondSpace#*27

[MeterSecond28]
Meter=Roundline
MeterStyle=SecondsStyle
MeasureName=CalcSecond28
StartAngle=[CalcSecondAngle28]

[CalcSecond29]
Measure=Calc
Formula=(MeasureSecond>=29)*#SecondAngle#

[CalcSecondAngle29]
Measure=Calc
Formula=(-PI/2)+#SecondSpace#*28

[MeterSecond29]
Meter=Roundline
MeterStyle=SecondsStyle
MeasureName=CalcSecond29
StartAngle=[CalcSecondAngle29]

[CalcSecond30]
Measure=Calc
Formula=(MeasureSecond>=30)*#SecondAngle#

[CalcSecondAngle30]
Measure=Calc
Formula=(-PI/2)+#SecondSpace#*29

[MeterSecond30]
Meter=Roundline
MeterStyle=SecondsStyle
MeasureName=CalcSecond30
StartAngle=[CalcSecondAngle30]

[CalcSecond31]
Measure=Calc
Formula=(MeasureSecond>=31)*#SecondAngle#

[CalcSecondAngle31]
Measure=Calc
Formula=(-PI/2)+#SecondSpace#*30

[MeterSecond31]
Meter=Roundline
MeterStyle=SecondsStyle
MeasureName=CalcSecond31
StartAngle=[CalcSecondAngle31]

[CalcSecond32]
Measure=Calc
Formula=(MeasureSecond>=32)*#SecondAngle#

[CalcSecondAngle32]
Measure=Calc
Formula=(-PI/2)+#SecondSpace#*31

[MeterSecond32]
Meter=Roundline
MeterStyle=SecondsStyle
MeasureName=CalcSecond32
StartAngle=[CalcSecondAngle32]

[CalcSecond33]
Measure=Calc
Formula=(MeasureSecond>=33)*#SecondAngle#

[CalcSecondAngle33]
Measure=Calc
Formula=(-PI/2)+#SecondSpace#*32

[MeterSecond33]
Meter=Roundline
MeterStyle=SecondsStyle
MeasureName=CalcSecond33
StartAngle=[CalcSecondAngle33]

[CalcSecond34]
Measure=Calc
Formula=(MeasureSecond>=34)*#SecondAngle#

[CalcSecondAngle34]
Measure=Calc
Formula=(-PI/2)+#SecondSpace#*33

[MeterSecond34]
Meter=Roundline
MeterStyle=SecondsStyle
MeasureName=CalcSecond34
StartAngle=[CalcSecondAngle34]

[CalcSecond35]
Measure=Calc
Formula=(MeasureSecond>=35)*#SecondAngle#

[CalcSecondAngle35]
Measure=Calc
Formula=(-PI/2)+#SecondSpace#*34

[MeterSecond35]
Meter=Roundline
MeterStyle=SecondsStyle
MeasureName=CalcSecond35
StartAngle=[CalcSecondAngle35]

[CalcSecond36]
Measure=Calc
Formula=(MeasureSecond>=36)*#SecondAngle#

[CalcSecondAngle36]
Measure=Calc
Formula=(-PI/2)+#SecondSpace#*35

[MeterSecond36]
Meter=Roundline
MeterStyle=SecondsStyle
MeasureName=CalcSecond36
StartAngle=[CalcSecondAngle36]

[CalcSecond37]
Measure=Calc
Formula=(MeasureSecond>=37)*#SecondAngle#

[CalcSecondAngle37]
Measure=Calc
Formula=(-PI/2)+#SecondSpace#*36

[MeterSecond37]
Meter=Roundline
MeterStyle=SecondsStyle
MeasureName=CalcSecond37
StartAngle=[CalcSecondAngle37]

[CalcSecond38]
Measure=Calc
Formula=(MeasureSecond>=38)*#SecondAngle#

[CalcSecondAngle38]
Measure=Calc
Formula=(-PI/2)+#SecondSpace#*37

[MeterSecond38]
Meter=Roundline
MeterStyle=SecondsStyle
MeasureName=CalcSecond38
StartAngle=[CalcSecondAngle38]

[CalcSecond39]
Measure=Calc
Formula=(MeasureSecond>=39)*#SecondAngle#

[CalcSecondAngle39]
Measure=Calc
Formula=(-PI/2)+#SecondSpace#*38

[MeterSecond39]
Meter=Roundline
MeterStyle=SecondsStyle
MeasureName=CalcSecond39
StartAngle=[CalcSecondAngle39]

[CalcSecond40]
Measure=Calc
Formula=(MeasureSecond>=40)*#SecondAngle#

[CalcSecondAngle40]
Measure=Calc
Formula=(-PI/2)+#SecondSpace#*39

[MeterSecond40]
Meter=Roundline
MeterStyle=SecondsStyle
MeasureName=CalcSecond40
StartAngle=[CalcSecondAngle40]

[CalcSecond41]
Measure=Calc
Formula=(MeasureSecond>=41)*#SecondAngle#

[CalcSecondAngle41]
Measure=Calc
Formula=(-PI/2)+#SecondSpace#*40

[MeterSecond41]
Meter=Roundline
MeterStyle=SecondsStyle
MeasureName=CalcSecond41
StartAngle=[CalcSecondAngle41]

[CalcSecond42]
Measure=Calc
Formula=(MeasureSecond>=42)*#SecondAngle#

[CalcSecondAngle42]
Measure=Calc
Formula=(-PI/2)+#SecondSpace#*41

[MeterSecond42]
Meter=Roundline
MeterStyle=SecondsStyle
MeasureName=CalcSecond42
StartAngle=[CalcSecondAngle42]

[CalcSecond43]
Measure=Calc
Formula=(MeasureSecond>=43)*#SecondAngle#

[CalcSecondAngle43]
Measure=Calc
Formula=(-PI/2)+#SecondSpace#*42

[MeterSecond43]
Meter=Roundline
MeterStyle=SecondsStyle
MeasureName=CalcSecond43
StartAngle=[CalcSecondAngle43]

[CalcSecond44]
Measure=Calc
Formula=(MeasureSecond>=44)*#SecondAngle#

[CalcSecondAngle44]
Measure=Calc
Formula=(-PI/2)+#SecondSpace#*43

[MeterSecond44]
Meter=Roundline
MeterStyle=SecondsStyle
MeasureName=CalcSecond44
StartAngle=[CalcSecondAngle44]

[CalcSecond45]
Measure=Calc
Formula=(MeasureSecond>=45)*#SecondAngle#

[CalcSecondAngle45]
Measure=Calc
Formula=(-PI/2)+#SecondSpace#*44

[MeterSecond45]
Meter=Roundline
MeterStyle=SecondsStyle
MeasureName=CalcSecond45
StartAngle=[CalcSecondAngle45]

[CalcSecond46]
Measure=Calc
Formula=(MeasureSecond>=46)*#SecondAngle#

[CalcSecondAngle46]
Measure=Calc
Formula=(-PI/2)+#SecondSpace#*45

[MeterSecond46]
Meter=Roundline
MeterStyle=SecondsStyle
MeasureName=CalcSecond46
StartAngle=[CalcSecondAngle46]

[CalcSecond47]
Measure=Calc
Formula=(MeasureSecond>=47)*#SecondAngle#

[CalcSecondAngle47]
Measure=Calc
Formula=(-PI/2)+#SecondSpace#*46

[MeterSecond47]
Meter=Roundline
MeterStyle=SecondsStyle
MeasureName=CalcSecond47
StartAngle=[CalcSecondAngle47]

[CalcSecond48]
Measure=Calc
Formula=(MeasureSecond>=48)*#SecondAngle#

[CalcSecondAngle48]
Measure=Calc
Formula=(-PI/2)+#SecondSpace#*47

[MeterSecond48]
Meter=Roundline
MeterStyle=SecondsStyle
MeasureName=CalcSecond48
StartAngle=[CalcSecondAngle48]

[CalcSecond49]
Measure=Calc
Formula=(MeasureSecond>=49)*#SecondAngle#

[CalcSecondAngle49]
Measure=Calc
Formula=(-PI/2)+#SecondSpace#*48

[MeterSecond49]
Meter=Roundline
MeterStyle=SecondsStyle
MeasureName=CalcSecond49
StartAngle=[CalcSecondAngle49]

[CalcSecond50]
Measure=Calc
Formula=(MeasureSecond>=50)*#SecondAngle#

[CalcSecondAngle50]
Measure=Calc
Formula=(-PI/2)+#SecondSpace#*49

[MeterSecond50]
Meter=Roundline
MeterStyle=SecondsStyle
MeasureName=CalcSecond50
StartAngle=[CalcSecondAngle50]

[CalcSecond51]
Measure=Calc
Formula=(MeasureSecond>=51)*#SecondAngle#

[CalcSecondAngle51]
Measure=Calc
Formula=(-PI/2)+#SecondSpace#*50

[MeterSecond51]
Meter=Roundline
MeterStyle=SecondsStyle
MeasureName=CalcSecond51
StartAngle=[CalcSecondAngle51]

[CalcSecond52]
Measure=Calc
Formula=(MeasureSecond>=52)*#SecondAngle#

[CalcSecondAngle52]
Measure=Calc
Formula=(-PI/2)+#SecondSpace#*51

[MeterSecond52]
Meter=Roundline
MeterStyle=SecondsStyle
MeasureName=CalcSecond52
StartAngle=[CalcSecondAngle52]

[CalcSecond53]
Measure=Calc
Formula=(MeasureSecond>=53)*#SecondAngle#

[CalcSecondAngle53]
Measure=Calc
Formula=(-PI/2)+#SecondSpace#*52

[MeterSecond53]
Meter=Roundline
MeterStyle=SecondsStyle
MeasureName=CalcSecond53
StartAngle=[CalcSecondAngle53]

[CalcSecond54]
Measure=Calc
Formula=(MeasureSecond>=54)*#SecondAngle#

[CalcSecondAngle54]
Measure=Calc
Formula=(-PI/2)+#SecondSpace#*53

[MeterSecond54]
Meter=Roundline
MeterStyle=SecondsStyle
MeasureName=CalcSecond54
StartAngle=[CalcSecondAngle54]

[CalcSecond55]
Measure=Calc
Formula=(MeasureSecond>=55)*#SecondAngle#

[CalcSecondAngle55]
Measure=Calc
Formula=(-PI/2)+#SecondSpace#*54

[MeterSecond55]
Meter=Roundline
MeterStyle=SecondsStyle
MeasureName=CalcSecond55
StartAngle=[CalcSecondAngle55]

[CalcSecond56]
Measure=Calc
Formula=(MeasureSecond>=56)*#SecondAngle#

[CalcSecondAngle56]
Measure=Calc
Formula=(-PI/2)+#SecondSpace#*55

[MeterSecond56]
Meter=Roundline
MeterStyle=SecondsStyle
MeasureName=CalcSecond56
StartAngle=[CalcSecondAngle56]

[CalcSecond57]
Measure=Calc
Formula=(MeasureSecond>=57)*#SecondAngle#

[CalcSecondAngle57]
Measure=Calc
Formula=(-PI/2)+#SecondSpace#*56

[MeterSecond57]
Meter=Roundline
MeterStyle=SecondsStyle
MeasureName=CalcSecond57
StartAngle=[CalcSecondAngle57]

[CalcSecond58]
Measure=Calc
Formula=(MeasureSecond>=58)*#SecondAngle#

[CalcSecondAngle58]
Measure=Calc
Formula=(-PI/2)+#SecondSpace#*57

[MeterSecond58]
Meter=Roundline
MeterStyle=SecondsStyle
MeasureName=CalcSecond58
StartAngle=[CalcSecondAngle58]

[CalcSecond59]
Measure=Calc
Formula=(MeasureSecond>=59)*#SecondAngle#

[CalcSecondAngle59]
Measure=Calc
Formula=(-PI/2)+#SecondSpace#*58

[MeterSecond59]
Meter=Roundline
MeterStyle=SecondsStyle
MeasureName=CalcSecond59
StartAngle=[CalcSecondAngle59]
"Regrettably your planet is one of those scheduled for demolition"
Mike

My Skins at DeviantArt

User avatar
balala
Rainmeter Sage
Posts: 16110
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: PluginBacklight - control the backlight of laptop or monitor

Post by balala »

Seahorse wrote:Works :D but still crashes. O.O
  • Rainmeter is 3.3.0 b r2468 4 Oct
  • Backlight is 0.9.3.0
I'm using exactly the same Rainmeter and Backlight versions and have no problems at all, Rainmeter isn't crashing, working well, the skin is also working, returning the weather, volume, brightness, time. Though I'm not sure what you mean by "Works, but still crashes". It works or crashes? Anyway, I'm not sure what's happening there but it's very weird. Maybe try to restart Rainmeter (right click - Exit then restart) if you didn't yet and check the log for errors. I attached the rmskin skin installer I've created, if you still can't make the skin to work, please download and try it.
You do not have the required permissions to view the files attached to this post.
User avatar
Seahorse
Posts: 1175
Joined: June 9th, 2010, 5:56 pm
Location: Locks heath, UK

Re: PluginBacklight - control the backlight of laptop or monitor

Post by Seahorse »

Wondering if it's because I am running two instances of Backlight (main skin suite also uses it). I'll run the one you attached alone and see if it crashes. Nope runs for about 30 seconds then Rainmeter crashes. Whether you click anything or not.
Capture.JPG


Event viewer still pointing the finger at Backlight.DLL - Application Error (18:40:27):

Code: Select all

Faulting application name: Rainmeter.exe, version: 3.3.0.2468, time stamp: 0x56113550
Faulting module name: Backlight.DLL, version: 0.9.3.0, time stamp: 0x5406dc3e
Exception code: 0xc0000094
Fault offset: 0x0000000000002779
Faulting process ID: 0x78c
Faulting application start time: 0x01d12554dea1a11c
Faulting application path: C:\Program Files\Rainmeter\Rainmeter.exe
Faulting module path: C:\Users\Mike\AppData\Roaming\Rainmeter\Plugins\Backlight.DLL
Report ID: 29e39638-f734-4066-b203-b8887a45901d
Faulting package full name: 
Faulting package-relative application ID: 
Windows Error Reporting which happens about the time of the crash (18:40:49):

Code: Select all

Fault bucket 120337068531, type 4
Event Name: APPCRASH
Response: Not available
Cab Id: 0

Problem signature:
P1: Rainmeter.exe
P2: 3.3.0.2468
P3: 56113550
P4: Backlight.DLL
P5: 0.9.3.0
P6: 5406dc3e
P7: c0000094
P8: 0000000000002779
P9: 
P10: 

Attached files:
C:\Users\Mike\AppData\Local\Temp\WER8E43.tmp.WERInternalMetadata.xml

These files may be available here:
C:\ProgramData\Microsoft\Windows\WER\ReportArchive\AppCrash_Rainmeter.exe_6c2ddb2b756bc3446decfdff2c74b7c1d6c12_280209e9_0fc4e4b0

Analysis symbol: 
Rechecking for solution: 0
Report ID: 29e39638-f734-4066-b203-b8887a45901d
Report Status: 0
Hashed bucket: 7f28e51e734a282955bfbaf969327cd1
You do not have the required permissions to view the files attached to this post.
"Regrettably your planet is one of those scheduled for demolition"
Mike

My Skins at DeviantArt

User avatar
balala
Rainmeter Sage
Posts: 16110
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: PluginBacklight - control the backlight of laptop or monitor

Post by balala »

Try to unload all skins, then load that causing the troubles. It still crashes Rainmeter?
User avatar
Seahorse
Posts: 1175
Joined: June 9th, 2010, 5:56 pm
Location: Locks heath, UK

Re: PluginBacklight - control the backlight of laptop or monitor

Post by Seahorse »

If I run the version you dropped in here as the only skin, it still crashes Rainmeter 11 seconds between plugin dying and Rainmeter crashing out. :-(
Capture.JPG
You do not have the required permissions to view the files attached to this post.
"Regrettably your planet is one of those scheduled for demolition"
Mike

My Skins at DeviantArt

User avatar
balala
Rainmeter Sage
Posts: 16110
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: PluginBacklight - control the backlight of laptop or monitor

Post by balala »

Sorry no more ideas, because that code is working without problems for me. Maybe someone else will have a better one.