Code: Select all
#If WinExist("ahk_exe Audacity.exe")
LWin:: ;Record
LAlt:: ;Pause
ControlSend ,,% {"LWin":"r","LAlt":"p"}[A_ThisHotkey],ahk_exe Audacity.exe
Return
Code: Select all
#If WinExist("ahk_exe Audacity.exe")
LWin:: ;Record
LAlt:: ;Pause
ControlSend ,,% {"LWin":"r","LAlt":"p"}[A_ThisHotkey],ahk_exe Audacity.exe
Return
Code: Select all
#If WinExist("ahk_exe Audacity.exe") ; Version 2.4.2
LWin::ControlSend, wxWindowNR11, r,ahk_exe Audacity.exe ;Record
LAlt::ControlSend, wxWindowNR6, p,ahk_exe Audacity.exe ;Pause
Code: Select all
#If WinExist("ahk_exe Audacity.exe") ; Version 3.3.2
LWin::ControlSend, wxWindowNR17, r,ahk_exe Audacity.exe ;Record
LAlt::ControlSend, wxWindowNR12, p,ahk_exe Audacity.exe ;Pause