User Tools

Site Tools


discovering_20the_20system_20power_20status

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

discovering_20the_20system_20power_20status [2018/03/31 13:19]
127.0.0.1 external edit
discovering_20the_20system_20power_20status [2018/04/15 10:19] (current)
richardrussell Added syntax highlighting
Line 1: Line 1:
 =====Discovering the system power status===== =====Discovering the system power status=====
  
-//by Richard Russell, October 2011//\\ \\  The code listed below reports the current system power status, including whether the PC is operating from batteries or from the mains, the current battery status and the remaining battery life (if appropriate).\\ +//by Richard Russell, October 2011//\\ \\  The code listed below reports the current system power status, including whether the PC is operating from batteries or from the mains, the current battery status and the remaining battery life (if appropriate). 
 + 
 +<code bb4w>
         DIM sps{ACLineStatus&,​ BatteryFlag&,​ BatteryLifePercent&,​ Reserved1&,​ \         DIM sps{ACLineStatus&,​ BatteryFlag&,​ BatteryLifePercent&,​ Reserved1&,​ \
         \       ​BatteryLifeTime%,​ BatteryFullLifeTime%}         \       ​BatteryLifeTime%,​ BatteryFullLifeTime%}
Line 25: Line 27:
           \     ​sps.BatteryFullLifeTime% DIV 60 " minutes"​           \     ​sps.BatteryFullLifeTime% DIV 60 " minutes"​
         ENDIF         ENDIF
 +</​code>​
discovering_20the_20system_20power_20status.txt · Last modified: 2018/04/15 10:19 by richardrussell