AutoHotKey: calling one script from another script

I just opened AutoHotKey and it looks like it will come true. I have two .ahk, A.ahkand B.ahk. I want to call script B from script A.

AHK forums are strangely silent on this subject, but I'm sure it is possible.

+11
source share
3 answers

This is the #Include directive you are looking for. You turn on ScriptB.ahk and then call its functions, as usual.

#include SomeFile.ahk

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

+14
source

#include , AHK. Run RunWait. , . , , .

+4

, . , 1 , , , ( , , ). , , ExitApp . , "" . , .

#SingleInstance, Force

; HotKeys
#Include C:\Users\username\path1\Arrows.ahk
#Include C:\Users\username\path1\HomeEndModifiers.ahk

; SoundKeys
#Include C:\Users\username\path2\VolumeAdjustment.ahk

; Opening Programs
#Include C:\Users\username\path3\OpeningPrograms.ahk

ExitApp
'''
0

All Articles