AutoHotkey Community

It is currently May 27th, 2012, 12:57 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 14 posts ] 
Author Message
PostPosted: February 6th, 2009, 6:40 am 
Offline

Joined: March 8th, 2008, 11:36 am
Posts: 64
Location: Santa Barbara
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.

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.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
New to version 1.2:
  • Minor bugfix
New to version 1.3 (10/26/2010):
  • Changed default percents to 90%, 80%, 70%, 60%, 50%, 40%, 30%, 20%, 10%, and 5%
New to version 1.4:(03/30/2100):
  • 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 http://powercircle.aldwin.us/ and also at http://www.donationcoder.com/Forums/bb/ ... ic=16404.0)


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


Last edited by deleyd on March 30th, 2011, 5:44 pm, edited 3 times in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject: hmm
PostPosted: February 6th, 2009, 3:44 pm 
Offline

Joined: November 29th, 2008, 12:35 am
Posts: 111
Location: United Kingdom
never had this problem with WINDOWS XP :lol:
looks like a good program though nice one :D

_________________
Adam
http://moourl.com/8w0tx
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 24th, 2009, 12:18 pm 
Offline

Joined: November 7th, 2006, 7:10 am
Posts: 2
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 11th, 2009, 2:04 pm 
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.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: March 11th, 2009, 5:06 pm 
Offline

Joined: March 8th, 2008, 11:36 am
Posts: 64
Location: Santa Barbara
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:


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 31st, 2009, 7:43 pm 
Offline

Joined: March 8th, 2008, 11:36 am
Posts: 64
Location: Santa Barbara
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/xprxm ... amples.htm


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 1st, 2010, 6:54 am 
Offline

Joined: November 7th, 2006, 7:10 am
Posts: 2
I am unable to download version 1.1.
Clicking on the link on the first post gives error 404.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 1st, 2010, 11:26 pm 
Offline

Joined: March 8th, 2008, 11:36 am
Posts: 64
Location: Santa Barbara
OK got that download problem fixed and released version 1.2 with a minor bugfix.

_________________
http://www.autohotkey.net/~deleyd/xprxm ... amples.htm


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 11th, 2010, 3:52 pm 
Offline

Joined: January 2nd, 2010, 6:13 pm
Posts: 105
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. :D

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


Report this post
Top
 Profile  
Reply with quote  
 Post subject: with respect
PostPosted: March 28th, 2011, 10:17 am 
Offline

Joined: March 28th, 2011, 10:06 am
Posts: 2
Location: romania
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 28th, 2011, 11:57 am 
Offline

Joined: March 7th, 2011, 2:59 am
Posts: 151
NA


Last edited by bruno on March 29th, 2011, 8:37 pm, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 29th, 2011, 4:31 pm 
Offline

Joined: March 28th, 2011, 10:06 am
Posts: 2
Location: romania
....


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 30th, 2011, 5:50 pm 
Offline

Joined: March 8th, 2008, 11:36 am
Posts: 64
Location: Santa Barbara
New to version 1.4:(03/30/2011):
  • 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%.
Code:
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).

_________________
http://www.autohotkey.net/~deleyd/xprxm ... amples.htm


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 11th, 2011, 8:12 pm 
Offline

Joined: April 27th, 2008, 5:28 pm
Posts: 489
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.

http://www.autohotkey.com/forum/viewtopic.php?t=11327

Thanks
DataLife

_________________
Check out my scripts.
(MyIpChanger) (XPSnap) (SavePictureAs)

All my scripts are tested on Windows 7, AutoHotkey_L 32 bit Ansi unless otherwise stated.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 14 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Cristi® and 10 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group