Providing Free and Editor Tested Software Downloads
< HOME | TUTORIALS | GEEK-CADE| WEB TOOLS | YOUTUBE | NEWSLETTER | DEALS! | FORUMS | >

MajorGeeks.com - Major tweaks for Major Geeks.

Software Categories

All In One Tweaks
Android
Antivirus & Malware
Appearance
Back Up
Browsers
CD\DVD\Blu-Ray
Covert Ops
Drivers
Drives (SSD, HDD, USB)
Games
Graphics & Photos
Internet Tools
Linux Distros
MajorGeeks Windows Tweaks
Multimedia
Networking
Office & Productivity
System Tools

Other news

· How To and Tutorials
· Life Hacks and Reviews
· Way Off Base
· MajorGeeks Deals
· News
· Off Base
· Reviews




spread the word

· YouTube
· Facebook
· Instagram
· Twitter
· Pintrest
· RSS/XML Feeds
· News Blur
· Yahoo
· Symbaloo

about

· Top Freeware Picks
· Malware Removal
· Geektionary
· Useful Links
· About Us
· Copyright
· Privacy
· Terms of Service
· How to Uninstall

top downloads

1. GS Auto Clicker
2. Macrium Reflect FREE Edition
3. Smart Defrag
4. K-Lite Mega Codec Pack
5. Visual C++ Runtime Installer (All-In-One)
6. Visual C++ Redistributable Runtimes AIO Repack
7. MusicBee
8. McAfee Removal Tool (MCPR)
9. Sergei Strelec's WinPE
10. Rufus
More >>

top reads

Star How to Fix Shallow Paint Layer Depth in Bambu Studio

Star Fastest Payout Online Casino USA (2025) | Real Money Wins

Star Aviator Betting Game Secrets: Unlock 97% RTP & Triple Your Wins

Star Windows Recall: What It Is, Why Hackers Will Love It, and How to Stay Safe

Star Star Trek Fleet Command Promo Codes: Redeem Codes for Free Shards, Blueprints And Resources

Star Best Apple Pay Casinos USA 2025 – Top Apple Pay Sites

Star How To Use VLC Media Player to Trim Video Clips

Star What Is the $WinREAgent Folder and Can I Delete It?

Star Swear Your Way to Better Search Results

Star How to Get a Dark Start Menu and Taskbar in Windows 10 & 11


MajorGeeks.Com » Overview» Tutorials and Video Guides » How to Create a Notification That Your Laptop Battery Is Charged on Windows 10 & 11

How to Create a Notification That Your Laptop Battery Is Charged on Windows 10 & 11

By Timothy Tibbetts

on 06/15/2023

While there are a few laptop battery notifications available, one missing is a notification that the battery is charged. Here's a neat trick to get notified when your battery is charged.

Open Notepad, then copy and paste the following into Notepad:


set oLocator = CreateObject("WbemScripting.SWbemLocator")
set oServices = oLocator.ConnectServer(".","rootwmi")
set oResults = oServices.ExecQuery("select * from batteryfullchargedcapacity")
for each oResult in oResults
iFull = oResult.FullChargedCapacity
next

while (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


Click on File, Save As. Under Save as type, click the drop-down and choose All Files (*.*). Name it anything you like but be sure the name ends with .vbs. (we used Battery Full.vbs).



Right click on the new VBS file and select Copy. Open File Explorer and enter C:\ProgramData\Microsoft\Windows\Start Menu\Programs in the search bar. Right-click inside the StartUp folder and select Paste.



Reboot for the script to start working.

Tips and tricks:

Uninstall: Open a Command Prompt and type in taskkill /im wscript.exe /f. Now delete the VBS file from Startup. Reboot.

Change Percentage: If you want a different percentage, look at the third line from the bottom and find (iPercent > 95) and change the 95 to whatever percentage you want a notification. While we're here, the 3000 and 5 minutes is how often the script will check your battery.

Change Percentage Two However, some say simply changing the 95 does not work. If it does not work for you, change the third line to read:

if bCharging and (iPercent > 40) and (flg>0) Then msgbox "Battery is at " & iPercent & "%",vbInformation, "Battery monitor"

Then add these two lines below that.

if (flg>0) and (iPercent>40) Then flg=0
if (flg


© 2000-2025 MajorGeeks.com
Powered by Contentteller® Business Edition