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...
Alternative compilers?
-
- Posts: 463
- Joined: 24 Jan 2014, 22:28
Re: Alternative compilers?
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
- "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
-
- Posts: 463
- Joined: 24 Jan 2014, 22:28
Re: Alternative compilers?
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.
I'm really looking for a one click solution.
Re: Alternative compilers?
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
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.
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
if there aren't one, one can be made, but it might be a little workI'm really looking for a one click solution
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.
Re: Alternative compilers?
http://ahkscript.org/boards/viewtopic.php?f=24&t=521 does some of what you want.
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
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
-
- Posts: 463
- Joined: 24 Jan 2014, 22:28
Re: Alternative compilers?
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
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
Re: Alternative compilers?
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.
For example, the script can compile itself:
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.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...
For example, the script can compile itself:
Code: Select all
if !A_IsCompiled
RunWait ahk2exe.exe /in "%A_ScriptFullPath%" /icon myicon.ico
Re: Alternative compilers?
Yes you are a huge huge fan, WOWBruttosozialprodukt 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
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
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
Who is online
Users browsing this forum: Bing [Bot], bobstoner289, peter_ahk, Spawnova and 351 guests