Example:
HtmlClip.ahk contains
Code: Select all
#Include <WinClipAPI>
The following command line
Code: Select all
C:\ProgramData\TH\AutoHotkey\Compiler\Ahk2Exe.exe /in .\HtmlClip.ahk /bin "c:\ProgramData\th\AutoHotkey\Compiler\Unicode 64-bit.bin"
Code: Select all
C:\ProgramData\TH\AutoHotkey\Compiler\Ahk2Exe.exe /in .\HtmlClip.ahk /bin "c:\ProgramData\th\AutoHotkey\Compiler\Unicode 32-bit.bin"
When specifying path to AutoHotkey.exe with /ahk "c:\ProgramData\th\AutoHotkey\AutoHotkey.exe", the bug does not occur.#include file cannot be opened. Specifically: "...\HtmlClipboard\<WinClipAPI>"
Some debugging of ahk2exe reveals that when the line
Code: Select all
global StdLibDir := Util_GetFullPath(AhkPath "\..\Lib")
This is a bug. I expect it to be in c:\ProgramData\th\AutoHotkey\Lib. Since AutoHotkey.exe is c:\ProgramData\th\AutoHotkey\AutoHotkey.exe, that is where according to https://www.autohotkey.com/docs/Functions.htm#lib the standard library is.