|
Post by saveme on Oct 5, 2020 3:51:13 GMT
Hi there,
I want a participant to press a key (out of 2 choices) when he/she sees a stimulus (out of 2 stimuli).
If a correct key is pressed, the next stimulus will be presented. No feedback is shown.
If an incorrect key is pressed, the current stimulus will not disappear until the correct key is pressed. No feedback is shown.
However, a participant may cheat by pressing two keys at the same time...
Can PsyToolkit detect multiple key press within a brief period (e.g., 100 ms) and stop a participant from cheating?
|
|
|
Post by PsyToolkit on Oct 6, 2020 21:59:38 GMT
how much time does the participant get to press the correct key?
|
|
|
Post by saveme on Oct 9, 2020 0:54:04 GMT
Thanks for your reply!
There is no time limit for a participant to get the correct key. In the web server, however, I set the waiting time to be 999999 ms by assuming that the participant would never wait that long.
|
|
|
Post by PsyToolkit on Oct 9, 2020 22:39:18 GMT
You could do this easily. After a readkey, check if the RT is unrealistically short. Below just a part of what would be the whole script. But this is how you can prevent people responding too quickly or pressing two buttons simultaneously.
readkey 1 9999 if RT < 200 show text "You pressed to quickly" delay 2000 clear -1
fi
|
|