Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automation Id for system tray icon #100

Open
sebastso opened this issue Mar 8, 2023 · 1 comment
Open

Automation Id for system tray icon #100

sebastso opened this issue Mar 8, 2023 · 1 comment

Comments

@sebastso
Copy link

sebastso commented Mar 8, 2023

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
Copy link
Collaborator

Lakritzator commented Mar 9, 2023

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:

  • You say you cannot find the automation ID for this app, you mean for the icon?
  • Do you expect something you specified yourself, or are you talking generally that you expect some ID to be there?
  • I'm not so deep into automation, just know some basics, so it's fair to ask: do other icons have such an automation ID?

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants