How to compile?

Post AHK_H specific scripts & libraries and discuss the usage and development of HotKeyIt's fork/branch
Posts: 38
Joined: 09 Feb 2014, 05:20

How to compile?

12 Jan 2019, 08:39

Hi, I recently upgraded to a new version and now my compile command doesn't work anymore - file is created with no error but doesn't run. The command below worked with the older version. Now I copied the recent AutoHotkey.exe to AutoHotkey folder and the whole Compiler folder to Compiler folder. Ahk is working ok under the new version.

What am I doing wrong?

Code: Select all

SetWorkingDir %A_ScriptDir%
SplitPath, A_AhkPath,, AhkDir
RunWait, %AhkDir%\AutoHotkey.exe "%AhkDir%\Compiler\Ahk2Exe.ahk" /in App.ahk /out App.exe /icon App.ico /bin "%AhkDir%\AutoHotkey.exe" ,, UseErrorLevel
Posts: 1794
Joined: 11 Jan 2017, 17:59

Re: How to compile?

12 Jan 2019, 20:17

i cant compile v2 x64. i u could do a dumbed down step by step writeup of how to do it, thatd be great
Posts: 1736
Joined: 29 Sep 2013, 18:35

Re: How to compile?

13 Jan 2019, 16:04

Runs fine for me, can you try a simple script like MsgBox?

Here same example for v2:

Code: Select all

SetWorkingDir A_ScriptDir
SplitPath A_AhkPath,, AhkDir
RunWait AhkDir "\AutoHotkey.exe `"" AhkDir "\Compiler\Ahk2Exe.ahk`" /in `"" A_WorkingDir "\App.ahk`" /out `"" A_WorkingDir "\App.exe`" /bin `"" AhkDir "\AutoHotkey.exe`""

Return to “AutoHotkey_H”

Who is online

Users browsing this forum: No registered users and 3 guests