AutoHotKey: Calling one script from another script

前端 未结 3 990
臣服心动
臣服心动 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:04

    It's the #Include directive you are looking for. You include ScriptB.ahk, then call its functions like you normally would.

    #include SomeFile.ahk
    

    http://www.autohotkey.com/docs/commands/_Include.htm

提交回复
热议问题