PennController for IBEX › Forums › Support › Setting mouse cursor location › Reply To: Setting mouse cursor location
December 5, 2023 at 5:35 am
#10969

Keymaster
Hi,
It’s impossible to control the cursor’s location in javascript, for security reasons. What you can do is print a button at the center of the page (newButton("Next").print("center at 50vw", "middle at 50vh").wait()
) and only start the trial when it’s clicked: this way when the trial starts the participant’s cursor is centered on the page
Jeremy