AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

BatteryDeley: Low laptop battery alert

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
deleyd



Joined: 08 Mar 2008
Posts: 50
Location: Santa Barbara

PostPosted: Fri Feb 06, 2009 5:40 am    Post subject: BatteryDeley: Low laptop battery alert Reply with quote

BatteryDeley version 1.1 (12/31/2009)

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 22%, 16%, and 12%. 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.


(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.autohotkey.net/~deleyd/batterydeley/batterydeley.zip

New in version 1.1 (12/31/2009):
  • Alerts when battery becomes fully charged.
  • Displays battery charge percentage in pop-up when hovering mouse over tray icon


(Also see the PowerCircle battery monitor, which is another free program at http://powercircle.aldwin.us/ and also at http://www.donationcoder.com/Forums/bb/index.php?topic=16404.0)


—David Deley
http://members.cox.net/deleyd/


Last edited by deleyd on Thu Dec 31, 2009 5:46 pm; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website
menaphus



Joined: 28 Nov 2008
Posts: 99
Location: United Kingdom

PostPosted: Fri Feb 06, 2009 2:44 pm    Post subject: hmm Reply with quote

never had this problem with WINDOWS XP Laughing
looks like a good program though nice one Very Happy
_________________
Adam
contact at: adamf93@gmail.com
Back to top
View user's profile Send private message Send e-mail
rmittal



Joined: 07 Nov 2006
Posts: 2

PostPosted: Tue Feb 24, 2009 11:18 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
Vavo
Guest





PostPosted: Wed Mar 11, 2009 1:04 pm    Post subject: Reply with quote

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.
Back to top
deleyd



Joined: 08 Mar 2008
Posts: 50
Location: Santa Barbara

PostPosted: Wed Mar 11, 2009 4:06 pm    Post subject: Reply with quote

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:
Back to top
View user's profile Send private message Visit poster's website
deleyd



Joined: 08 Mar 2008
Posts: 50
Location: Santa Barbara

PostPosted: Thu Dec 31, 2009 6:43 pm    Post subject: Reply with quote

Version 1.1
  • Alerts when battery becomes fully charged (optional).
  • Displays battery charge percentage in pop-up when hovering mouse over tray icon

To prevent battery fully charged alert, edit BatteryDeley.ini and set
Code:
FULLms=0

If file BatteryDeley.ini doesn't exist it will be created when program is run.)
_________________
http://www.autohotkey.net/~deleyd/xprxmp/autohotkey_expression_examples.htm
Back to top
View user's profile Send private message Visit poster's website
rmittal



Joined: 07 Nov 2006
Posts: 2

PostPosted: Fri Jan 01, 2010 5:54 am    Post subject: Reply with quote

I am unable to download version 1.1.
Clicking on the link on the first post gives error 404.
Back to top
View user's profile Send private message
deleyd



Joined: 08 Mar 2008
Posts: 50
Location: Santa Barbara

PostPosted: Fri Jan 01, 2010 10:26 pm    Post subject: Reply with quote

OK got that download problem fixed and released version 1.2 with a minor bugfix.
_________________
http://www.autohotkey.net/~deleyd/xprxmp/autohotkey_expression_examples.htm
Back to top
View user's profile Send private message Visit poster's website
arsan



Joined: 02 Jan 2010
Posts: 27

PostPosted: Mon Jan 11, 2010 2:52 pm    Post subject: Reply with quote

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.voxeo.com/library/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.voxeo.com/library/audio/prompts/numbers/index.jsp

Also download the .wav audio sound file for PERCENT from:
http://evolution.voxeo.com/library/audio/prompts/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. Very Happy

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

SoundPlay, %A_WinDir%\media\notify.wav, 1
SoundPlay, 90.wav, 1
SoundPlay, PERCENT.wav, 1
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group