Welcome Guest.   Make a donation to an author on the site September 03, 2014, 02:13:13 AM  *

Please login or register.
Or did you miss your validation email?


Login with username and password (forgot your password?)
Why not become a lifetime supporting member of the site with a one-time donation of any amount? Your donation entitles you to a ton of additional benefits, including access to exclusive discounts and downloads, the ability to enter monthly free software drawings, and a single non-expiring license key for all of our programs.


You must sign up here before you can post and access some areas of the site. Registration is totally free and confidential.
 
Read the Practical Guide to DonationCoder.com Forum Search Features
   
   Forum Home   Thread Marks Chat! Downloads Search Login Register  
Pages: [1]   Go Down
  Reply  |  New Topic  |  Print  
Author Topic: [idea/request] Run program when laptop goes on/off battery  (Read 5628 times)
fleon
Supporting Member
**
Posts: 8

View Profile Give some DonationCredits to this forum member
« on: September 01, 2008, 04:22:15 AM »

Does anyone know of a program (or a way in windows task scheduler) to run a program when a laptop goes on battery?   And then another program when it comes off battery?  For Vista, btw.

I really would like to be able to run my script that turns off Aero when my computer goes on battery- it's a significant power savings.

I know of a program called Vista Battery Saver which does something similar, but isn't acceptable.  It turns off Aero, which is more severe than turning off transparency.  Turning off Aero is overkill and doesn't seem to make much difference on battery life, so I really just want a way to turn off transparency.  It seems the most flexible way to do this would be to have a method for running programs when the computer detects that it has changed to battery and then when it goes back on AC. 

Thanks for any ideas/etc...
Logged
fleon
Supporting Member
**
Posts: 8

View Profile Give some DonationCredits to this forum member
« Reply #1 on: September 01, 2008, 04:29:27 AM »

Never mind!  I have just discovered the most excellent tool "BatteryRun" by Skrommel.  Many thanks skrommel!  works great!
Logged
jgpaiva
Global Moderator
*****
Posts: 4,710



Artificial Idiocy

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #2 on: September 01, 2008, 05:23:49 AM »

 Thmbsup
Just crosslinking with the batteryrun discussion thread: http://www.donationcoder....um/index.php?topic=8631.0
And download it here Wink
Logged

lanux128
Global Moderator
*****
Posts: 6,088



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #3 on: September 01, 2008, 06:59:04 AM »

also this thread here will be useful with an usage example. smiley

Logged

fleon
Supporting Member
**
Posts: 8

View Profile Give some DonationCredits to this forum member
« Reply #4 on: September 04, 2008, 07:32:17 AM »

Thanks!  I have it running a batch file now to kick off a bunch of battery saving tricks smiley
Logged
fcoury
Charter Member
***
Posts: 2


see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #5 on: September 12, 2008, 02:50:30 PM »

Thanks!  I have it running a batch file now to kick off a bunch of battery saving tricks smiley

Care to share?  smiley
Logged
Catalin
Charter Member
***
Posts: 18


View Profile Give some DonationCredits to this forum member
« Reply #6 on: September 12, 2008, 03:34:31 PM »

There is also an open-source project called Windows Power Events Monitor at http://sourceforge.net/projects/windowspowereve/ ... also described at http://cool-stuff-or-not....ok-hdd-problems-with.html but you can just ignore the hdd-related part (which might work strange on certain configurations) and just use it to have your custom scripts executed on power events ... and of course you can extend the source code if you need that smiley
Logged
Pages: [1]   Go Up
  Reply  |  New Topic  |  Print  
 
Jump to:  
   Forum Home   Thread Marks Chat! Downloads Search Login Register  

DonationCoder.com | About Us
DonationCoder.com Forum | Powered by SMF
[ Page time: 0.033s | Server load: 0.16 ]