![]() Armored Autohotkey executable builder ~ 0.9.5b |
| INTRO | USAGE | OPTIONS | INTERFACE | RESOURCES | VERSIONINFO | EXECUTION | OUTRO |
| USAGE | SCRIPT / CONFIG |
|---|
| Command line | HkC.exe [? or Input_Path] [~ss] [~nb] [~ns] [~np] |
| ? | If
a question mark character exists anywhere in argument 1 HkC will
load/display a help file/screen depending on its subsystem. |
| Input_Path | Can be one of the
following::
|
| ~ss |
Runtime
subsystem switch, (which is not the same as changing the programs
default system with a PE/Hex editor) Causes HkC to use the code
written for the opposite
of its actual subsystem. If HkC's default subsystem is - Windows A classic 'press any key' console window is created for the log. Its output will not go to an existing cmd shell when executed from one because of the way windoze handles the subsystem. If HkC's default subsystem is - Console HkC will display the gui, allowing command shell users access to the ui if they ever feel the need. The only drawback of this is that two windows will appear or when executed through an existing shell it will be frozen until the interface/HkC closes. |
| ~nb | Perform
all chosen operations except the final build phase, useful if you have
a
separate program/script that you want to use in conjunction with the
modified build files inside or outside of HkC. This switch is intended to be used with the hkc_tmp option to prevent deletion of the temp files. Warning the modified build files are deleted by default for a reason, don't blame me if you use them outside of HkC and they do not operate 100% as the originals do in some areas, the temps are crafted to work using the build conditions specified when they were generated only. |
| ~ns | Disable
the crc checksums for detecting the version of the
build files. (Autodetect cannot be used with this enabled) The only reason why you might wish to disable the crc checks is if you have already made modifications to either Ahk2Exe or AutoHotkeySC before using HkC with these files. such modifications would cause the checks to fail and HkC would abort the build. If this is the case then you must specify the actual version of your build files with the hkc_ver option (or in the gui) and add the ~ns commandline switch at runtime. (you can now also disable crc checks from the gui) This would force HkC to use the specified version offset map and skip the two checks it makes to try and prevent the large margin for error that would result when patching the build files with incorrect offsets. |
| ~np | Disable the 'protective' elements of the fuzzing procedure so an exe after being built can be restored with a decompiler. Use of this switch modifies the gui and the behaviour of the hkc_rnd option slightly. |
| Exit Codes |
|
| SCRIPT / CONFIG |
|---|
| /* ; Within a script using multi-line comment tags. HKC_OUT = MyProgram.exe HKC_ICO = Main.ico HKC_VER = AUTO [] */ MsgBox, 64, Your, Script starts here ; ...etc |
| ; As a separate config file. HKC_IN = MyScript.ahk HKC_OUT = MyProgram.exe HKC_ICO = Main.ico HKC_VER = 0 ; ...etc |
| ; Mockup HKC_IN = %userprofile%\My Documents\MyScript.ahk HKC_OUT = %userprofile%\Desktop\MyProgram.exe HKC_ICO = @SD>Main.ico HKC_A2E = @CDP>Compiler2\Ahk2Exe.exe HKC_BIN = @CDP>Compiler2\AutoHotkeySC.bin HKC_VER = A.U.T.O HKC_RND = 1Two3Four5Six HKC_ALT = 0 HKC_TMP = 0 HKC_PAK = 1 HKC_DBG = 0 HKC_SUB = 1 HKC_EAR = 0 |
| [HKC_RES] MyRCD = 10 ` 1 ` 2057 ` @SD>Mydata.dat [HKC_PBE] MyBuild script = @AHK> ` @CDP>Compiler2\Extra.ahk @BIN> ` @CD> ` 0 [HKC_VER] FileVersion = 1,0,0,0 |
| /* HKC_OUT = %userprofile%\Desktop\MyProgram.exe HKC_ICO = @SD>Main.ico HKC_A2E = @CDP>Compiler2\Ahk2Exe.exe HKC_BIN = @CDP>Compiler2\AutoHotkeySC.bin HKC_VER = A.U.T.O HKC_RND = 1Two3Four5Six HKC_ALT = 0 HKC_TMP = 0 HKC_PAK = 1 HKC_DBG = 0 HKC_SUB = 1 HKC_EAR = 0 [HKC_RES] MyRCD = 10 ` 1 ` 2057 ` @SD>Mydata.dat [HKC_PBE] MyBuild script = @AHK> ` @CDP>Compiler2\Extra.ahk @BIN> ` @CD> ` 0 [HKC_VER] FileVersion = 1,0,0,0 []<- Otherwise further instances of 'content = content' would be parsed. */ MsgBox, 64, Your, Script starts here MyVar = ; ...etc |
![]() |
|---|