; ; General Settings ; ; Set default location and name convention for compiled scripts to use ;@Ahk2Exe-ExeName %A_MyDocuments%\AutoHotkey\bin\%A_ScriptName% ; Require AutoHotKey v2 #Requires AutoHotkey v2.0 ; Install hooks to make sure script can get physical state of keys instead of logical state. InstallKeybdHook InstallMouseHook ; All hotkeys are implemented through keyboard hook to avoid script activating itself. #UseHook SetWorkingDir A_ScriptDir ; Ensures a consistent starting directory. ; MenuMaskKey is set to a virtual key that is defined by Windows as doing nothing A_MenuMaskKey := "vkFF" ; If script is already running, just override it with the new version instead of asking #SingleInstance force ; Send Mode SendMode "Event" SetKeyDelay -1