In the absence of Lexikos, I have made a small change to AHK2EXE 1.1.30.01 to fix this bug.
The new version can be downloaded from
here and should be copied to overwrite the old version.
(Default location is C:\Program Files\AutoHotkey\Compiler).
Note to Lexikos:-
The changes I made were to ScriptParser.ahk.
Replace line 20 with:-
Code: Select all
oldLineFile := DerefIncludeVars.A_LineFile ; New line
DerefIncludeVars.A_LineFile := AhkScript ; Existing line
Replace about line 164 with:-
Code: Select all
DerefIncludeVars.A_LineFile := oldLineFile ; New line
if OldWorkingDir ; Existing lines
SetWorkingDir, %OldWorkingDir%
Edit:- fixed link.
My scripts:-
XRef - Produces Cross Reference lists for scripts
ReClip - A Text Reformatting and Clip Management utility
ScriptGuard - Protects Compiled Scripts from Decompilation
I also maintain
Ahk2Exe