It looks like this:
Code: Select all
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
#MaxThreadsPerHotkey 2
#SingleInstance, force
;<Some hotkeys, subroutines and one loop without a hotkey to activate it (always on, commenting this one out doesn't improve the behavior)>
Numpad2::
Toggle0 := !Toggle0
Toggle1 := 0
Tooltip
loop
{
If not Toggle0
break
Tooltip RUNNING`nLOOP1
gosub Subroutine1
}
return
Numpad3::
Toggle1 := !Toggle1
Toggle0 := 0
Tooltip
loop
{
If not Toggle1
break
Tooltip RUNNING`nLOOP2
gosub Subroutine2
}
return
;<More hotkeys...>
Any ideas?
Thank you in advance!