Suppose I have three scripts:
One script holding the hotkeys for application start (as seen in my last post) called programs.ahk
Contains e.g.
F12 & d::Run, %ProgramFiles%\SmartFTP\SmartFTP.exe
One script containing the hotkey helper an the hotkeys I use for text editing called hotstrings.ahk. The hotkey helper is also bound to a combination with F12 & h:: ; Start the hotkey helper
Finally AutoHotkey.ini that contains among other definitions an inclusion of my programs.ahk at the beginning:
#Include *i programs.ahk
And also a hotkey to start the hotstings script:
Code:
^Tab::
{
DetectHiddenWindows, On
SetTitleMatchMode, 2
IfWinExist, hotstrings.ahk - AutoHotkey
{
WinClose
}
else
{
Run, hotstrings.ahk
}
return
}
The start and termination of the hotstrings.ahk is working properly but if it is started the F12 & d:: and other F12 hotkeys in programs.ahk won't be aktivated any more. If I replase the hotkey for the hotstring helper with F11 & h, the F12 hotkeys from the other file will still do.