Switch power plan based on foreground app?

Started by richardm, April 08, 2025, 10:50:02 AM

Previous topic - Next topic

richardm

I see a power plan can be auto-selected based on specified processes running (or not).

I see the foreground boost function that adds priority to specified processes running in the foreground.

Is there a feature to switch power plans depending on which application has focus at any given moment?  I use a javascript-intensive website that pretty much demands a max performance power plan when interacting with the site.  A balanced plan is fine when not interacting with the site.  Thanks!

rustlemalin

You're on the right track! While there's no built-in Windows feature to switch power plans based specifically on focused applications, you can achieve this behavior with third-party tools or a custom script.
For example, using PowerPlanSwitcher or a PowerShell script combined with Task Scheduler, you can monitor the foreground window and change the power plan accordingly. A script can check the active window title or process name at intervals and apply your desired power plan using the powercfg command.