Recording clicks in a web browser

OS: Win 11
PsychoPy version: Stand alone V2023.2.3
Standard Standalone? (y/n): y
What are you trying to achieve?:

In my experiment, I will be collecting attention data using a Unicorn EEG headset and a SMI RED 250 eye-tracking system, while participants work through an online course created in Storyline and accessible on a website.

Therefore, I would like to record clicks in an html Window outside of PsychoPy. Is it possible to connect to an outside window, like a web browser running an app and capture mouse events in that window? If so, how?

Please note that I am not a programmer and have basic knowledge of python (but I can get some help coding if need be).

What did you try to make it work?:

I looked at the available codes and conversations in the forum, but none seems to be doing what I need.

Thank you for your help

Hi. I don’t think this is possible in PsychoPy. I have created interactive presentations and stories in PsychoPy to mimic this kind of thing but not something that will work with an existing website.

Depending on what you want then there might be alternatives such as: