up Inquisit Language Reference

quitcommand attribute

The quitcommand attribute specifies a key combination that terminates the experiment.

Member of



/ quitcommand = (command key + scancode)


commandkey One of the following values:
Value Description
Alt<n> The right or left Alt key.
Ctrl<n> The right or left Ctrl key.
Shift<n> The right or left Shift key.
Win<n> The right or left Windows key.
scancode An integer indicating the scan code of the key.
character The single or double quoted character of the key.


The quitcommand allows the researcher to define a custom combination of keys that enable the participant to opt out of an experiment. The quitcommand can consist of a single or multiple keys. If multiple keys are specified, the participant must press all of the keys simultaneously. The participant may press the keys any time during the experiment, at which point the experiment ends.

The quitcommand is similar to Inquisit's built in Ctrl+Q command, with one major difference. When the Ctrl+Q command is issued, Inquisit Web will terminate the experiment and forward the participant to the finish page url. In contrast, if the quitcommand is issued, the participant is NOT forwarded the finish page. This is useful in cases where navigating to the finish page is used to distinguish participants who chose to complete the study from those who did not.

The quitcommand keys must be specified in terms of scancodes.


The following defines the quitcommand as the key combination Ctrl+Alt+30 (the scancode for the A key is 30):

/ quitcommand = (Ctrl+Alt+30)

The following defines the quitcommand as the key combination Win+T:

/ quitcommand = (Win+'T')

Send comments on this topic:
Copyright Millisecond Software, LLC. All rights reserved.