I am trying to bind the "mute" button of my keyboard to the mute function of Zoom (Alt+A), when the Zoom meeting window has focus:
Code: Select all
if WinActive("Zoom Meeting")
Volume_Mute::Send !a
Unfortunately, the code above always sends Alt+A, no matter the window (and, when the Zoom meeting is focused, it is indeed muted).
Is WinActive the correct condition?