![]() Armored Autohotkey executable builder ~ 0.9.5b |
| INTRO | USAGE | OPTIONS | INTERFACE | RESOURCES | VERSIONINFO | EXECUTION | OUTRO |
| OPTIONS | MACROS |
|---|
| HKC_IN ~ |
AutoHotkey
script path. When used in a config file this value can be a relative path to the config dir if a full path was given to load the config. When used as an environment variable this value can contain a path to a script or a config file. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| HKC_OUT * |
Output
executable path. If not defined the scriptname with an exe extension will be used. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| HKC_ICO * |
Main
Icon path. Ahk2Exe handles inclusion and uses icongroup index 159 lang 1033 for this icon, try to remember that if you add icons to your executable that the icon with a lower index value will be the default app icon and not this one. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| HKC_A2E * |
Alternate
path to Ahk2Exe. Only required if HkC cannot find this file in one of two possible default locations explained here Upx if not found elsewhere is also searched for in the directory path of this file. *New* |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| HKC_BIN * |
Alternate
path to AutoHotkeySC.bin Same as hkc_a2e. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| HKC_VER * |
A
supported AutoHotkey build version value which is represented
by either its index or ID or full version string.
Autodetect / crc checks explained, Used by default when no value is defined in hkc_ver or autodetect is defined as shown in the table below. Hkc uses crc checks to identify the type of build you are using so it can select the correct offset maps when it comes to making modifications to the build files, otherwise it will surely break the temp files. Even if you do not use the autodetect option and specify a version, crc checks are performed on the build files anyway as a failsafe against accidentally selecting the wrong version. This particular check can be disabled with the ~ns commandline switch or through the gui. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| HKC_RND * |
Data sequence
camouflage
seed, accepts numbers and characters:
When the commandline switch ~np is used to disable protective camouflage this option and its values change like so::
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| HKC_ALT * |
Define
alternate upx or other packer commandline string that Ahk2Exe uses when
it builds your executable. If hkc_alt = "" and hkc_pak = 1, The default hardcoded upx command string will be used which is::
If hkc_alt <> "" and hkc_pak = 1, The original C string above will be replaced with the contents of hkc_alt which needs to adhere to a couple of important rules related to the C string and its use by Ahk2Exe. The command string can be 61 characters long or less. The string is passed to the shellexecute function so what you are calling does not have to be an exe as long as the file extension is registered executable by your system, a .bat or .ahk script for example. Ahk2Exe uses the C string token '%s' as markers for 2 separate values::
Both of these tokens need to exist in your alternate command string for the correct values to be replaced in the correct order by Ahk2Exe. So something like this example to try and execute upx that exists in a directory declared in the system path environment variable instead of Ahk2Exe's directory by dropping one of the C tokens::
Would fail miserably because of the order Ahk2Exe is processesing the tokens returning the directory instead of the file path. The fault of this rests entirely on myself and the hack and slash method I chose to perform this task.
Important notes
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| HKC_TMP * |
Delete the
temp build files created after use.
Repeat builds will overwrite temp files that already exist. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| HKC_PAK * |
Let
Ahk2Exe pack the output exe with upx default settings, or enable the
use of the alternate pack string defined in hkc_alt.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| HKC_DBG * |
Display
more verbose output in the log.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| HKC_SUB * |
Set
the output exe's subsystem to console. (For command shell based scripts.)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| HKC_EAR * |
Erase the
original interpreter resource table.
|
| MACROS |
|---|
| Macros | Files::
|
| Environment Variables |
Can be used in addition to
macros. As long as the variable exists in HkC's environment block at runtime it will be processed. Example: using an environment variable in an option. hkc_out = %userprofile%\Desktop\My.exe Example: (batch) using a user set environment variable. SET UDIR = x:\MyPath HKC.exe %cd%\Myconfig.cfg Inside Myconfig.cfg hkc_in = %UDIR%\Myscript.ahk |
![]() |
|---|