wakatime / macos-wakatime

Mac system tray app for automatic time tracking and metrics generated from your Xcode, Figma, Postman, etc. usage.
https://wakatime.com/mac
BSD 3-Clause "New" or "Revised" License
127 stars 22 forks source link

Improve Zoom entity detection #228

Closed alanhamlett closed 3 months ago

alanhamlett commented 3 months ago

Currently it's detecting Zoom meetings as the window title, one of these:

The meeting title was WakaTime debug session, which was never captured from the window title. We can use the new a11y method to find the meeting title from Zoom's a11y dom.

starbugs commented 3 months ago

The meeting title (if set) is only shown in the Zoom UI when you click the green icon on the upper left side of the meeting window. Otherwise, it's not part of the AX tree of the meeting window by default. But it is shown in the scheduled meeting sidebar of the Zoom main window - if that is not closed. I could try extracting the meeting title from there and match it to the current time and open zoom meeting window, but I am not sure how reliable that might be.

There appears to be a forum discussion/open feature request for Zoom to include the meeting title in the window title for time tracking software: https://devforum.zoom.us/t/meeting-name-in-title-of-zoom-window/28818/5

What might be possible is extracting the names of the participants from the AX tree of the meeting window. But I don't know if that was what you had in mind. Let me know how to proceed.

alanhamlett commented 3 months ago

I could try extracting the meeting title from there and match it to the current time and open zoom meeting window, but I am not sure how reliable that might be.

No, it's not worth it. Let's skip this for now unless something changes in the Zoom app to make detecting meeting title easier.