TCC > Variables & Functions > Variables:
Comments (...)
_BATTERYLIFE returns either the number of seconds of battery life remaining, or unknown.
Help URL: http://jpsoft.com/help/index.htm?_batterylife.htm