PennController for IBEX › Forums › Support › Centering mouse cursor at the start of the trial › Reply To: Centering mouse cursor at the start of the trial
April 22, 2020 at 12:55 pm
#5107
Jeremy
Keymaster
Hi Ana-Maria,
The script cannot take control of the mouse for security reasons, but what you can do is print a small button where you want the mouse to be and reveal your pictures only after it is clicked, for example:
newButton("Start").print("center at 50vw","middle at 50vh").wait().remove() , newSelector("image") , defaultImage.size(200,200).selector("image") , newImage("topleft.png").print("right at 45vw","bottom at 45vh"), newImage("topright.png").print("left at 55vw","bottom at 45vh"), newImage("bottomleft.png").print("right at 45vw","top at 55vh"), newImage("bottomright.png").print("left at 55vw","top at 55vh") , getSelector("image").wait()
Jeremy