TCC > Variables & Functions > Variables:
Comments (...)
_BATTERYPERCENT returns the percentage of battery charge remaining (0...100), or unknown.
Help URL: http://jpsoft.com/help/index.htm?_batterypercent.htm