The HTML file you will need for the mouse contingent display is available here: https://github.com/karipayne/PsychoPy-Custom-Tips , as the Mouse Contingent Display.html. You will need to download this repository (click the green “Code” button, and then “Download zip”). If you are using windows, you will need to unzip this folder. From there, you can copy and paste the Mouse Contingent Display.html into your PsychoPy project folder.
I recommend making a new folder in your PsychoPy root folder, and naming it the name of the routine you plan on putting the HTML code in. Then, rename this file to index.html. Finally, check and make sure the custom code in the “Begin Routine” tab references the correct location: the folder you made, and the index.html file in it.
This code has a couple main editable sections to it, primarily:
In the next section, I will go into how you can easily change these sections to fit your needs.