diff --git a/lib/Utils.ahk b/lib/Utils.ahk index 408e00b..1c6bcab 100644 --- a/lib/Utils.ahk +++ b/lib/Utils.ahk @@ -15,6 +15,8 @@ ExecScript(Script, Params="", AhkPath="") } if !FileExist(AhkPath) throw Exception("AutoHotkey runtime not found: " AhkPath) + if (A_IsCompiled && AhkPath == A_ScriptFullPath) + AhkPath .= " /E" if FileExist(Name) { Exec := Shell.Exec(AhkPath " /CP65001 " Name " " Params)