Alternative compilers?

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Bruttosozialprodukt
Posts: 463
Joined: 24 Jan 2014, 22:28

Alternative compilers?

04 Jan 2015, 12:33

Are there any alternatives to Ahk2exe that have more options? For example to specify the file version?
And I would also like to see a hotkey to compile&run the specified script.
Another thing I noticed is that the compiler always uses the last specified icon for all scripts compiled afterwards.
It would be nice if it could remember the icon for each script or something like that...
MJs
Posts: 454
Joined: 23 Sep 2014, 03:29

Re: Alternative compilers?

04 Jan 2015, 12:55

I've taken a look at Ahk2exe script sometime a go
- "specify the file version and more info" = use Resource Hacker, it's as simple as it gets when it comes to setting apps details and info
- "And I would also like to see a hotkey to compile&run the specified script" = are you talking about SciTE4AutoHotkey? or the Ahk2exe itself
- "It would be nice if it could remember the icon for each script or something like that" = take a look at the script, and change it's setting to not use registry for read/write, and use an ini file for example or just add multiple icon and files to the registry, and add some lines to get the file name and the corresponding icon, it might seem hard, it's not.
I removed saving and reading from registry, and I dragndrop icons as I please when compile, other wise it uses the default icon
Bruttosozialprodukt
Posts: 463
Joined: 24 Jan 2014, 22:28

Re: Alternative compilers?

04 Jan 2015, 13:59

I know how I could do the whole compiling process including the icon, file version etc using Resource Hacker, but that is way too much work.
I'm really looking for a one click solution.
MJs
Posts: 454
Joined: 23 Sep 2014, 03:29

Re: Alternative compilers?

04 Jan 2015, 16:58

I don't think there is another compiler that do exactly what you want to do
but are you open to the idea of editing the Ahk2Exe.ahk file, and searching for a solution if there isn't any

take look at this, I didn't know it existed, it might do just what you may want, but I'm not sure about it, since I didn't try it
https://github.com/imaginationac/compile-ahk
I didn't read the information about it, use it carefully
take a look at UpdateResource function
http://msdn.microsoft.com/en-us/library ... 85%29.aspx

I'm really looking for a one click solution
if there aren't one, one can be made, but it might be a little work :D
ResHacker has command line params
you can create a script that compile the the script's app, change whatever you want using command line, save it, and at the end you'd have one exe file with your info as you please (might be a little work)

I just liked the idea, and did some research, a command line utility can work wonders in this regard, bypassing the gui subroutine in the ahk2exe.ahk, and it wouldn't be too much work, except creating the script, I can't do it now, but I may take a crack at it sometime in the future

http://www.autoitscript.com/forum/topic ... ne-option/
http://stackoverflow.com/questions/1207 ... -win32-exe
http://www.askvg.com/tutorial-all-about ... -tutorial/
https://code.google.com/p/rescle/

if you're pressed, then, sir, wait for someone that has done it all before, and done it exactly as you want it to be
hope this was of help for you.
TAC109
Posts: 1129
Joined: 02 Oct 2013, 19:41
Location: New Zealand

Re: Alternative compilers?

04 Jan 2015, 18:21

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
Bruttosozialprodukt
Posts: 463
Joined: 24 Jan 2014, 22:28

Re: Alternative compilers?

04 Jan 2015, 21:59

Whoa that is quite amazing!

I'm not a huge fan of resource hackers command line and the updateresource function... http://ahkscript.org/boards/viewtopic.php?f=5&t=5242
lexikos
Posts: 9690
Joined: 30 Sep 2013, 04:07
Contact:

Re: Alternative compilers?

04 Jan 2015, 22:06

For setting the file version, please express your interest in the thread TAC109 linked to. fincs seemed to think there was a "lack of demand" for those features.
And I would also like to see a hotkey to compile&run the specified script.
Another thing I noticed is that the compiler always uses the last specified icon for all scripts compiled afterwards.
It would be nice if it could remember the icon for each script or something like that...
You can run Ahk2Exe via the Run command, specifying which script to compile, which icon to use, etc. via command line parameters. See Ahk2Exe command line parameters.

For example, the script can compile itself:

Code: Select all

if !A_IsCompiled
    RunWait ahk2exe.exe /in "%A_ScriptFullPath%" /icon myicon.ico
MJs
Posts: 454
Joined: 23 Sep 2014, 03:29

Re: Alternative compilers?

04 Jan 2015, 22:24

Bruttosozialprodukt wrote:Whoa that is quite amazing!

I'm not a huge fan of resource hackers command line and the updateresource function... http://ahkscript.org/boards/viewtopic.php?f=5&t=5242
:D Yes you are a huge huge fan, WOW
ok, you sent me on a mission somewhat, and I managed to use resource hackers command line and Microsoft Visual Studio's RC.EXE to change the information of the exe file
:lol: :lol: :lol: :lol:
merging it with lexikos's compiling example you'd have what you want, or I mean what you need
are you intersted?
P.S.
indeed you're a huge fan of ResHacker, and it's a fan of you too, answering your every need :D

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Bing [Bot], Chunjee, Hansielein, Lpanatt and 324 guests