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

Next revision
Previous revision
discovering_20the_20system_20power_20status [2018/03/31 13:19] – external edit 127.0.0.1discovering_20the_20system_20power_20status [2024/01/05 00:22] (current) – external edit 127.0.0.1
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.1522502356.txt.gz · Last modified: 2024/01/05 00:18 (external edit)