Page 1 of 1

Get Laptop Battery Meter Info

Posted: Tue Jun 17, 2003 11:59 pm
by tkruk
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.

Re: Get Laptop Battery Meter Info

Posted: Wed Jun 18, 2003 1:18 pm
by PB
> 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!

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.

Posted: Thu Jun 19, 2003 2:55 pm
by Tranquil
Only BatteryLifePercent works fine here, all others fail with -1

cheers
Mike