This article applies to:
This sample shows how to input accented characters that require more than one key stroke to type.
In the InLine object named 'ButtonCombinations', you can see several different things which have to be done in order to input accented characters that require more than one key stroke.
First a variable was declared using a Dim statement. That variable turned 'KeyboardResps' into an integer. Then, two more variables were made using similar Dim statements, called both 'KeyPress1' and 'KeyPress2' respectively. These variables were defined as two different instances of input from the keyboard, or 'KeyboardResponseData'.
If…Then conditional statements using the previously-defined variables were used to let the program know that it is looking for two keystrokes and to convert the responses detected from the keyboard on both keystrokes into input masks for 'Slide1'.
From there, you can then define what keys you want to represent what character by creating a Do…LoopWhile statement and If…Then statements, as shown in the sample. The Do…LoopWhile statement is used in this example to wait for the user to type in the data, while the If…Then statements define what keystrokes should go together to create what character. The results of the If…Then statements are linked to the attribute 'Stimulus2', as shown in the script. Regardless of what is set as the two possible keystrokes, what immediately follows 'Stimulus2' in quotation marks is what will be displayed on the screen.
The characters displayed in the sample are just a few basic examples of how to use this.