Reply To: Track Mouse Position

PennController for IBEX Forums Requests Track Mouse Position Reply To: Track Mouse Position

#8424
Jeremy
Keymaster

Hi,

You could add these three lines at the end of your script to get the coordinates of the visual elements at the end of the trial:

newVar("manXY").log().set(v=> JSON.stringify(getImage("man")._element.jQueryElement[0].getBoundingClientRect()).replace(/[,"{}]/g,'') ),
newVar("boyXY").log().set(v=> JSON.stringify(getImage("boy")._element.jQueryElement[0].getBoundingClientRect()).replace(/[,"{}]/g,'') ),
newVar("figlistXY").log().set(v=> JSON.stringify(getCanvas("figlist")._element.jQueryElement[0].getBoundingClientRect()).replace(/[,"{}]/g,'') )

Jeremy