Hello...
Does anyone know how to retrieve power parameters
from a computer (laptop), to calculate Battery remaining???
(I guess total voltage, current voltage, etc...)
Any help greatly appreciated. Thanks!!!
Tom.
Get Laptop Battery Meter Info
Re: Get Laptop Battery Meter Info
> Does anyone know how to retrieve power parameters from a computer
> (laptop), to calculate Battery remaining???
I don't have a laptop to test this with (it returns -1), but it should work. Also,
try replacing BatterLifePercent with BatteryLifeTime and BatteryFullLifeTime.
Can anyone confirm if it works with a laptop? Thanks!
> (laptop), to calculate Battery remaining???
I don't have a laptop to test this with (it returns -1), but it should work. Also,
try replacing BatterLifePercent with BatteryLifeTime and BatteryFullLifeTime.
Can anyone confirm if it works with a laptop? Thanks!
Code: Select all
Laptop.SYSTEM_POWER_STATUS ; Custom structure to hold value.
GetSystemPowerStatus_(Laptop) ; Load structure with the value.
Debug Laptop\BatteryLifePercent ; Show relevant structure field.