Skip to content

fix: remove double quotes from #Include directives for ahk2exe compatibility#2

Open
Nigh wants to merge 2 commits into
owhs:mainfrom
Nigh:fix/remove-include-quotes
Open

fix: remove double quotes from #Include directives for ahk2exe compatibility#2
Nigh wants to merge 2 commits into
owhs:mainfrom
Nigh:fix/remove-include-quotes

Conversation

@Nigh

@Nigh Nigh commented Jun 14, 2026

Copy link
Copy Markdown

Summary

  • Remove double quotes from all #Include directives across 6 files in lib/
  • Fixes ahk2exe compilation failure caused by quoted include paths

Why This Is Needed

ahk2exe (the AHK v2 compiler) and the AHK interpreter handle #Include path quotes differently:

  • AHK interpreter (AutoHotkey64.exe): #Include "file.ahk" and #Include file.ahk are equivalent — the interpreter strips quotes automatically.
  • ahk2exe compiler: #Include "file.ahk" treats the " characters as literal parts of the file path and does NOT strip them.

This behavioral difference causes the compiler to construct invalid paths like:

D:\project\setup\"..\lib\ahk-xaml\XAML_GUI.ahk"

Resulting in a fatal error:

Ahk2Exe Error
#include file cannot be opened.

Changes

6 files, 17 lines — all the same mechanical change: remove surrounding " from #Include paths.

File Lines Changed
lib/AXML.ahk 1
lib/XAML_GUI.ahk 4
lib/XAML_Dialog.ahk 2
lib/XAML_Components.ahk 3
lib/XAML_DevTools.ahk 3
lib/XAML_Adv_Components.ahk 4

The *i (optional include) prefix is preserved — only the quotes are removed.

No logic, functions, classes, or variables were changed.

Nigh and others added 2 commits June 14, 2026 14:36
fix: remove double quotes from #Include directives for ahk2exe compatibility
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant