SIMPLE_XP Posted March 4, 2007 Posted March 4, 2007 Can anyone point me in the right direction in determining if a laptop is running on a battey or not? Thanks in advance. Hero's Dawn, an RPG Adventure completely coded in AutoITwmifunctions UDF, WMI UDF
nfwu Posted March 4, 2007 Posted March 4, 2007 http://www.autoitscript.com/forum/index.php?showtopic=32319#) TwitterOut of date stuff:Scripts: Sudoku Solver | Webserver | 3D library (Pure AutoIt) | Wood's GadgetsUDFs: _WoodUniqueID() | _DialogEditIni() | _Console*() | _GetIPConfigData() | _URLEncode/Decode()
SIMPLE_XP Posted March 4, 2007 Author Posted March 4, 2007 http://www.autoitscript.com/forum/index.php?showtopic=32319#)Thanks! I am not sure why I did not see that when I searched... thanks again. Hero's Dawn, an RPG Adventure completely coded in AutoITwmifunctions UDF, WMI UDF
AutoRossIT Posted April 9, 2007 Posted April 9, 2007 Can anyone point me in the right direction in determining if a laptop is running on a battey or not? Thanks in advance.I recently needed to perform this action for an installation package I was tasked to build. I used the value of the following registry key to determine whether it was on AC or DC power. It worked for all of my instances, but may not work for yours.HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Applets\Systray" "Services"I believe this key determines if the battery indicator should appear in the System Tray. I found the DWORD value of '30' proved to be on AC power, and '31' proved to be on battery power.Good luck!
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now