AutoHotKey:从另一个脚本调用一个脚本 [英] AutoHotKey: Calling one script from another script

查看:752
本文介绍了AutoHotKey:从另一个脚本调用一个脚本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚发现了AutoHotKey,它似乎成了梦想。我有两个.ahk脚本, A.ahk B.ahk 。我想从脚本A中调用脚本B.

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 script A.

AHK论坛在这个问题上有些奇怪,但我相信这是可能的。

The AHK forums are strangely silent on the subject but I am sure this is possible.

推荐答案

这是您正在寻找的#Include指令。你包括ScriptB.ahk,然后像往常一样调用它的函数。

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

这篇关于AutoHotKey:从另一个脚本调用一个脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆