|
Post by arynvaughan on Aug 17, 2022 20:40:21 GMT
Hello!
I'm currently setting up an experiment in Psytoolkit and need a bit of help. We're running a peg turning task to induce participant boredom. The task, as it's currently set up, requires participants to press the spacebar to turn the peg during the task. We want to track participants' experience of boredom over the course of the task, so we're hoping to be able to include a button on the task screen that participants can press during the task to indicate that they're experiencing boredom.
I have a button drawn on the screen of the task, but when I add a readmouse command, the pegs begin to turn as a result of the mouse click rather than the key press, which is not what we want. Is there a way to write the script so that the key press still turns the pegs and the mouse click data (indicating an instance of boredom) is stored for our review after the task? I've included my task code below in case anyone has any guidance. Thank you in advance!
task PegTurningTask table PegTurning keys space show background 148 148 148 draw off show bitmap @2 -225 -75 show bitmap @3 -75 -75 show bitmap @4 75 -75 show bitmap @5 225 -75 show bitmap @6 -225 75 show bitmap @7 -75 75 show bitmap @8 75 75 show bitmap @9 225 75 show rectangle 300 200 50 50 225 0 0 #red rectangle to indicate boredom draw on readkey @10 300000 delay 1000 save @1 BLOCKNAME RT # save data
|
|