Can't compile and use ahk2exe?

Post AHK_H specific scripts & libraries and discuss the usage and development of HotKeyIt's fork/branch
whynotregister
Posts: 147
Joined: 05 Nov 2016, 22:42

Can't compile and use ahk2exe?

Post by whynotregister » 29 Sep 2021, 06:04

If try to compile by pasting the include script required for ahk2exe.ahk execution into ahk2exe and executing ahk2exe to compile the ahk2exe.ahk script and run the generated ahk2exe.exe, an "Error adding script file:"
The code that prints the message is as follows.

Code: Select all

if !DllCall("UpdateResource", "ptr", module, "ptr", 10, "str", "E4847ED08866458F8DD35F94B37001C0"
	          , "ushort", 0x409, "ptr", &BinScriptBody, "uint", BinScriptBody_Len, "uint")
		goto _FailEnd
_FailEnd:
	gosub _EndUpdateResource
	Util_Error("Error adding script file:`n`n" AhkFile, 0x43)
Is there any good way to solve this?

HotKeyIt
Posts: 2364
Joined: 29 Sep 2013, 18:35
Contact:

Re: Can't compile and use ahk2exe?

Post by HotKeyIt » 29 Sep 2021, 09:03

Either you start the compiler with a different exe name (e.g. rename Ahk2Exe_.exe + Ahk2Exe_.ahk).
Or you select a different destination exe (e.g. Ahk2Exe_.exe) and rename it afterwards.

whynotregister
Posts: 147
Joined: 05 Nov 2016, 22:42

Re: Can't compile and use ahk2exe?

Post by whynotregister » 29 Sep 2021, 09:15

HotKeyIt wrote:
29 Sep 2021, 09:03
Either you start the compiler with a different exe name (e.g. rename Ahk2Exe_.exe + Ahk2Exe_.ahk).
Or you select a different destination exe (e.g. Ahk2Exe_.exe) and rename it afterwards.

I tried it
but still get the same error.

1. Ahk2Exe_.ahk Compile (RecomAhk2Exe.exe)
Image

2. Try RecomAhk2Exe Compiling
Image

HotKeyIt
Posts: 2364
Joined: 29 Sep 2013, 18:35
Contact:

Re: Can't compile and use ahk2exe?

Post by HotKeyIt » 29 Sep 2021, 09:24

Just tried it with fresh download using Win32w\AutoHotkey.exe as Base File (.bin) and all is working fine.
Which Base File did you use?

whynotregister
Posts: 147
Joined: 05 Nov 2016, 22:42

Re: Can't compile and use ahk2exe?

Post by whynotregister » 29 Sep 2021, 09:28

HotKeyIt wrote:
29 Sep 2021, 09:24
Just tried it with fresh download using Win32w\AutoHotkey.exe as Base File (.bin) and all is working fine.
Which Base File did you use?
I used the latest version of ahk2dll win32w.
Have you checked the encrypt option and use?

HotKeyIt
Posts: 2364
Joined: 29 Sep 2013, 18:35
Contact:

Re: Can't compile and use ahk2exe?

Post by HotKeyIt » 29 Sep 2021, 10:22

Yes, I also tested with encrypt option but I tested v1 version.
For v2 version I am currently merging v2.beta, please wait until it is released, I will make sure the compiler works too.

whynotregister
Posts: 147
Joined: 05 Nov 2016, 22:42

Re: Can't compile and use ahk2exe?

Post by whynotregister » 29 Sep 2021, 10:27

HotKeyIt wrote:
29 Sep 2021, 10:22
Yes, I also tested with encrypt option but I tested v1 version.
For v2 version I am currently merging v2.beta, please wait until it is released, I will make sure the compiler works too.
v1 is correct.
Did you compile the ahk2exe.ahk script and compile another ahk with that file?


whynotregister
Posts: 147
Joined: 05 Nov 2016, 22:42

Re: Can't compile and use ahk2exe?

Post by whynotregister » 29 Sep 2021, 10:42

HotKeyIt wrote:
29 Sep 2021, 10:28
Correct.
checked your pm and sent you a reply. :dance:

Post Reply

Return to “AutoHotkey_H”