docs

Home All functions Categories

vuBatteryLife()

vuBatteryLife(), LONG

Description

Returns the current battery life percentage. If the PC is running on AC power, the function returns 101.

Parameters

Parameter Data Type Description
None   This function takes no parameters

Returns

Example

MESSAGE('Battery Life Remaining = ' & vuBatteryLife() & '%')

Notes

Place this function in your Windows timer loop for real-time monitoring of system power (see sample programs supplied).

Home All functions Categories