Page 1 of 3

Compile_AHK II - for those who compile! [v0.9.2 (04/19/16)]

Posted: 18 Apr 2016, 22:28
by Mercury233
Since the old Compile_AHK II thread is outdated, I decide to update it.
Thanks to denick, ladiko, flashkid, ruespe, darklight_tr.

> Downloads <

Setup:
+ Compile_AHK_Setup.exe
AHK Source code:
+ https://github.com/mercury233/compile-ahk

> Screenshots <
1.jpg
2.jpg
3.jpg
> Additional features <

+ offers all options of the AutoHotkey compiler (change icon, compression level
+ changing the version information (file properties like company name, product name, product version, file version etc.

> Additional information <

+ What is it good for?
+ How does it work?
+ Explanations of Run Before and Run After?... you can find in the old thread:
https://autohotkey.com/board/topic/1315 ... o-compile/

> Updates <

v0.9.2 (04/19/16)

Compile AHK Changes:
  • Compiled with AutoHotkey_L v1.1.23.5.
    Added zh-cn translation.
    Added back UPX support, remove mpress.
    Updated ResHacker to 4.x.
    Changed language.ini to UTF-8.
    Removed icon 6 and 7 since they don't exist in AutoHotkeySC.bin any more.
    Fixed line feeding when saving ini in script.
    Fixed tooltip.
Setup Changes:
  • Added back UPX, remove mpress.
    GoRC updated to v1.0.1.0.
    ResourceHacker updated to v4.2.5.146.

Re: Compile_AHK II - for those who compile! [v0.9.2 (04/19/16)]

Posted: 19 Apr 2016, 03:11
by SnowFlake
wow this looks really neat :D

thank you for shering

Re: Compile_AHK II - for those who compile! [v0.9.2 (04/19/16)]

Posted: 19 Apr 2016, 03:31
by aaffe
Thank you!

Posted: 19 Apr 2016, 03:37
by Best-Code-in-Use
Wow that looks pretty cool.
Thanks for your Work.
:D

Re: Compile_AHK II - for those who compile! [v0.9.2 (04/19/16)]

Posted: 03 May 2016, 16:10
by scriptors
;) good work

Re: Compile_AHK II - for those who compile! [v0.9.2 (04/19/16)]

Posted: 03 Nov 2016, 13:41
by empardopo
@Mercury233, what do you want say with Compiled with AutoHotkey_L v1.1.23.5.? How have you compiled Compile_AHKII?
Thanks in advance.

Re: Compile_AHK II - for those who compile! [v0.9.2 (04/19/16)]

Posted: 07 Nov 2016, 14:46
by MilesAhead
I don't know why I didn't notice this earlier. It's my favorite way to compile AHK scripts. Thanks for the update.

Re: Compile_AHK II - for those who compile! [v0.9.2 (04/19/16)]

Posted: 13 Apr 2017, 14:50
by p0p0v
How to work with "Resources" tab?

Cant understand how to use files which i can add to that list..

Re: Compile_AHK II - for those who compile! [v0.9.2 (04/19/16)]

Posted: 01 May 2017, 09:22
by Diamond
Thanks for this.

Since it is possible to change the window class of compiled scripts by manually editing AutoHotkeySC.bin, do you think you could add this as a feature?

Re: Compile_AHK II - for those who compile! [v0.9.2 (04/19/16)]

Posted: 03 Jan 2018, 01:35
by Haxt0r Baxtor
does not work in windows 10

Re: Compile_AHK II - for those who compile! [v0.9.2 (04/19/16)]

Posted: 03 Jan 2018, 01:53
by Haxt0r Baxtor
sorry, it does work well in windows 10, my mistake was I did not place the files in correct folder

Re: Compile_AHK II - for those who compile! [v0.9.2 (04/19/16)]

Posted: 05 Mar 2018, 11:25
by sqlcode
Mercury233,
Is there a way to make this work to bulk compile scripts? I have over 400 scripts used by various people and would like to generate bulk compile to exe.

Re: Compile_AHK II - for those who compile! [v0.9.2 (04/19/16)]

Posted: 20 Aug 2018, 06:56
by shadad1
p0p0v wrote:How to work with "Resources" tab?

Cant understand how to use files which i can add to that list..
sorry if i come late, i want to know the answer also.

where is the resource files saved ? temp folder ? i want to know so i can link my commands to it.

Re: Compile_AHK II - for those who compile! [v0.9.2 (04/19/16)]

Posted: 21 Aug 2018, 05:18
by shadad
can anyone please answer on how to use the resource tab? we attach files then how to use it on the script? where its saved? which directory so we can call it to execute from the script ?

Re: Compile_AHK II - for those who compile! [v0.9.2 (04/19/16)]

Posted: 19 Sep 2018, 14:13
by [ CJ ]
+1 for understanding of Resources tab.

I can still use FileInstall correctly, as AHK2Exe still runs, and if I don't have my included files in the right spots, it still complains.

So what then does the Resources tab do? How do we reference it ?

Re: Compile_AHK II - for those who compile! [v0.9.2 (04/19/16)]

Posted: 29 Sep 2018, 03:26
by SOTE
Now that UPX is back (https://upx.github.io/), has anybody used Compile_AHK II (https://github.com/mercury233/compile-ahk) to compile?
As this AHK compiler has the UPX option versus the MPRESS option with the standard AutoHotkey compiler.

Does anybody have an opinion on if UPX is better than MPRESS (to include about security or AV issues) or vice versa?

Re: Compile_AHK II - for those who compile! [v0.9.2 (04/19/16)]

Posted: 17 Jul 2019, 05:13
by Afona
Hi, I am new to autohotkey. Yesterday I compiled simple script (rebind of key from keyboard to mouse). I used compiler from link above. Script .exe file was detected by Avira. I run it anyway assuming its normal. After reboot I could not shutdown my PC - it went "locked" state instead. I decided to remove script file and with admin right I got message , that I cannot removed it as its used by XXXXX DESKTOP/ <computername>.
This sound suspicious. Any advice what is and what is not normal behaviour here ?

Re: Compile_AHK II - for those who compile! [v0.9.2 (04/19/16)]

Posted: 17 Jul 2019, 15:33
by AHKStudent
Afona wrote:
17 Jul 2019, 05:13
Hi, I am new to autohotkey. Yesterday I compiled simple script (rebind of key from keyboard to mouse). I used compiler from link above. Script .exe file was detected by Avira. I run it anyway assuming its normal. After reboot I could not shutdown my PC - it went "locked" state instead. I decided to remove script file and with admin right I got message , that I cannot removed it as its used by XXXXX DESKTOP/ <computername>.
This sound suspicious. Any advice what is and what is not normal behaviour here ?
look here https://www.autohotkey.com/boards/viewtopic.php?f=17&t=62266

Re: Compile_AHK II - for those who compile! [v0.9.2 (04/19/16)]

Posted: 04 Feb 2022, 12:55
by LAPIII
I downloaded + Compile_AHK_Setup.exe and when I choose an icon, I get a message that says it doesn't exist.

Re: Compile_AHK II - for those who compile! [v0.9.2 (04/19/16)]

Posted: 23 Apr 2022, 15:31
by TedStriker
Recent versions of "ahk2exe.exe" got quite an update, which broke compatibility with Compile_AHK 0.9.2.

edit: Set Script Compiler Directives (version 1.1.33+). See answer from TAC109.