Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

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


  • 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.

  • Thanks so much! :smile:

Sign In or Register to comment.