Rte.SystemAbortWatchEnabled (property)
Syntax
Rte.SystemAbortWatchEnabled = boolean
boolean = Rte.SystemAbortWatchEnabled
Description
Sets or returns whether the system should watch for the Ctrl+Alt+Shift key sequence to abort an experiment.
Comments
When True, the system will look for the Ctrl+Alt+Shift key sequence.
When False, the system will not look for Ctrl+Alt+Shift and if pressed will have no affect.
Setting Rte.SystemAbortWatchEnabled = False is only recommended in cases when subjects are likely to inadvertently press a key on the keyboard, causing the experiment to end abruptly.
The default value for this property is True.
Example
'The following is an example of how to use the
' Rte.SystemAbortWatchEnabled and Rte.SystemAbortPromptEnabled
' properties in an experiment.
'Reference to the display canvas
' that will be used to show text messages
Dim theCanvas As Canvas
Set theCanvas = Display.Canvas
'Set the system abort watch enable to true.
' This allows a user during the experiment
' to press Ctrl+Alt+Shift to invoke the abort process
Rte.SystemAbortWatchEnabled = True
theCanvas.Text 10, 10, "If you press Ctrl+Shift+Alt now, " & _
"the system will prompt you to abort"
Sleep 5000
'Set the system abort watch enable to false.
' If Ctrl+Alt+Shift is pressed, then nothing will happen
' (the abort request is ignored)
Rte.SystemAbortWatchEnabled = False
theCanvas.Text 10, 10, "If you press Ctrl+Shift+Alt now, " & _
"nothing will happen!"
Sleep 5000
'Set the system abort watch enable to true.
' This allows a user during the experiment
' to press Ctrl+Alt+Shift to invoke the abort process
'Set the abort prompt to true.
' When the user presses Ctrl+Alt+Shift, the system
' will prompt them to abort. If they select yes,
' then the experiment will end. If they select
' no, then the experiment will continue.
Rte.SystemAbortWatchEnabled = True
Rte.SystemAbortPromptEnabled = True
theCanvas.Text 10, 10, "If you press Ctrl+Shift+Alt now, " & _
"the system will prompt you to abort"
Sleep 5000
'Set the system abort watch enable to true.
' This allows a user during the experiment
' to press Ctrl+Alt+Shift to invoke the abort process
'Set the abort prompt to false.
' When the user presses Ctrl+Alt+Shift, the system
' will abort without prompting.
Rte.SystemAbortWatchEnabled = True
Rte.SystemAbortPromptEnabled = False
theCanvas.Text 0, 0, "If you press Ctrl+Shift+Alt now, " & _
"the system will abort without prompt"
Sleep 5000
'NOTE: To run this example with E-BasicExample.es,
' copy the script above and paste it into the Setup InLine object.
This topic applies to:
E-Prime 1.0
E-Prime 1.1
E-Prime 1.2
E-Prime 2.0
Comments
0 comments
Please sign in to leave a comment.