Sign in with your CogSci, Facebook, Google, or Twitter account.

Or register to create a new account.

We'll use your information only for signing in to this forum.

Supported by

Is there a way to disable exiting the experiment on the tablet?

Hi all,

I am running an experiment on a tablet and I have had to throw away a few sets of data because participants accidentally exited the experiment by pushing the return button on the tablet. It says that one can resume the experiment by pushing a certain key, but no keyboard appears so there's no way to actually resume (that I know of anyway).

So my question is this: is there a way to disable exiting altogether?

- Amir


  • sebastiaansebastiaan Posts: 2,993

    Hi Amir,

    If you press Escape, exp.pause() is called. If you override this by a dummy function, the experiment will no longer pause. You can do this by adding the following to the Prepare phase of an inline_script at the start of the experiment.

    exp.pause = lambda: None # dummy function


    There's much bigger issues in the world, I know. But I first have to take care of the world I know.

  • Amir MoyeAmir Moye Posts: 14

    Thanks so much! :smile:

Sign In or Register to comment.