up Inquisit Language Reference

defaults element

The defaults element specifies global default values for attributes in the script.

Syntax

<defaults>
/ bidirectional = boolean
/ blockfeedback = (metric, metric, metric, ...)
/ canvasaspectratio = (width, height)
/ canvasposition = (x value, y value)
/ canvassize = (width variable, height variable)
/ combaudrates = (port = baudrate, port = baudrate, port = baudrate, ...)
/ correctresponse = ("character", "character",...) or (scancode, scancode, ...) or (stimulusname, stimulusname, ...) or (mouseevent, mouseevent, ...) or (joystickevent, joystickevent, ...) or ("word", "word", ...) or (keyword) or (property, property, ...)
/ finishpage = "url"
/ fontstyle = ("face name", height, bold, italic, underline, strikeout, quality, character set)
/ halign = alignment
/ inputdevice = modality
/ joystickthreshold = integer
/ lptaddresses = (port = address, port = address, port = address, ...)
/ minimumversion = "version"
/ posttrialpause = integer expression
/ pretrialpause = integer expression
/ quitcommand = (command key + scancode)
/ requiredpermissions = (permission, permission, ...)
/ screencolor = (red value, green value, blue value) or color name or color value
/ skipcommand = (command key + scancode)
/ txbgcolor = (red value, green value, blue value) or (transparent) or color name or color value
/ txcolor = (red value, green value, blue value) or color name or color value
/ validresponse = ("character", "character",...) or (scancode, scancode, ...) or (stimulusname, stimulusname, ...) or (mouseevent, mouseevent, ...) or (joystickevent, joystickevent, ...) or ("word", "word", ...) or (keyword) or (property, property, ...)
/ valign = alignment
/ voicekeythreshold = integer
/ windowsize = (width variable, height variable)
</defaults>

Properties

defaults.finishpage
defaults.fontheight
defaults.name
defaults.posttrialpause
defaults.pretrialpause
defaults.typename
defaults.windowcenter
defaults.windowdecunit
defaults.windowhitduration
defaults.windowincunit
defaults.windowmaxcenter
defaults.windowmincenter
defaults.windowoffset
defaults.windowonset
defaults.windowwidth

Functions

None.

Remarks

The default element provides a convenient way to specify global settings that apply throughout the entire script. For example, if a script contains multiple text elements that use a 12 point Arial font, the font can be specified in the defaults element and each text element will automatically use that font. This is much more convenient than specifying the font repeatedly for each text element. If the local element redefines a default attribute, the local setting takes precedent over the default setting.

Examples

The following sets the default screen color to blue, font to Arial, and input device to mouse.

<default>
/ screencolor = (0,0,255)
/ fontstyle = ("Arial", 14pt, true)
/ inputdevice = mouse
</default>

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