#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. ; #Warn ; Enable warnings to assist with detecting common errors. SendMode Input ; Recommended for new scripts due to its superior speed and reliability. SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. #IfWinActive ahk_exe AMPS4.exe ~Down:: Send, {Ctrl down}{F12}{Ctrl up} Input, UserInput, V T1 L1, {Up}{Down} If InStr(ErrorLevel, "Down"){ Send, {Ctrl down}{F7}{F5}{F12}{Ctrl up} } Return ~Up:: Send, {Ctrl down}{F5}{Ctrl up} Input, UserInput, V T1 L1, {Up}{Down} If InStr(ErrorLevel, "Up"){ Send, {Ctrl down}{F4}{F5}{F12}{Ctrl up} } Return Volume_Up::F3 ; Volume up Volume_Down::F2 ; Volume down ; Speed up is already F5 Escape::F4 ; Speed down Return