Help with Ahk2Exe (AHK v2.0)

Get help with using AutoHotkey (v2 or newer) and its commands and hotkeys
esotar123
Posts: 3
Joined: 16 Jan 2021, 17:13

Help with Ahk2Exe (AHK v2.0)

Post by esotar123 » 16 Jan 2021, 19:29

Hi,

I am trying to convert this script (which should be working) to an .exe file:
https://www.autohotkey.com/boards/viewtopic.php?t=59029

1. I downloaded the latest AHK v2 .zip:
https://www.autohotkey.com/download/ahk-v2.zip

2. After extraction, I copied Ahk2Exe.exe (from my AutoHotkey v1 installation) to "/Compiler"

3. I get an syntax-error regarding the AHKv2 specific "integer" parameter, despite the v2.0.0.0 binary:
https i.imgur.com /Kd5kdHV.jpg Broken Link for safety

Thank you very much for your help.
Last edited by esotar123 on 16 Jan 2021, 19:37, edited 1 time in total.

gregster
Posts: 9002
Joined: 30 Sep 2013, 06:48

Re: Help with Ahk2Exe (AHK v2.0)

Post by gregster » 16 Jan 2021, 19:36

The v2 alpha versions are not necessarily compatible. Perhaps try a v2 version that was up-to-date at the time.

TAC109
Posts: 1111
Joined: 02 Oct 2013, 19:41
Location: New Zealand

Re: Help with Ahk2Exe (AHK v2.0)

Post by TAC109 » 16 Jan 2021, 19:39

The latest beta of Ahk2Exe may fix this problem. You can download it from here.
My scripts:-
XRef - Produces Cross Reference lists for scripts
ReClip - A Text Reformatting and Clip Management utility
ScriptGuard - Protects Compiled Scripts from Decompilation
I also maintain Ahk2Exe

esotar123
Posts: 3
Joined: 16 Jan 2021, 17:13

Re: Help with Ahk2Exe (AHK v2.0)

Post by esotar123 » 16 Jan 2021, 19:53

gregster wrote:
16 Jan 2021, 19:36
The v2 alpha versions are not necessarily compatible. Perhaps try a v2 version that was up-to-date at the time.
Thank you very much, but unfortunately this did not fix it.

esotar123
Posts: 3
Joined: 16 Jan 2021, 17:13

Re: Help with Ahk2Exe (AHK v2.0)

Post by esotar123 » 16 Jan 2021, 19:54

TAC109 wrote:
16 Jan 2021, 19:39
The latest beta of Ahk2Exe may fix this problem. You can download it from here.
Thank you very much.

I get a different error now:
"Call to nonexistent function"
https i.imgur.com /Ok4TiaO.jpg Broken Link for safety

(sorry for bothering, I am just curious that I can't get a script to run which has worked fine for other users)

TAC109
Posts: 1111
Joined: 02 Oct 2013, 19:41
Location: New Zealand

Re: Help with Ahk2Exe (AHK v2.0)

Post by TAC109 » 16 Jan 2021, 20:46

It would appear that the version of Class_RitchEdit.ahk you have downloaded is not compatible with the version of AutoHotkey v2 you are using. Does your textcompare.ahk script run correctly without compiling?

AutoHotkey v2 is a Beta product, and many script-breaking changes have been made to it over the time of its development.
My scripts:-
XRef - Produces Cross Reference lists for scripts
ReClip - A Text Reformatting and Clip Management utility
ScriptGuard - Protects Compiled Scripts from Decompilation
I also maintain Ahk2Exe

Post Reply

Return to “Ask for Help (v2)”