; ; General Settings ; ; Set default location and name convention for compiled scripts to use ;@Ahk2Exe-ExeName %A_MyDocuments%\AutoHotkey\bin\AHK-%A_ScriptName% ; Install hooks to make sure script can get physical state of keys instead of logical state. #InstallKeybdHook #InstallMouseHook #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. ; All hotkeys are implemented through keyboard hook to avoid script activating itself. #UseHook ; MenuMaskKey is set to a virtual key that is defined by Windows as doing nothing #MenuMaskKey vkFF ; If script is already running, just override it with the new version instead of asking #SingleInstance force