Skip to content

Setting a minimum viewing time in instructions #1643

Discussion options

You must be logged in to vote

Oops, just realized that my other answer won't work because we need to disable the buttons and ignore the key presses until enough time has passed at the start of every page, not just when the whole trial starts! So I got this to work using a different approach.

First, I left the keyboard listener as it was before, so that it's set up when the trial starts, but in the after_response function, I checked whether the min_viewing_time parameter was set, and if so, whether enough time has passed. If min_viewing_time parameter is set and enough time has passed, then the next page is shown. If enough time hasn't passed yet, then the key press is registered but it doesn't cause the next page to b…

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@martinakavanova
Comment options

Answer selected by jodeleeuw
Comment options

You must be logged in to vote
1 reply
@jxwb125646
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants