HotKeyIt / ahkdll-v2-release

AutoHotkey_H v2 release
http://hotkeyit.github.io/v2/
GNU General Public License v2.0
63 stars 15 forks source link

Ahk2Exe CLI Error: Word Reserved for Future Use #17

Closed ghost closed 3 years ago

ghost commented 3 years ago
Error at line 4
Line Text: in
Error: Word reserved for future use
; Code Executed (CLI does not work as expected either)
RunWait "D:\ahkdll-v2-release\Compiler\Ahk2Exe.exe" /in "D:\ahkdll-v2-release\src\exampleOne.ahk" /out "D:\ahkdll-v2-release\src\compiled\exampleOne.exe" /bin "D:\ahkdll-v2-release\x64w\AutoHotkey.exe" /compress 1

Test Branch: https://github.com/Deafwave/ahkdll-v2-release/blob/testCompiler/src

HotKeyIt commented 3 years ago

Try that

RunWait "`"D:\ahkdll-v2-release\Compiler\Ahk2Exe.exe`" `"D:\ahkdll-v2-release\Compiler\Ahk2Exe.ahk`" /in `"D:\ahkdll-v2-release\src\exampleOne.ahk`" /out `"D:\ahkdll-v2-release\src\compiled\exampleOne.exe`" /bin `"D:\ahkdll-v2-release\x64w\AutoHotkey.exe`" /compress 1"
ghost commented 3 years ago

That appears to have resolved my issue. I didn't think about escaping the quotation marks since this is how the tool dumped the data in File -> Save As.

Thanks!