AutoHotKey: Calling one script from another script

前端 未结 3 960
臣服心动
臣服心动 2021-01-11 13:44

I just discovered AutoHotKey and it seems like a dream come true. I have two .ahk scripts, A.ahk and B.ahk. I want to call script B from within scr

3条回答
  •  时光说笑
    2021-01-11 14:06

    Using an #include directive is more common, but occasionally you will need to call an external AHK script. This is easily accomplished using the Run or RunWait commands. While you can pass arguments to the called script through the command line you cannot call functions within it directly. Also, this approach will create a separate thread for the called script, but that may be the point.

提交回复
热议问题