Search code examples
autohotkeymicrosoft-teams

How to get the Microsoft Teams active meeting window with AutoHotkey?


In the Microsoft Teams Windows Client I would like to be able to identify with AutoHotkey the current active meeting window. Consider that you can have several Teams window opened (popped-out chats, main window, several meeting windows with some on hold,...)

(Background: I want to do this to be able to send meeting specific actions hotkeys.)


Solution

  • Here is my current implementation based on UIAutomation library - see https://tdalon.blogspot.com/2022/07/ahk-get-teams-meeting-win.html

    Gist code https://gist.github.com/tdalon/5b3304559852d1d1942b7f1566de2a0c