Page 7 of 8

Re: Upcoming Ahk2Exe changes

Posted: 09 Apr 2019, 20:05
by joedf
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:

Re: Upcoming Ahk2Exe changes

Posted: 09 Apr 2019, 22:43
by TAC109
The current source is under Lexikos at present. So you don’t want me to look at merging these changes?

Re: Upcoming Ahk2Exe changes

Posted: 10 Apr 2019, 00:32
by joedf
@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:

Re: Upcoming Ahk2Exe changes

Posted: 10 Apr 2019, 01:12
by TAC109
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!)

Re: Upcoming Ahk2Exe changes

Posted: 22 Apr 2019, 00:29
by TAC109
@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.)

Re: Upcoming Ahk2Exe changes

Posted: 22 Apr 2019, 01:33
by joedf
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...

Re: Upcoming Ahk2Exe changes

Posted: 22 Apr 2019, 01:58
by lexikos
@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.

Re: Upcoming Ahk2Exe changes

Posted: 22 Apr 2019, 02:11
by TAC109
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.

Re: Upcoming Ahk2Exe changes

Posted: 22 Apr 2019, 09:07
by joedf
:roll: ahahaha

Re: Upcoming Ahk2Exe changes

Posted: 23 Apr 2019, 10:24
by Peter2
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

Re: Upcoming Ahk2Exe changes

Posted: 23 Apr 2019, 10:29
by joedf
Simply use the version that is accompanied with your current AHK installation. This is for a new version that is still in development.

Re: Upcoming Ahk2Exe changes

Posted: 23 Apr 2019, 11:37
by JoeWinograd
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

Re: Upcoming Ahk2Exe changes

Posted: 23 Apr 2019, 11:42
by Peter2
OK, thanks to joedf and joevinograd.

Re: Upcoming Ahk2Exe changes

Posted: 23 Apr 2019, 13:09
by JoeWinograd
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

Re: Upcoming Ahk2Exe changes

Posted: 23 Apr 2019, 16:48
by joedf
@JoeWinograd whoops! My bad. 😬 thanks Joe!

Re: Upcoming Ahk2Exe changes

Posted: 03 Jun 2019, 23:28
by TAC109
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

Re: Upcoming Ahk2Exe changes

Posted: 21 Jun 2020, 11:13
by TheArkive
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.

Re: Upcoming Ahk2Exe changes

Posted: 21 Jun 2020, 16:40
by lexikos
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().

Re: Upcoming Ahk2Exe changes

Posted: 21 Jun 2020, 17:58
by TAC109
@lexikos
I see you’re in the process of making other changes to Ahk2Exe. Do you want me to look at this one?
Cheers

Re: Upcoming Ahk2Exe changes

Posted: 21 Jun 2020, 21:18
by lexikos
Yes, please. I wasn't planning to make any further changes myself.