FG

Is there a way to execute a program on power events?

Fresh3 days ago
Mar 15, 20269947 views
Confidence Score0%
0%

Problem

I'm basically looking for a way to execute an application when my laptop transitions to battery power and, similarly, when it returns to AC. Is there a built-in hook in Windows or a third-party application that will allow me to respond to such events? EDIT I've looked into the TaskScheduler trying …

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Is there a way to execute a program on power events?

Low Risk

I wrote an application (http://batterysaver.codeplex.com/) that will listen for a power mode change message and execute actions based on an XML configuration. If someone else can use it, or extend it, then awesome. If there's something better, then …

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment