Page 1 of 1

compiler broken?

Posted: 07 Mar 2018, 15:00
by guest3456
downloaded ahk v1 dll release
trying to use AHk2exe to compile anything
have tried with .bin or .exe as base file
tried with encryption or not

none of the compiled exe's run. just silent exit



if i try to use ahk v2 release
ahk2exe will run using v2 executable, but clicking 'compile' button will fail with an #noEnv synxtax error

Re: compiler broken?

Posted: 07 Mar 2018, 18:49
by HotKeyIt
Just tested and all works fine for me, are you on Win10?
Did you try simple script and have you extracted the zip to separate folder + copied AutoHotkey.exe to Compiler + rename to Ahk2Exe.exe?

For v2 you are trying to compile a file that has #NoEnv in it, this directive is not available in v2!

Re: compiler broken?

Posted: 08 Mar 2018, 01:14
by guest3456
sorry, the #noEnv error was my mistake.

i am on win10. just copied AutoHotkey.exe to the compiler folder, and drag/dropped the ahk2exe.ahk script onto it. renaming it works too.

the script is simple: msgbox, helloworld or msgbox "helloworld"

but iwth both v1 and v2, the compiled output script is just failing silently and not displaying any msgbox

Re: compiler broken?

Posted: 08 Mar 2018, 18:00
by HotKeyIt
That should be fixed now, tanks for reporting.

Re: compiler broken?

Posted: 08 Mar 2018, 20:55
by guest3456
HotKeyIt wrote:That should be fixed now, tanks for reporting.
only tested v1, but it looks like its fixed

however, does the /E switch still work for compiled scripts to execute a different script? it didn't look like it worked for me

Re: compiler broken?

Posted: 08 Mar 2018, 21:09
by HotKeyIt
It does but only when compiled with AutoHotkey.exe

Re: compiler broken?

Posted: 08 Mar 2018, 21:46
by guest3456
HotKeyIt wrote:It does but only when compiled with AutoHotkey.exe
gotcha, thanks it works. i was trying to compile with .bin