The following example shows that the compiler does not support all built-in variables yet.
The example requires an include file msgbox.ahk is placed in the folders C:\, the My Documents folder and the scripts folder.
The example can be run directly with autohotkey and shows three message boxes and opens WindowSpy. But when trying to compile using ahk2exe from the included compiler, compilation fails.
The preprocessor from the compiler seems to only support A_LineFile, A_ScriptDir, A_AppsData and A_AppsDataCommon
Code: Select all
#include C:\
#Include %A_MyDocuments%\msgbox.ahk
#Include %A_ScriptFullPath%\..\msgbox.ahk
#Include %A_ScriptName%\..\msgbox.ahk
#Include %A_AhkPath%\..\WindowSpy.ahk
Code: Select all
MsgBox, File %A_LineFile% Included