This article applies to:
E-Prime 3.0
Detail
This sample demonstrates how to use Script Task Events to select and type text on a SlideButton.
Abstract
This experiment uses Script Task Events to select and edit the text shown on SlideButtons. The DisableNextButton InLine disables the Next button as well as sets the default SlideButton that can be typed in. Then the strings are cleared removing previous trial data.
The Stimulus object has a Keyboard and Button Input Mask. The Keyboard is set to a Max Count of 100 and logs all Keyboard data typed. The Button Input Mask Max Count is set to 100. A Termination Response of {Next} allows it to move on once the SlideButton is enabled.
The Stimulus object has three Task Events. The Stimulus.Button(1).Click is fired when theEchoButton1, theEchoButton2, or Next is clicked. This runs the theCurrButton Script Task Event which filters out the Next Button and determines which of the two Echo Buttons are selected.
When a valid Keyboard Input is made, the Stimulus.Keyboard(1).Press is fired and executes theManualEcho Script Task Event. This filters for normal alphanumeric responses and adds the text to the SlideButton. If both SlideButtons had valid text typed into it, the Next button is enabled.
At termination, the Stimulus.Button(1).TerminationResponse Script Task event is fired. This runs ClearTheManualEcho that logs the responses as Attributes and resets the text and border colors for the next trial.
See Also:
Comments
0 comments
Please sign in to leave a comment.