hardcodet / wpf-notifyicon

NotifyIcon (aka system tray icon or taskbar icon) for the WPF platform
Other
810 stars 125 forks source link

Automation Id for system tray icon #100

Open sebastso opened 1 year ago

sebastso commented 1 year ago

Hi, Is there a way to provide automation ID for the system tray application? We're using Hardcodet wpf notify icon. When I use inspect tool, I cannot find Automation Id for the app. image-2023-02-21-17-51-03-929 (1)

Lakritzator commented 1 year ago

I know you are probably deep into this context, but pretend others do not know what you want to achieve with the information you wrote.

I will do some guessing: You either want to do some UI automation, or you have a application which increases accessibility for less able users, and one of those solutions does not work optimally with your applications tray icon.

Some questions I got:

I found in the Microsoft documentation of the Shell-API, which this project uses, only one reference of something called the guidItem, see here: https://learn.microsoft.com/en-us/windows/win32/api/shellapi/ns-shellapi-notifyicondataa

I'm not sure, but I'd guess you expect a GUID for an automation ID?