从另一个调用一个autohotkey

时间:2013-04-29 15:19:33

标签: autohotkey subroutine

^!a: 
run do
run lots
run of
run things
return

^!b: 
run dosomething small
; --- and here I want to do everything that is done for ^!a

我可以想到两种理论方法:1。以某种方式调用代码2.通过生成^!a click。我发现1号更好,但如果可以的话怎么办呢?

1 个答案:

答案 0 :(得分:0)

为。

添加标签
^!a: 
RunA:
run do
run lots
run of
run things
return

^!b: 
run dosomething small
GoSub, RunA
Return