How can I get a list of the System Tray notifications in Python?

149 Views Asked by At

System Tray Notifications

I would like to get a list of the System Tray notifications in Python.

I've spent some decent time googling and there doesn't seem to be a straightforward way. I would appreciate any help.

1

There are 1 best solutions below

0
Anders On

There is no documented way to get a list of notification icons.

TraySaver did it 20 years ago but that code is unlikely to work on recent versions of Windows. Any attempt to access this list is going to be filled with ugly hacks and crashes...

You can probably use UI Automation for the icons that are visible but it will probably not work when the overflow list is hidden.