Re: Laptop power/battery skin
Posted: March 23rd, 2018, 4:57 pm
So what should I use to make it faster?
P.S. link was PM'ed to you
P.S. link was PM'ed to you
Please post the link publicly. You could get better replies from others too, like what I can offer.Bub wrote:P.S. link was PM'ed to you
Remove the Substitute option of the [MeasureStatus] measure, then add to the [MeasurePercent] measure, beside the existing options, the following ones:Bub wrote:Right now it's Substitute="0":"NO BATTERY","1":"CHARGING","2":"CRITICAL","3":"LOW","4":"ABOVE LOW"
Been trying to figure out how to make it work this way - "CHARGING" till 99%, "CHARGED" at 100% OR even better nothing at %100 instead of "Charged" or "Above Low" or anything...
Code: Select all
[MeasurePercent]
...
IfCondition=(#CURRENTSECTION#=100)
IfTrueAction=[!SetOption MeasureStatus Substitute """"0":'NO BATTERY',"1":'Charged',"2":'CRITICAL',"3":'Low',"4":'Above Low'"""][!UpdateMeasure "MeasureStatus"]
IfFalseAction=[!SetOption MeasureStatus Substitute """"0":'NO BATTERY',"1":'Charging',"2":'CRITICAL',"3":'Low',"4":'Above Low'"""][!UpdateMeasure "MeasureStatus"]
For this you have to add some further !ShowMeter and !HideMeter bangs to the above IfTrueAction and IfFalseAction options, as it follows, along with removing these bangs from the IfTrueAction and IfFalseAction options of the [MeasureACLine] measure:Bub wrote:And then at 100% change from BarImage animated to BarColor solid color as it does right now between charging / on battery. If it possible to make BarColor after 100% charged fade in / fade out in circle of few seconds, it will be perfect. If it's too much headache, then just change to solid color or image (if you can show me both options... )
Code: Select all
[MeasurePercent]
...
IfCondition=(#CURRENTSECTION#=100)
IfTrueAction=[!HideMeter "MeterBatteryBar1"][!ShowMeter "MeterBatteryBar2"][!SetOption MeasureStatus Substitute """"0":'NO BATTERY',"1":'Charged',"2":'CRITICAL',"3":'Low',"4":'Above Low'"""][!UpdateMeasure "MeasureStatus"]
IfFalseAction=[!ShowMeter "MeterBatteryBar1"][!HideMeter "MeterBatteryBar2"][!SetOption MeasureStatus Substitute """"0":'NO BATTERY',"1":'Charging',"2":'CRITICAL',"3":'Low',"4":'Above Low'"""][!UpdateMeasure "MeasureStatus"]
You have two Update options: first in the [Variables] section of the skin (this is useless, the Update option doesn't belong to this section, but to [Rainmeter]) and the second one in the [Rainmeter] section of the Options.inc file (@Resources folder). Although isn't a common thing to use a such section in an included file, it seems nor banned isn't. Here you've used Update=1000. Reduce this value. For me Update=100 seems a good value.Bub wrote:And last problem is control animation speed. Been trying to change Update numbers from 10 to 500 and nothing happens with speed. For sure I do something wrong but what...
balala wrote:Remove the Substitute option of the [MeasureStatus] measure, then add to the [MeasurePercent] measure, beside the existing options, the following ones:For this you have to add some further !ShowMeter and !HideMeter bangs to the above IfTrueAction and IfFalseAction options, as it follows, along with removing these bangs from the IfTrueAction and IfFalseAction options of the [MeasureACLine] measure:Code: Select all
[MeasurePercent] ... IfCondition=(#CURRENTSECTION#=100) IfTrueAction=[!SetOption MeasureStatus Substitute """"0":'NO BATTERY',"1":'Charged',"2":'CRITICAL',"3":'Low',"4":'Above Low'"""][!UpdateMeasure "MeasureStatus"] IfFalseAction=[!SetOption MeasureStatus Substitute """"0":'NO BATTERY',"1":'Charging',"2":'CRITICAL',"3":'Low',"4":'Above Low'"""][!UpdateMeasure "MeasureStatus"]
Code: Select all
[MeasurePercent] ... IfCondition=(#CURRENTSECTION#=100) IfTrueAction=[!HideMeter "MeterBatteryBar1"][!ShowMeter "MeterBatteryBar2"][!SetOption MeasureStatus Substitute """"0":'NO BATTERY',"1":'Charged',"2":'CRITICAL',"3":'Low',"4":'Above Low'"""][!UpdateMeasure "MeasureStatus"] IfFalseAction=[!ShowMeter "MeterBatteryBar1"][!HideMeter "MeterBatteryBar2"][!SetOption MeasureStatus Substitute """"0":'NO BATTERY',"1":'Charging',"2":'CRITICAL',"3":'Low',"4":'Above Low'"""][!UpdateMeasure "MeasureStatus"]
You have two Update options: first in the [Variables] section of the skin (this is useless, the Update option doesn't belong to this section, but to [Rainmeter]) and the second one in the [Rainmeter] section of the Options.inc file (@Resources folder). Although isn't a common thing to use a such section in an included file, it seems nor banned isn't. Here you've used Update=1000. Reduce this value. For me Update=100 seems a good value.
But now there is a problem: Update=100 means 10 updates per second (as Update is given in milliseconds). Doesn't worth to update so often the skin. To avoid this inconvenience, add a DefaultUpdateDivider=10 (or make in a way to have the product of Update and DefaultUpdateDivider equal with 1000) to the [Rainmeter] section of the skin (or if you prefere, to the same section of the Options.inc file), along with an UpdateDivider=1 option to the [MeterBatteryBar1] meter and a same one to the [ImageNumberCalc] measure.
And what should have to happen (what should have to be shown) if the computer has no battery?Bub wrote:While ON BATTERY it shows MeterBatteryBar2
When PLUGGED AND CHARGING it shows MeterBatteryBar1
While when PLUGGED AND FULLY CHARGED it switching back to solid color MeterBatteryBar2 OR any other Meter (theoretically let say MeterBatteryBar3 with different animation)
...I guess it's not gonna power up at all So no picture will displaybalala wrote:And what should have to happen (what should have to be shown) if the computer has no battery?
But it does. I'm using my laptop this way, that's why I asked.Bub wrote:...I guess it's not gonna power up at all So no picture will display
As a matter of fact I do have laptop with no battery (empty slot) installed. Old model and battery cost twice more than laptop lol. Keeping it at my parents house to check emails and such while visiting them. To be honest with you I am a desktop guy and prefer to have solid powerful rig instead of mobility. This is for my kiddo gaming laptop and I may copy it to my since we both got same model (my first laptop ever and I am close to my 50's)balala wrote:But it does. I'm using my laptop this way, that's why I asked.
If no bar meter should have to be shown, it's ok. Working on the solution.