
Compile_AHK II - for those who compile!
the option to add other execution levels was introduced cause of a user's problem with a file named PatchKeyboard.(exe|ahk)
vista forces the need of admin rights if an executable has a filename with setup,install,update,patch,etc. in the filename or installshield,wise,inno,nsis etc. in some resource informations.
you can only override this behaviour if you add the execution level "asInvoker". If you add this, you can run the executalbe without administrator rights also if it has one of the other named attributes.

Thank for providing a great tool!

+ Changed: VersionInfo Language and Codepage / Charset can be changedDownload Compile_AHK
about charset / code page:
dont ask me where you can see it, was it does or what bad side effects it could have. ahk-default is "unicode" and this is preset. if anybody knows more, please tell me :-)
gui upgrade accoring to the last change, will be done later.
edit:
Update from 2008-05-06
+ Fixed: Added a line break to the installation path in the installer, if it is too long
+ Changed: If launched without parameters, the preset start folder isn't c:\ anymore

One problem with the compiler that comes with AHK is that my routine to display hotkeys and substitutions doesn't work - it relies on reading the source.
My code is a mod on code I found here, but it reads the source and creates a string with the hotkey and the command
i.e. "#p:: ; do screen print and paste it into paint" displays "Win-P do screen print and paste it into paint"
and ":*:]xyz::Now is the time" displays "]xyz Now is the time"
Does this compiler have an option, or is any work being done towards an option, to create a menu item for the compiled version of a script that will display the contents?
Thank you.

I use AHK from a USB Thumbdrive, would it be posible for the installer to allow you to select the path to AHK if it doesn't find the default installation. This would also require the use of some releative paths in the code i imagine.
Keep up the good work.




i just downloaded with success.
There might be a problem with your browser or Firewall :cry:




imo, this should be added to the wiki topic
Script Listing Catalogue under the section AutoHotkey_Related -> Tools
This may also replace the standard compiler!!

my site | ~shajul | WYSIWYG BBCode Editor
+ New: PortableApp: Compile_AHK etc. should be in the same folder like AHK2EXE.exe, f.e. X:\PortableApps\AutoHotkey\Compiler
+ Fixed: If an icon file from another folder should be copied to the script folder, this task wasnt processedDownload Compile_AHK
you can install it, wherever you want. the only problem is: AHK writes InstallDir to registry and Compile_AHK reads this regkey. I changed it this way: if InstallDir isnt found in the registry, it only has to be in the same directory as ahk2exe.exe. pls try it! :-)I use AHK from a USB Thumbdrive, would it be posible for the installer to allow you to select the path to AHK if it doesn't find the default installation. This would also require the use of some releative paths in the code i imagine.
maybe i'm a little bit retarded, but i dont get the point of what you wantDoes this compiler have an option, or is any work being done towards an option, to create a menu item for the compiled version of a script that will display the contents?

you want a hotkey or system tray context menu item that shows the current compiled script's source code? hmm my script doesnt compile anything. it uses the default compiler ahk2exe.exe and is limited to it's ahk-related functions. my script only gives access to ahk2exe.exe's command line options and some resource editing. maybe i could add the related script file as a resource to the compiled script, but how to show it ... hmm?!? refer to <!-- m -->http://www.autohotke...hp?p=147202<!-- m -->

you can install it, wherever you want. the only problem is: AHK writes InstallDir to registry and Compile_AHK reads this regkey. I changed it this way: if InstallDir isnt found in the registry, it only has to be in the same directory as ahk2exe.exe. pls try it! :-)I use AHK from a USB Thumbdrive, would it be posible for the installer to allow you to select the path to AHK if it doesn't find the default installation. This would also require the use of some releative paths in the code i imagine.
Ladiko: One problem, the Compile_AHK_Setup.exe still requires the registry key to be set, so I can't add the Compile_AHK to the Ahk2Exe directory; however, when i run the Compile_AHK.ahk from that directory it works almost perfectly. I need to be able to specify the path to resource hacker. as I have this elsewhere on my drive.

changed.Ladiko: One problem, the Compile_AHK_Setup.exe still requires the registry key to be set, so I can't add the Compile_AHK to the Ahk2Exe directory; however, when i run the Compile_AHK.ahk from that directory it works almost perfectly.
what's the problem with reshacker.exe and gorc.exe in the compile_ahk folder on your thumbdrive? 400kb disk space? it is to much work to change this, cause i would have to add a settings dialog for this and add entries to the settings file (save defaults button) and also had to change the settings file behaviour cause YOU need a global settings file e.g. in the compile_ahk folder cause the atm used folder in A_AppData is useless for you and your usb thumbdrive. other people dont have write access to the compile_ahk folder (if they work with a non-admin account), so A_AppData is useful for this people etc. and i'm to lazy to do this work cause of ~400kb disk space, sorry!I need to be able to specify the path to resource hacker. as I have this elsewhere on my drive.
Update from 2008-05-26+ Changed: possibility to continue installation if A_AhkPath is empty
+ Changed: Possibility to continue compiling if ResHacker.exe or GoRC.exe is missing
+ Changed: Replaced all occurrences of "Compile AHK" to "Compile_AHK" and "Compile AHK Setup" to "Compile_AHK_Setup"
+ Changed: internal behaviour of the "Compile" button changed from WinWaitClose to a normal subroutineDownload Compile_AHK

Thanks, much appreciatedchanged.
No problem. :wink: I didn't realize it was such an invasive request otherwise i would never have asked.what's the problem with reshacker.exe and gorc.exe in the compile_ahk folder on your thumbdrive? 400kb disk space? ... and i'm to lazy to do this work cause of ~400kb disk space, sorry!
You accommodation of my request is much appreciated. It works perfectly for me now. Keep up the great work.
