![]() ![]() ![]() When executed, compiletest.exe shows a file dialog if the user selects a script file and confirms, that file is executed by running compiletest.exe /execute (a new reserved arg, because just passing the filename would make it a parameter of the embedded script).įurthermore, the script it executes can #include *LIB\D.AHK. I compiled this with the current Ahk2Exe, by giving both /ahk and /bin the path of the exe, producing compiletest.exe. Run Format('""', A_AhkPath, f) In this test build, A_AhkPath = A_ScriptFullPath when compiled. (The difference between the current exe and bin is more significant, but still not very much.) I think it's worth it, especially because combining embedded scripts with the full interpreter opens up further possibilities.Ĭode: Select all if (f := FileSelect(, "Select Script", "AutoHotkey Scripts (*.ahk)")) != "" Changing AutoHotkey.exe to support using it as the basis for a compiled script isn't much work, and based on what I've got so far (FileInstall and A_AhkPath are the uncompiled versions, and other things need tweaking), it will probably only increase the size by a few KB. I would like to leave the official Ahk2Exe releases to those lines, I was thinking to remove the requirement for bin files altogether. Instead, the installer may provide an option to automate downloading and installing Ahk2Exe and any required bin files. I will probably not include Ahk2Exe with v2, as I have no desire to convert it to v2 or maintain it myself, or to include a v1 binary in the v2 download. Assume there will only be one AutoHotkey.exe (without suffix), at AutoHotkey\AutoHotkey.exe, and it will actually be a compiled script (the version-selecting launcher), but that might be up to a user preference.Īhk2Exe already includes code for detecting the version of an AutoHotkey bin or exe, so you can match them up regardless of name. I'll probably remove the "U" from the v2 files to help distinguish v1 and v2 processes, and because there won't be an ANSI version. ![]() ![]() For the moment, assume something like AutoHotkey\v*\*.bin and AutoHotkey\v*\AutoHotkey*.exe. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |