Skip to content

Commit

Permalink
Added support for running as a compiled AHK_H exe using its /E flag
Browse files Browse the repository at this point in the history
  • Loading branch information
G33kDude committed Jun 3, 2018
1 parent ce3aa15 commit a86654a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/Utils.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a86654a

Please sign in to comment.