How to react to a Windows 11 notification?

Asked by john

Is there a way to make SikuliX react when I get a Windows 11 notification from a specific app? I want to be able to detect whenever a new notification appears as a popup or silently in the "action center". Also I want to be able to access the text and click the action buttons.

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

popups can be detected by using onAppear/observeInBackground.

Acting on something, that is visible in the ActionCenter should be normal SikuliX usage.

Looks like an interesting use case - so I will have a look, how a SikuliX script behaves with respect to the action center.

Revision history for this message
RaiMan (raimund-hocke) said :
#2

this worked for me:
ac = SCREEN.bottomRight.offset(-20, -20)
click(ac)
wait(2)
hover("someImage.png")
wait(3)

where "someImage.png" is an image visible in the action center and taken using the screenshot hotkey.

The area taken by the action center is useable like a normal region visible on the screen.

Can you help with this problem?

Provide an answer of your own, or ask john for more information if necessary.

To post a message you must log in.