Given this 'main' script
Code: Select all
#SingleInstance
#Requires AutoHotkey v2+
#Include "included script.ahk"
; my main file
::;append::
{
Funct()
FileAppend("new text`n", A_ScriptDir "included script.ahk")
SoundBeep
}
Code: Select all
#SingleInstance
#Requires AutoHotkey v2+
; this file is "included script.ahk"
Funct()
{
MsgBox 'hello'
}
/* want "new text" to be appended down here.