Krombik / keysender

Node.js Desktop Automation for Windows.
MIT License
82 stars 9 forks source link

Chrome notification windows #21

Open liquidmetalrob opened 1 year ago

liquidmetalrob commented 1 year ago

I've been trying to detect Chrome notification windows without any success. Autohotkey can detect them just the same as Chrome windows but they're not appearing when I look at the output of getAllWindows().

Krombik commented 1 year ago

Try to find it by getWindowChildren method

liquidmetalrob commented 1 year ago

I couldn't find it that way either.

Krombik commented 1 year ago

even in child of child?

liquidmetalrob commented 1 year ago

When I create a Chrome notification, then click on it and run getWindowChildren, it treats it the same as the window that spawned it because whether I click on the parent window or the notification I only see one child window with the same handle, and that doesn't have any children, so the notification is not found.