Upcoming Ahk2Exe changes

Community news and information about new or upcoming versions of AutoHotkey
User avatar
joedf
Posts: 8940
Joined: 29 Sep 2013, 17:08
Location: Canada
Contact:

Re: Upcoming Ahk2Exe changes

09 Apr 2019, 20:05

I don’t disagree with what is being said, but this is getting a little off topic. :p

Okay, so I think I’ll contact fincs and see what he thinks. Then perhaps, I’ll proceed to fork it under ahkscript/ or autohotkey/ :+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]
TAC109
Posts: 1098
Joined: 02 Oct 2013, 19:41
Location: New Zealand

Re: Upcoming Ahk2Exe changes

09 Apr 2019, 22:43

The current source is under Lexikos at present. So you don’t want me to look at merging these changes?
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

10 Apr 2019, 00:32

@TAC109
Oh you're right! I see you and lexikos have made some changes, great work on the built-in var support!
Go ahead about merging it, it's been a while since I've touched the code. :+1: :mrgreen:
Also, there might be some pull requests that could be merged, what do you think? :think:
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: 1098
Joined: 02 Oct 2013, 19:41
Location: New Zealand

Re: Upcoming Ahk2Exe changes

10 Apr 2019, 01:12

joedf wrote:
10 Apr 2019, 00:32
...
Also, there might be some pull requests that could be merged, what do you think?
I’ll have my hands full merging the special parameter code! (and learning Git!)
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: 1098
Joined: 02 Oct 2013, 19:41
Location: New Zealand

Re: Upcoming Ahk2Exe changes

22 Apr 2019, 00:29

@Lexicos I’m looking at updating Ahk2Exe and I see that you have the latest version of the Ahk2Exe Master branch, while fincs has the most up to date of the Edge branch. It would simplify matters for me if you could update your Edge branch to that of fincs. (Sorry, I’m a git newbie so I don’t know if I could achieve this myself.)
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

22 Apr 2019, 01:33

You can fork one of the two, then make a pull request directly on github. It should merge. if not, you may get have to manually resolve the conflicts...
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: 9553
Joined: 30 Sep 2013, 04:07
Contact:

Re: Upcoming Ahk2Exe changes

22 Apr 2019, 01:58

@TAC109 It was up to date locally. git push does not push secondary branches by default. I've pushed it out.

Also, it's no good mentioning Lexicos. He only logs in once every few years.
TAC109
Posts: 1098
Joined: 02 Oct 2013, 19:41
Location: New Zealand

Re: Upcoming Ahk2Exe changes

22 Apr 2019, 02:11

lexikos wrote:
22 Apr 2019, 01:58
...
Also, it's no good mentioning Lexicos. He only logs in once every few years.
Apologies! And thanks.
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

22 Apr 2019, 09:07

:roll: ahahaha
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]
Peter2
Posts: 325
Joined: 21 Sep 2014, 14:38
Location: CH

Re: Upcoming Ahk2Exe changes

23 Apr 2019, 10:24

For me as beginner I'm confused about the current state of the AHK2exe. To compile it in one sentence:

When I want to use the directives which are described in the first posting - which version should I use?
And will there be disadvantages for my (really simple) scripts?

Peter
Peter (AHK Beginner) / Win 10 x64, AHK Version v1.1.33
User avatar
joedf
Posts: 8940
Joined: 29 Sep 2013, 17:08
Location: Canada
Contact:

Re: Upcoming Ahk2Exe changes

23 Apr 2019, 10:29

Simply use the version that is accompanied with your current AHK installation. This is for a new version that is still in development.
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: 2177
Joined: 10 Feb 2014, 20:00
Location: U.S. Central Time Zone

Re: Upcoming Ahk2Exe changes

23 Apr 2019, 11:37

Hi Peter,
Peter2 wrote:When I want to use the directives which are described in the first posting - which version should I use?
I think that joedf misunderstood your question. You do not want to "use the version that is accompanied with your current AHK installation." In order to use those directives, you want to use the version at the link in the first post of this thread:

http://fincs.ahk4.net/files/NewAhk2Exe-preview2a.zip
Peter2 wrote:And will there be disadvantages for my (really simple) scripts?
Probably not. lexikos said, "Some newer features require compiler support and therefore won't work - e.g. #Include variables." So, it's unlikely that your "really simple" scripts will be affected. Then tmplinshi said, "I've been using it for years without any problems."

Regards, Joe
Peter2
Posts: 325
Joined: 21 Sep 2014, 14:38
Location: CH

Re: Upcoming Ahk2Exe changes

23 Apr 2019, 11:42

OK, thanks to joedf and joevinograd.
Peter (AHK Beginner) / Win 10 x64, AHK Version v1.1.33
User avatar
JoeWinograd
Posts: 2177
Joined: 10 Feb 2014, 20:00
Location: U.S. Central Time Zone

Re: Upcoming Ahk2Exe changes

23 Apr 2019, 13:09

Hi guest3456,
Thanks for the tips on Git!
guest3456 wrote:google "version control" and learn about why its so essential.
Don't need to google it to know that. :)
guest3456 wrote:have you ever fixed a bug before, only to later realize that you've now broken something else
Yep!
guest3456 wrote:but the old code is gone and you can no longer restore it to figure out the old functionality?
Nope! First, I save many copies along the way with different file names, especially before I begin to code an enhancement or use a language feature or tool that I haven't used before. I just checked my abandoned-deprecated-old folder of my current AHK effort and it has 26 files in it with "before" in the file name, such as TrayLaunch-before reorder submenu.ahk.

Second, I built a number of AHK scripts that help with dev, such as a script called Freeze.ahk that copies all relevant files from a release (AHK source, NSIS source, installer, Release Notes, User Guide, etc.) to a Freeze folder (with, of course, appropriate version numbers on the files).
guest3456 wrote:have you ever wanted to try to add 2 new features simultaneously without breaking each?
Yes, and the mechanisms mentioned above work fine for it.
guest3456 wrote: etc etc. there is a reason everyone is on github.
I'm sure you're right that all of my methods are replaceable with Git, but I'm pleased with the way things are now. Regards, Joe
User avatar
joedf
Posts: 8940
Joined: 29 Sep 2013, 17:08
Location: Canada
Contact:

Re: Upcoming Ahk2Exe changes

23 Apr 2019, 16:48

@JoeWinograd whoops! My bad. 😬 thanks Joe!
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: 1098
Joined: 02 Oct 2013, 19:41
Location: New Zealand

Re: Upcoming Ahk2Exe changes

03 Jun 2019, 23:28

I have merged the changes made on the Master branch of Ahk2Exe, to this enhanced version.

This post gives more details, including the new download link.

I suggest that further replies to this thread be made there.

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
TheArkive
Posts: 1027
Joined: 05 Aug 2016, 08:06
Location: The Construct
Contact:

Re: Upcoming Ahk2Exe changes

21 Jun 2020, 11:13

Just wanted to report...

I tried the new Ahk2Exe. So far working good, only 1 error message.

It seems when I place Ahk2Exe in a "compiler" folder with AutoHotkey.exe (AHK v2-a112) in the root of the dir above, I get an error as it tries to create AutoHotkeySC.bin.

The error:

Code: Select all

---------------------------
___temp.ahk
---------------------------
Error at line 1.

Line Text: % (A_IsUnicode=1) << 8 | (A_PtrSize=8) << 9)
Error: Missing ending "%"

The program will exit.
---------------------------
OK   
---------------------------
Edit: If i put it in pretty much any other folder, no error, and AutoHotkeySC.bin is created without a problem.
lexikos
Posts: 9553
Joined: 30 Sep 2013, 04:07
Contact:

Re: Upcoming Ahk2Exe changes

21 Jun 2020, 16:40

it tries to create AutoHotkeySC.bin
I was thinking that should be removed. There's no reason to have the "default bin"; just determine a default and pre-select it in the DDL.

The error is due to the line of code (shown in the error message) that it passes to AutoHotkey.exe to determine what type of binary it is. I'm pretty sure it could be replaced with AHKType().
TAC109
Posts: 1098
Joined: 02 Oct 2013, 19:41
Location: New Zealand

Re: Upcoming Ahk2Exe changes

21 Jun 2020, 17:58

@lexikos
I see you’re in the process of making other changes to Ahk2Exe. Do you want me to look at this one?
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: 9553
Joined: 30 Sep 2013, 04:07
Contact:

Re: Upcoming Ahk2Exe changes

21 Jun 2020, 21:18

Yes, please. I wasn't planning to make any further changes myself.

Return to “Announcements”

Who is online

Users browsing this forum: No registered users and 30 guests