gpt4 book ai didi

executable - 如何使用 AutoHotkey 创建独立的 exe?

转载 作者:行者123 更新时间:2023-12-04 00:47:04 25 4
gpt4 key购买 nike

我创建了一个 script to remap the Windows Button to right-mouseclick .

我如何创建一个可执行的 AutoHotkey 文件以供下载,并且只自动运行该脚本?

最佳答案

为什么不使用 Ahk2exe ?根据其文档,您可以通过三种方式使用它:

  1. GUI Interface: Run the "Convert .ahk to .exe" item in the Start Menu.
  2. Right-click: Within an open Explorer window, you can right-click any .ahk file and select "Compile Script" (only available if the script compiler option was chosen when AutoHotkey was installed). This creates an EXE file of the same base filename as the script, which appears after a short time in the same directory. Note: The EXE file is produced using the same custom icon, .bin file and use MPRESS setting that were last used by Method #1 above.
  3. Command Line: The compiler can be run from the command line with the following parameters:

    Ahk2Exe.exe /in MyScript.ahk [/out MyScript.exe] [/icon MyIcon.ico] [/bin AutoHotkeySC.bin] [/mpress 0or1]

    For example:

    Ahk2Exe.exe /in "MyScript.ahk" /icon "MyIcon.ico"

    Usage: Parameters containing spaces should be enclosed in double quotes. If the "out" file is omitted, the EXE will have the same base filename as the script itself.

关于executable - 如何使用 AutoHotkey 创建独立的 exe?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23208646/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com