Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

BatteryDeley: Low laptop battery alert


  • Please log in to reply
17 replies to this topic
deleyd
  • Members
  • 64 posts
  • Last active: Sep 27 2011 06:35 AM
  • Joined: 08 Mar 2008
BatteryDeley version 1.4 (03/30/2011)

Alerts you when your laptop battery is getting low. Also alerts you when external power is unplugged or plugged back in. Fully configurable.

By default it alerts you when your battery gets down to 90%, 80%, 70%, 60%, 50%, 40%, 30%, 20%, 10%, and 5%. You can change these numbers to anything you like, and you may add an unlimited number of alerts.

Each alert may include its own image, plus a .wav sound or other command to run. See file BatteryDeley.ini for settings (if there is no BatteryDeley.ini file, run the program and it will make one).

I got tired of having my Vista laptop die on me with no warning, so I pieced this together from various parts made by others.

Posted Image
(Thank you to ClipartConnection.com for their images. My favorite place to get icons.)

Download BatteryDeley.zip (includes AutHotKey source & Windows compiled exe)
http://www.daviddele...atterydeley.zip

New in version 1.1 (12/31/2009):[*:1fxtwg21] Alerts when battery becomes fully charged.
[*:1fxtwg21]Displays battery charge percentage in pop-up when hovering mouse over tray iconNew to version 1.2:[*:1fxtwg21] Minor bugfixNew to version 1.3 (10/26/2010):[*:1fxtwg21] Changed default percents to 90%, 80%, 70%, 60%, 50%, 40%, 30%, 20%, 10%, and 5%New to version 1.4:(03/30/2100):[*:1fxtwg21]Added ability to specify charging notifications at any percent you like instead of just notifying you only when charge reaches 100%. e.g. Now you can set it to notify you when computer is charged to 90%.
(Also see the PowerCircle battery monitor, which is another free program at <!-- m -->http://www.donationc....com/Forums/bb/ ... ic=16404.0<!-- m -->)


—David Deley
<!-- m -->http://www.daviddeley.com<!-- m -->
(09/07/2012 moved to <!-- m -->http://www.daviddeley.com<!-- m --> since autohotkey.net doesn't seem to be working)

menaphus
  • Members
  • 111 posts
  • Last active: Jan 16 2012 09:51 PM
  • Joined: 28 Nov 2008
never had this problem with WINDOWS XP :lol:
looks like a good program though nice one :D

rmittal
  • Members
  • 2 posts
  • Last active: Jan 01 2010 05:54 AM
  • Joined: 07 Nov 2006
Very nice little app.

However you could add some more functionality to it.

1. Add an alert when battery gets charged to 100%
2. Battery Delay Icon Tooltip on the system notification area could tell us the current charge percent or even better have a dynamic icon which shows the current battery percentage.

Regards,
Rajiv

Vavo
  • Guests
  • Last active:
  • Joined: --
I was looking for something like this. Actualy I need a better replacement for the regular xp tray tool. I want to use 32bit icon that will display the levels (more levels) and at the save time provide the save things like the regular tool. It is possible via powercfg tool to program this)

So either the author or maybe me..will implement this.

deleyd
  • Members
  • 64 posts
  • Last active: Sep 27 2011 06:35 AM
  • Joined: 08 Mar 2008
Go for it. I've got a backlog of other things to work on. (Apparently when you're good at everything, everything becomes your responsibility.)

There's also a few other free battery monitoring programs:[*:10qhwei2]Battery Bar
<!-- m -->http://osirisdevelop...yBar/index.html<!-- m -->
[*:10qhwei2]Power Meter
<!-- m -->http://jdsoft.eu/software/PowerMeter/<!-- m -->
[*:10qhwei2]Battery Info
<!-- m -->http://www.batteryinfo.de.vu/<!-- m -->

deleyd
  • Members
  • 64 posts
  • Last active: Sep 27 2011 06:35 AM
  • Joined: 08 Mar 2008
Version 1.1
[*:1tjpzqmy]Alerts when battery becomes fully charged (optional).
[*:1tjpzqmy]Displays battery charge percentage in pop-up when hovering mouse over tray iconTo prevent battery fully charged alert, edit BatteryDeley.ini and set
FULLms=0
If file BatteryDeley.ini doesn't exist it will be created when program is run.)

rmittal
  • Members
  • 2 posts
  • Last active: Jan 01 2010 05:54 AM
  • Joined: 07 Nov 2006
I am unable to download version 1.1.
Clicking on the link on the first post gives error 404.

deleyd
  • Members
  • 64 posts
  • Last active: Sep 27 2011 06:35 AM
  • Joined: 08 Mar 2008
OK got that download problem fixed and released version 1.2 with a minor bugfix.

arsan
  • Members
  • 105 posts
  • Last active: Jan 24 2011 06:54 AM
  • Joined: 02 Jan 2010
This is one of the most useful programs to have on any laptop. I've reviewed other battery monitors but the full configurability of this application makes this the best of its kind.

I've found a way to further enhance this already excellent program. I'm in the habit of turning the screen off when downloading large files or defragmenting while I study or sleep. In case of power failure it's very useful to run an ahk script to properly exit all programs and shutdown before the battery dies. With this program I can add fully customised periodic audio alerts so that I don't have to get up from bed and turn the screen on to check battery status from time to time.

To this end, here's a site with voice prompts released under the LGPL opensource license:
http://evolution.vox.../audio/prompts/

If you use the default percentage settings in Battery Deley, you may download the .wav audio sound files for 12, 16, 22, 50, 75, 90 from:
http://evolution.vox...mbers/index.jsp

Also download the .wav audio sound file for PERCENT from:
http://evolution.vox.../math/index.jsp

Now, for all the "alert1cmd=", "alert2cmd=" etc... you may write short AHK script using SoundPlay commands to play the sound of the appropriate number followed by the sound for "PERCENT". The audio alerts "90 percent", "75 percent", etc... played at the appropriate time will make you aware of the battery status even while the laptop screen is turned off. If you don't want to hear the sound "PERCENT", your task is even easier as you won't have to write any script at all. Just place the appropriate audio files in the program directory and write "90.wav" in front of "alert1cmd=", write "75.wav" in front of "alert2cmd=", etc... Now, you won't have to periodically interrupt whatever you are doing at the moment to know battery status. As a side note, the battery lasts much longer with the screen turned off.

Additionally, it's very useful to write for the last alert (ie, 12%) an ahk script to properly shutdown the laptop after closing properly all the running programs with a warning splash text displayed on the screen for, say, 2 minutes.

This is a great way to leave the downloads or defragmentation etc. unattended with laptop screen turned off while you sleep in peace! Battery Deley will take proper care in case of power failure.

Thank you David Deley for this useful program. :D

A sample voice alert script for 90%:
#NoTrayIcon
SetWorkingDir, %A_WorkingDir%

SoundPlay, %A_WinDir%\media\notify.wav, 1
SoundPlay, 90.wav, 1
SoundPlay, PERCENT.wav, 1


gabrielgabi78
  • Members
  • 2 posts
  • Last active: Mar 31 2011 08:25 PM
  • Joined: 28 Mar 2011
hello! please tel me if is posible to alert wen the battery is charged 90 percent not wen is at 100 percent. thanks to u ser

bruno
  • Members
  • 635 posts
  • Last active: Nov 04 2015 02:26 PM
  • Joined: 07 Mar 2011
NA

gabrielgabi78
  • Members
  • 2 posts
  • Last active: Mar 31 2011 08:25 PM
  • Joined: 28 Mar 2011
....

deleyd
  • Members
  • 64 posts
  • Last active: Sep 27 2011 06:35 AM
  • Joined: 08 Mar 2008
New to version 1.4:(03/30/2011):[*:3or4qqoo]Added ability to specify charging notifications at any percent you like instead of just notifying you only when charge reaches 100%. e.g. Now you can set it to notify you when computer is charged to 90%.
ChargeAlert1pct=100
ChargeAlert1ms=7000
ChargeAlert1img=%ImgPath%\ClipartConnection_3775464_thm.jpg
ChargeAlert1cmd=%windir%\media\notify.wav
You may add other Charge Alerts.

To disable Charge Alerts, simply remove these lines from the BatteryDeley.ini file (this file gets created when you first run BatteryDeley).

DataLife
  • Members
  • 1022 posts
  • Last active: Nov 27 2015 01:09 AM
  • Joined: 27 Apr 2008
I am using your Battery Deley and really like it. I have a loose connection on my dc power jack on my laptop and I needed to know when it was running on battery so I could jiggle the cord.

I edited the ini file to keep the running on battery notification on the screen for 60 minutes. 4 seconds was not enough as I sometimes am away from my laptop for more then 4 seconds.

You may want to take a look at this script designed to edit ini files very easily.

<!-- m -->http://www.autohotke...pic.php?t=11327<!-- m -->

Thanks
DataLife
Check out my scripts.  (MyIpChanger) (XPSnap) (SavePictureAs) All my scripts are tested on Windows 7, AutoHotkey 32 bit Ansi unless otherwise stated.

skhari
  • Members
  • 1 posts
  • Last active: Mar 21 2013 11:59 AM
  • Joined: 21 Mar 2013

Hello! 

 

I am using your battery alert for few days, so helpful. I usually forget to unplug the power after 100%. It leads me to change my complete battery. This time your app helps me great. 

 

I have one request, which i tried my self but i can't make it.

 

1. When ever the battery gets full the alert says 100% and it closes in few seconds. But I need the alert to stay until I unplug the power / or at least for 15 to 20 mins until i see. Problem is i will not stay near my laptop during some uploads and downloads. Please Help!

 

Thanks for your time and effort.

 

Cheers!

Skhari