Skip to content

Commit 91c42ec

Browse files
⚡ [performance improvement] Bypass cmd.exe for powercfg execution in Powerplan.ahk (#39)
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
1 parent 5bd1ebb commit 91c42ec

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ahk/Powerplan.ahk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ Loop {
3333

3434
; Only run command when state changes
3535
if (fortniteIsRunning && !fortniteWasRunning) {
36-
Run(A_ComSpec . " /c " . cmdOnLaunch, , "Hide")
36+
Run(cmdOnLaunch, , "Hide")
3737
fortniteWasRunning := true
3838
}
3939
else if (!fortniteIsRunning && fortniteWasRunning) {
40-
Run(A_ComSpec . " /c " . cmdOnClose, , "Hide")
40+
Run(cmdOnClose, , "Hide")
4141
fortniteWasRunning := false
4242
}
4343

0 commit comments

Comments
 (0)