How to Set Up and Use SerialKeys in Windows
This article was previously published under Q260517 If this article does not describe your hardware-related issue, please see the following Microsoft Web site to view more articles about hardware: http://support.microsoft.com/default.aspx/w98?sid=460 (http://support.microsoft.com/?scid=http%3a%2f%2fsupport.microsoft.com%2fdefault.aspx%2fw98%3fsid%3d460) On This PageSUMMARY
This article describes the SerialKeys accessibility feature in Windows. This feature, in conjunction with a communications aid interface device, enables you to control the computer by using an alternative input device. Such a device needs only to send coded command strings through the computer's serial port to specify keystrokes and mouse events, which are then treated as typical keyboard or mouse input. This feature is designed for people who are unable to use the computer's standard keyboard and mouse.
MORE INFORMATION
In some cases, these special input devices can be connected to a computer's serial port (the connector commonly used for attaching a modem or printer). However, this is in itself not enough to enable you to emulate or control keyboard and mouse functions, because the computer is designed to receive keyboard and mouse signals through its keyboard and mouse ports.
Using SerialKeys enables you to control keyboard and mouse functions through the serial port. This is done by sending the right series of letters and commands from the special input device to the computer's serial port. You can still use the regular keyboard and mouse while you are SerialKeys. NOTE: Typing on the standard keyboard while you are simultaneously entering commands by using SerialKeys can cause SerialKeys to loose track of the status of various keys on the standard keyboard. The most commonly used special input device for SerialKeys is a communication aid, which is an electronic device often used by people who cannot communicate by speech alone because of a physical disability. Using SerialKeys requires you to program specific key definitions into the special input device. You need the documentation for the device to carry out this programming. Setting Up SerialKeysThis section describes how to set up SerialKeys with a device such as a communication aid (referred to as "the aid" in these instructions), including how to hook up the aid to the computer, how to set up SerialKeys on the computer, and what letters or commands to send so you can type any key on the keyboard and make any mouse movement you want from the aid. Follow these instructions step-by-step. If you are the user of the aid, someone may need to assist you the first time you set up SerialKeys.NOTE: These instructions do not tell you how to program a particular aid. You must consult the documentation for the aid, or contact the manufacturer if you have questions.
Programming Keys and Mouse Movement for SerialKeysThe following topics describe how to program each different type of key or mouse movement. Examples are provided to help you set up the aid and computer properly, and to help you understand how to program the aid before you program the complete set of keys and mouse movements. There are four types of SerialKeys actions you can program into any selection (position) on the aid:
Typing Basic Keys by Using SerialKeysEach key on your computer keyboard has a key name; it is this key name that you must program into the aid to be able to type that key. Many of the key names consist of a single character, which are referred to here as the "basic keys":
`1 2 3 4 5 6 7 8 9 0 -
To type one of these keys, you just send that single character out the serial port of the aid. For example, to type the word "hello," you simply select the "h" key name, the "e" key name, the "l" key name, another "l" key name, and finally an "o" key name. Most aids have all of these single-character key names programmed into them, so there is no additional programming to do for these keys.
q w e r t y u i o p [ ] a s d f g h j k l ; ' z x c v b n m , . / \ Typing Special Keys by Using SerialKeysMany keys do not have single-character key names. For example, the NUM LOCK and CAPS LOCK keys each have more than a single-character name. These are called special keys because you have to do something different to type them by using the aid. To type special keys, you must program a sequence of characters into a single selection on the aid. The sequence for special keys is different for each key, but always follows two rules:
NOTE: In these instructions, when you see [esc] in a sequence of characters, it means just one character (the escape character), not five characters, as it might appear. To program the name of a special key into the aid:
[esc]enter.
SerialKeys has official names for each of the special keys on your keyboard. Because the sequences for special keys are somewhat long, you may want to program an entire sequence for a special key into a single selection on the aid. Then, you can label this selection (such as Enter) and have it ready for when you need to type the key. You will probably want to program the sequences for all the special keys on the computer keyboard into selections on the aid. The time you spend doing this will be made up many times after you begin using the aid to access the computer.For additional information about how to set up the complete keyboard and for a table of all the key names, click the article number below to view the article in the Microsoft Knowledge Base: 260727 (http://support.microsoft.com/kb/260727/EN-US/) Programming Assistive Aids for Keyboard and Mouse Functions with SerialKeys
Typing Modifier Keys (SHIFT, CTRL, ALT) by Using SerialKeysThere are three special keys that you must type differently from the other special keys: SHIFT, Control (CTRL), and Alternate (ALT). These three keys are called the modifier keys because they do not do anything themselves, but modify the action of another key. SHIFT, for example, makes a lowercase "a" into an uppercase "A." On an ordinary keyboard, you hold down the modifier key while you press the other key. SerialKeys imitates this action by using a command called "hold."This is the sequence you have to type on the aid to type a modifier key:
[esc],hold,shift. Holds the SHIFT key down a while you send the "a" key) Most keyboards have two SHIFT keys, a right SHIFT key and a left SHIFT key. You can use different key names (lshift and rshift) for the two keys to distinguish between them if you want. Some keyboards also have right and left Control keys and right and left Alternate keys. SerialKeys also distinguishes between these. For additional information about setting up the complete keyboard, and for a table of all the key names, click the article number below to view the article in the Microsoft Knowledge Base: 260727 (http://support.microsoft.com/kb/260727/EN-US/) Programming Assistive Aids for Keyboard and Mouse Functions with SerialKeys
Using SerialKeys to Move and Click the MouseIf your computer is equipped to use a mouse, you can operate all the mouse functions from the aid as well by using SerialKeys.Before you perform any mouse functions by using SerialKeys, you should send the moureset (mouse reset) command. Do this whenever you start up a program (such as a word processing program) that uses the mouse. Send this command from the aid:
[esc],moureset.
The mouse pointer should move to the upper-left corner of the screen.To Move the Mouse: You can perform the equivalent of moving the mouse by sending a move command from the aid to the computer. These are the parts of a move command, in the proper order:
[esc],move,+10,-20. Moves 10 units to right and 20 units up [esc],move,-10,+20. Moves 10 units to left and 20 units down To click a mouse button, you use the click command. Type the commands as you see here. Remember, [esc] means a single "escape" character. For example: [esc],click,left. Clicks the left button [esc],click,right. Clicks the right button You can double-click the mouse by using the same commands as shown above, but with the dblclick command in place of the click command. For example:
[esc],dblclick,left.
To Click and Drag with the Mouse:SerialKeys lets you perform the equivalent of holding the mouse button down while you are moving the mouse ("dragging") by using the moulock (mouse lock) and mourel (mouse release) commands, together with the move command. If, for example, you want to select text in a word processing program that uses the mouse:
REFERENCESFor additional information about programming the aid for SerialKeys, click the article number below
to view the article in the Microsoft Knowledge Base:
260727 (http://support.microsoft.com/kb/260727/EN-US/) Programming Assistive Aids for Keyboard and Mouse Functions with SerialKeys
This information is excerpted from the Customizing Windows for Individuals with Disabilities series of documents. For additional information about customizing different versions of Windows for people with disabilities, click the article number below
to view the article in the Microsoft Knowledge Base:
165486 (http://support.microsoft.com/kb/165486/EN-US/) Customizing Windows for Individuals with Disabilities
APPLIES TO
| Article Translations
|

Back to the top
