Windows 10 Home to go on High Performance when an application is on. Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
TOTAL
Posts: 52
Joined: 11 Nov 2016, 13:47

Windows 10 Home to go on High Performance when an application is on.

Post by TOTAL » 11 Jan 2022, 11:24

My laptop gets hot at high performance and only one application needs anything more than Best Battery Life setting. Is it possible to have ahk change the performance setting each time the app is on - whether in the foreground or background?

Code: Select all


#if (WinActive("ahk_class AbletonVstPlugClass") or WinActive("ahk_class Ableton Live Window Class") or WinActive("ahk_class Ableton Live 10 Suite.exe")) 
{...


User avatar
mikeyww
Posts: 26883
Joined: 09 Sep 2014, 18:38

Re: Windows 10 Home to go on High Performance when an application is on.  Topic is solved

Post by mikeyww » 11 Jan 2022, 11:36

Instead of an #If directive, which works only with hotkeys & hotstrings, you could use a running Loop with WinWait followed by a Windows powercfg command.

TOTAL
Posts: 52
Joined: 11 Nov 2016, 13:47

Re: Windows 10 Home to go on High Performance when an application is on.

Post by TOTAL » 19 Jan 2022, 13:22

OK, I think I will figure out the rest, thanks a lot.

Turns out I have just one power plan on this windows home. I can create copies and change the critical settings. Better, does AHK enable doing the equivalent of dragging the horizontal fader in battery menu: better battery - better performance - best performance?

TOTAL
Posts: 52
Joined: 11 Nov 2016, 13:47

Re: Windows 10 Home to go on High Performance when an application is on.

Post by TOTAL » 19 Jan 2022, 13:44

Amazing. Adapted this: viewtopic.php?t=63414

Thank you.

Post Reply

Return to “Ask for Help (v1)”