AutoHotkey AHK language package for SublimeText including syntax highlighting, comments toggling, auto-completions, build system definitions, commands for ahkrun, ahkcompile, ahkrunpiped.
Run from Sublime Text it will show an incorrect output, different from the output of running powercfg /requests from a command prompt. Run by clicking on the .ahk file it will show the correct output.
Steps to reproduce
Run from Sublime Text it will show an incorrect output, different from the output of running
powercfg /requests
from a command prompt. Run by clicking on the .ahk file it will show the correct output.Also described in ComObjCreate("WScript.Shell").Exec("powercfg /requests") returns different output than actual command run in command prompt : AutoHotkey
Fix
Using AutoHotkeyU32.exe / AutoHotkeyA32.exe on x64 systems runs into this bug.
Changing to a 64-bit executable fixes it.
AutoHotkey.sublime-settings