This article applies to:
E-Prime 3.0
Detail
This sample illustrates how to control a SlideSlider with the Left and Right Arrow Keys.
Abstract
The Button device can be set to use the Keyboard in the Button properties > Input Device To Filter. However, this is not customizable. This sample may be useful in studies requiring Keyboard or Human Interface Device (HID) input that require customization of keys.
This sample demonstrates how to move a SlideSlider Indicator based on the keyboard Left and Right Arrow Keys. The Stimulus has an Infinite duration and continues on the Mouse click of the Next button. The Stimulus has a Script Task Event that fires on Keyboard.Press. The Script Task Event checks if it is a key we are looking for (i.e., Left and Right Arrow). If it is, we move the direction specified by a value of 1.
NOTE: The Mouse can also manipulate the Slider as the Input Device To Filter remains set to the Mouse.
See Also:
E-STUDIO: Button Device [24411]
E-STUDIO: Script Task Events [23603]
Comments
0 comments
Please sign in to leave a comment.