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
- A number between 0 and 100 indicating the percentage of battery life remaining.
- A return of 101 indicates AC power.
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).