Upcoming Ahk2Exe Changes (2024)

Post your working scripts, libraries and tools for AHK v1.1 and older
TAC109
Posts: 1100
Joined: 02 Oct 2013, 19:41
Location: New Zealand

Re: Upcoming Ahk2Exe Changes (2019)

29 Sep 2019, 03:43

@JoeWinograd
Thanks Joe.
Btw the title bar legend contains the version of AutoHotkey that Ahk2Exe was complied with (still the previous version) :)
Cheers
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
User avatar
JoeWinograd
Posts: 2185
Joined: 10 Feb 2014, 20:00
Location: U.S. Central Time Zone

Re: Upcoming Ahk2Exe Changes (2019)

29 Sep 2019, 09:50

Ah, got it...and I can see that you used some of your own Directives. :) Nice!
TAC109
Posts: 1100
Joined: 02 Oct 2013, 19:41
Location: New Zealand

Re: Upcoming Ahk2Exe Changes (2019)

29 Sep 2019, 16:46

Yes, an interesting side effect is that Ahk2Exe must be compiled by itself!
(At least until it becomes included in the main downloads.)
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
User avatar
JoeWinograd
Posts: 2185
Joined: 10 Feb 2014, 20:00
Location: U.S. Central Time Zone

Re: Upcoming Ahk2Exe Changes (2019)

29 Sep 2019, 16:55

until it becomes included in the main downloads
Looking forward to that...where does that effort stand?
TAC109
Posts: 1100
Joined: 02 Oct 2013, 19:41
Location: New Zealand

Re: Upcoming Ahk2Exe Changes (2019)

29 Sep 2019, 17:26

Well, I’ll let the dust settle with yesterday’s update, then if all remains quiet I’ll have a chat to @lexikos and @joedf to sort something out.
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
User avatar
JoeWinograd
Posts: 2185
Joined: 10 Feb 2014, 20:00
Location: U.S. Central Time Zone

Re: Upcoming Ahk2Exe Changes (2019)

29 Sep 2019, 17:29

Sounds good!
TAC109
Posts: 1100
Joined: 02 Oct 2013, 19:41
Location: New Zealand

Re: Upcoming Ahk2Exe Changes (2019)

07 Oct 2019, 16:55

New version available:-

Beta_7, 8 October 2019 -
  • A leading 'U_' (without quotes) is now accepted in the 'name' parameter of 'Let' and 'Obey' directives.
Last edited by TAC109 on 01 Nov 2019, 19:18, edited 1 time in total.
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
TAC109
Posts: 1100
Joined: 02 Oct 2013, 19:41
Location: New Zealand

Re: Upcoming Ahk2Exe Changes (2019)

12 Oct 2019, 18:11

@lexikos
I have no more enhancements for Ahk2Exe and it seems to be stable. I’m happy for the GitHub Edge branch of TAC109/Ahk2Exe to be included with the next version of AutoHotkey if you are ok with this. (The Compiler must be compiled with itself as it contains Compiler Directives. It will take the version of the AutoHotkey 'Unicode 32bit.bin' file it is compiled with. The GitHub Edge branch does not have the 'beta' heading information in the GUI.)

There will be work needed to update the help information and I’m happy to do my part with this. The Compiler Directives page will need to be inserted and adjusted, and the new Ahk2Exe parameters specified.

If you’re happy with this we can move ahead and get these enhancements incorporated.

@joedf
The 'official' GitHub repo will need to be updated at some stage and the Edge branch merged with Master.

Cheers
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
lexikos
Posts: 9560
Joined: 30 Sep 2013, 04:07
Contact:

Re: Upcoming Ahk2Exe Changes (2019)

12 Oct 2019, 19:56

@TAC109
The release script compiles Ahk2Exe like this:

Code: Select all

    Ahk2ExeCmd = "%A_AhkPath%" "%Ahk2ExeDir%\Ahk2Exe.ahk"
...
    git("pull origin master", Ahk2ExeDir)
    RunWait %Ahk2ExeCmd%
        /in "%Ahk2ExeDir%\Ahk2Exe.ahk"
        /out "%InstDir%\include\Compiler\Ahk2Exe.exe"
        /bin "%InstDir%\include\Compiler\Unicode 32-bit.bin"
        /icon "%A_ScriptDir%\ahk2exe.ico"
        , %Ahk2ExeDir%
I suppose that should work.

If someone updates the AutoHotkey/Ahk2Exe repo, I will just have to adjust the 'origin' remote in my local configuration.

To be frank, I'm not interested enough in compiling to do any testing or documentation. I trust that you and other users have tested it well enough. Please submit a pull request for the documentation, at your leisure. The new features should be tagged with <span class="ver">[v1.1.32.00+]</span> (or without .00). You may search for similar tags for reference if you are unsure how exactly to place it.
User avatar
joedf
Posts: 8940
Joined: 29 Sep 2013, 17:08
Location: Canada
Contact:

Re: Upcoming Ahk2Exe Changes (2019)

14 Oct 2019, 18:11

@TAC109
@lexikos
Sounds good, I will start importing over the new changes from TAC109/Ahk2Exe.

EDIT: I've resolved the merge conflicts, I had to squash and merge since the history was different because of the rebase...
Anyway, edge (now removed) has been merged into master:
https://github.com/AutoHotkey/Ahk2Exe
Image Image Image Image Image
Windows 10 x64 Professional, Intel i5-8500, NVIDIA GTX 1060 6GB, 2x16GB Kingston FURY Beast - DDR4 3200 MHz | [About Me] | [About the AHK Foundation] | [Courses on AutoHotkey]
[ASPDM - StdLib Distribution] | [Qonsole - Quake-like console emulator] | [LibCon - Autohotkey Console Library]
TAC109
Posts: 1100
Joined: 02 Oct 2013, 19:41
Location: New Zealand

Re: Upcoming Ahk2Exe Changes (2019)

14 Oct 2019, 21:31

@joedf
Is that how git is supposed to be used? Just throw everything in as one huge commit?

Edit: I merged the Edge branch to Master on my repo and I see that it also shows as one large commit.
Thanks for your work with this :thumbup:
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
User avatar
joedf
Posts: 8940
Joined: 29 Sep 2013, 17:08
Location: Canada
Contact:

Re: Upcoming Ahk2Exe Changes (2019)

15 Oct 2019, 00:36

I did it using git directly, and had issues with the rebase last time so maybe some of the history isn't 100% but merges are usually lumped into one commit, depending on what you do. Main thing is now the repo is up to date, and a big thanks to you for your hard work on this! :+1:
Image Image Image Image Image
Windows 10 x64 Professional, Intel i5-8500, NVIDIA GTX 1060 6GB, 2x16GB Kingston FURY Beast - DDR4 3200 MHz | [About Me] | [About the AHK Foundation] | [Courses on AutoHotkey]
[ASPDM - StdLib Distribution] | [Qonsole - Quake-like console emulator] | [LibCon - Autohotkey Console Library]
lexikos
Posts: 9560
Joined: 30 Sep 2013, 04:07
Contact:

Re: Upcoming Ahk2Exe Changes (2019)

15 Oct 2019, 03:40

Merges are not usually lumped into one commit - a real merge commit has multiple parent commits, and usually does not contain copies of the comments from previous commits. The history is preserved by retaining references to commits from both branches (hence multiple parents). Each line of code can be traced beyond the merge commit, to the commit that last modified it, except for lines that must be modified to resolve merge conflicts. That can sometimes tell who wrote the line, when and why (for instance, which bug fix or feature it relates to).

By contrast, a squashed merge will show all these lines were changed at the time of the merge, by whoever performed the merge, and relate to any one of dozens of comments that were squashed into the merge message.

The description for merge --squash strongly implies that what it does is not a merge; just has the same effect (on the content, obviously not the commit history).
User avatar
joedf
Posts: 8940
Joined: 29 Sep 2013, 17:08
Location: Canada
Contact:

Re: Upcoming Ahk2Exe Changes (2019)

15 Oct 2019, 07:40

Yes that's correct. :facepalm: I was thinking of PRs but then that's true... The other commits are preserved too... :/ I didn't do a normal merge... The history of both repos were out of sync, it was simpler to squash merge from where I had rebased it. :|
Essentially, the second half of TAC109's commit's were lumped into one-ish. I think I was a little confused when I was merging :oops:

I made a "manual" PR which was merged:
https://github.com/AutoHotkey/Ahk2Exe/pull/56
Image Image Image Image Image
Windows 10 x64 Professional, Intel i5-8500, NVIDIA GTX 1060 6GB, 2x16GB Kingston FURY Beast - DDR4 3200 MHz | [About Me] | [About the AHK Foundation] | [Courses on AutoHotkey]
[ASPDM - StdLib Distribution] | [Qonsole - Quake-like console emulator] | [LibCon - Autohotkey Console Library]
User avatar
JoeWinograd
Posts: 2185
Joined: 10 Feb 2014, 20:00
Location: U.S. Central Time Zone

Re: Upcoming Ahk2Exe Changes (2019)

15 Oct 2019, 12:59

Hi TAC,
I just updated to your v1.1.30.03_Beta_7 (works perfectly, btw) and noticed that the released v1.1.31.01 Ahk2Exe.exe is 866kb while yours is 357kb. I'm curious why there is such a big size difference. Thanks, Joe
TAC109
Posts: 1100
Joined: 02 Oct 2013, 19:41
Location: New Zealand

Re: Upcoming Ahk2Exe Changes (2019)

15 Oct 2019, 15:03

@JoeWinograd
The new versions I released as beta were compressed with Mpress, whereas the old version in 1.1.31.01 is uncompressed. (Thought to reduce the possibility of being flagged as a virus?)
Cheers
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
gregster
Posts: 8927
Joined: 30 Sep 2013, 06:48

Re: Upcoming Ahk2Exe Changes (2019)

15 Oct 2019, 15:08

My impression was always that compressing actually raised the likelihood of false positives (at least, back in the day), although I have no recent data to back this up.
TAC109
Posts: 1100
Joined: 02 Oct 2013, 19:41
Location: New Zealand

Re: Upcoming Ahk2Exe Changes (2019)

15 Oct 2019, 15:21

Yes, that was my point, probably expressed badly. The live version is uncompressed, possibly to avoid being flagged as a virus.
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
TAC109
Posts: 1100
Joined: 02 Oct 2013, 19:41
Location: New Zealand

Re: Upcoming Ahk2Exe Changes (2019)

15 Oct 2019, 16:37

@joedf
Joe, I’ve just compared the AutoHotkey/Ahk2Exe source with mine and found that there are essentially no differences. (There was a small difference in Ahk2Exe.ahk at around line 205, but this did not affect the logic.)
Good work!
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
User avatar
JoeWinograd
Posts: 2185
Joined: 10 Feb 2014, 20:00
Location: U.S. Central Time Zone

Re: Upcoming Ahk2Exe Changes (2019)

15 Oct 2019, 16:40

Thanks for the explanation, TAC. Regards, Joe

Return to “Scripts and Functions (v1)”

Who is online

Users browsing this forum: No registered users and 83 guests