How to compile?

Post AHK_H specific scripts & libraries and discuss the usage and development of HotKeyIt's fork/branch
think
Posts: 54
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
swagfag
Posts: 3005
Joined: 11 Jan 2017, 17:59

Re: How to compile?

12 Jan 2019, 20:17

i cant compile v2 x64. if u could do a dumbed down step by step writeup of how to do it, thatd be great
Last edited by swagfag on 18 Mar 2019, 03:40, edited 1 time in total.
HotKeyIt
Posts: 1877
Joined: 29 Sep 2013, 18:35
Contact:

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`""
User avatar
Arkan
Posts: 22
Joined: 27 Nov 2018, 03:12

Re: How to compile?

18 Mar 2019, 02:05

I tried to use a simple script, but I could not compile, maybe someone else has some ways?
HotKeyIt
Posts: 1877
Joined: 29 Sep 2013, 18:35
Contact:

Re: How to compile?

18 Mar 2019, 16:05

What exactly did you try? Did you use correct compiler? Did you get any error message?

Return to “AutoHotkey_H”

Who is online

Users browsing this forum: No registered users and 4 guests