Is there a way I can get a notification to appear when my battery on my laptop is at 100%. I have a Surface Pro 3 with windows 8.1. I am needing to know this so i can unplug the charger when it is fully charges and so i do not wear out the battery.
2 Answers
Is there a to get a notification when a laptop battery is 100% charged?
The script below should do what you want with some appropriate tweaking.
Save below as battery.vbs and put a shortcut to "wscript path-to\battery.vbs" in your startup folder.
set oLocator = CreateObject("WbemScripting.SWbemLocator") set oServices = oLocator.ConnectServer(".","root\wmi") set oResults = oServices.ExecQuery("select * from batteryfullchargedcapacity") for each oResult in oResults iFull = oResult.FullChargedCapacity nextwhile (1) set oResults = oServices.ExecQuery("select * from batterystatus") for each oResult in oResults iRemaining = oResult.RemainingCapacity bCharging = oResult.Charging next iPercent = ((iRemaining / iFull) * 100) mod 100 if bCharging and (iPercent > 95) Then msgbox "Battery is at " & iPercent & "%",vbInformation, "Battery monitor" wscript.sleep 30000 ' 5 minutes wend
- 162,382
I think David's answer answers your question, but, I'll provide some additional information as I believe this to be relevant and useful.
Lenovo have some software which does what I think you want, called Energy Management.
The recent version allows you to
STATEMENT DESCRIPTION:
Comparing with the previous versions, Lenovo Energy Management 6.0 has been improved with the following new features:
1. Add “Battery Level” in Battery Information.
2. Redefine “Battery Health”.
(1) Change limited capacity of “Best battery heath” to 45%~50% from 80%;
(2) Detect battery status by hardware automatically;
(3) Pop up a hint box to suggest users to switch the mode;
3. Add hint when using unauthorized battery.
4. Remove the scheme of “Power Saver”.
5. Remove “Advanced Settings” of “Super Energy Saver”.
There is a review of an older version working with the Surface 2 which suggests it will work with the Surface 3
However, this post on SuperUser suggests other wise (again for Surface Pro) - How can I limit battery charging on a Surface Pro (2) or Windows 8(.1)?