Home | Blog | Software | Reviews and Features | Forum | Help | Donate | About us
topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • September 02, 2015, 01:30:13 AM
  • Proudly celebrating 10 years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: [idea/request] Run program when laptop goes on/off battery  (Read 6145 times)

fleon

  • Supporting Member
  • Joined in 2008
  • **
  • default avatar
  • Posts: 8
    • View Profile
    • Donate to Member
[idea/request] Run program when laptop goes on/off battery
« 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...

fleon

  • Supporting Member
  • Joined in 2008
  • **
  • default avatar
  • Posts: 8
    • View Profile
    • Donate to Member
Re: [idea/request] Run program when laptop goes on/off battery
« 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!

jgpaiva

  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 4,727
    • View Profile
    • Read more about this member.
    • Donate to Member
Re: [idea/request] Run program when laptop goes on/off battery
« Reply #2 on: September 01, 2008, 05:23:49 AM »
 :Thmbsup:
Just crosslinking with the batteryrun discussion thread: http://www.donationc...dex.php?topic=8631.0
And download it here ;)

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,218
    • View Profile
    • Coding Snacks by Lanux128
    • Donate to Member
Re: [idea/request] Run program when laptop goes on/off battery
« Reply #3 on: September 01, 2008, 06:59:04 AM »
also this thread here will be useful with an usage example. :)


fleon

  • Supporting Member
  • Joined in 2008
  • **
  • default avatar
  • Posts: 8
    • View Profile
    • Donate to Member
Re: [idea/request] Run program when laptop goes on/off battery
« 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 :)

fcoury

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 2
    • View Profile
    • Read more about this member.
    • Donate to Member
Re: [idea/request] Run program when laptop goes on/off battery
« 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 :)

Care to share?  :)

Catalin

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 18
    • View Profile
    • Donate to Member
Re: [idea/request] Run program when laptop goes on/off battery
« 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.n...cts/windowspowereve/ ... also described at http://cool-stuff-or...d-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 :)