How do I Program in Custom Computer Commands for Keyboard Emulation?
Computer Commands for Mouse Emulation
Moving and Clicking the Mouse (mouse <escape> sequences):
All mouse activity is done through the use of "escape" sequences which contain specific mouse commands.
One of the first commands you should use, before you do any mouse functions through SerialKeys, is the mouse reset (e.g. moureset) command. You should send a "moureset" command whenever you start up an application program. After this command is sent from your AAC device, the mouse cursor should move to the upper left hand corner of the screen. This command should also release any "locked" mouse buttons. Example: <esc>,moureset. Make sure there are no spaces between the escape sequence and the period.
Note: When you are doing mouse movements using SerialKeys: Open the "Mouse Control Panel" and choose "Tablet" mode (e.g., "Very Slow"), to prevent any mouse acceleration .
Note: Create the <esc> command that you see below by activating CTRL[ ( Control then left bracket ) in your spelling overlay This sequence is shown as <esc> in all commands below. On your display you will see a small arrow pointing to the left. For more information about the escape command see the following article:
How do I Program in Custom Computer Commands for my PC doing Computer Emulation
Each mouse emulator command is given below along with the action it does on the computer.
Mouse Cursor Movement Commands:
| Emulator Command | Mouse Button Action |
| <esc>,click. | Clicks only button on Apple/Macintosh and left button on IBM |
| <esc>,click,right. | Clicks right button of 2 button mouse |
| <esc>,click,left. | Clicks left button of 2 button mouse |
| <esc>,dblclick. | Double clicks only button on Apple/Mac and left button on IBM |
| <esc>,dblclick,right. | Double clicks right button of 2 button mouse |
| <esc>,dblclick,left. | Double clicks left button of 3 button mouse |
| <esc>,moulock. | Locks only button on Apple/Mac and left button on IBM |
| <esc>,moulock,right. | Locks right button of 2 button mouse |
| <esc>,moulock,left. | Locks left button of 2 button mouse |
| <esc>,mourel. | Releases all mouse buttons that were locked |
| <esc>,mourel,right. | Releases right button of 2 button mouse |
| <esc>,mourel,left. | Releases left button of 2 button mouse |
"Move" Commands
"Move" commands move the mouse cursor a specific distance on the screen
Horizontal plus (+) values move the mouse to the right and Horizontal minus (-) values move it to the left.
Vertical plus (+) values move the mouse downward and Vertical minus (-) values move the mouse upward. When both a horizontal and vertical value are sent, the mouse moves diagonally . The first value given is the horizontal value, the second is the vertical value.
The numbers in the example below tell the computer how far to move the mouse each time this command is used. Increase this number for larger distances, decrease it for shorter distances. The number may vary from 1 to 500.
| Emulator Command | Mouse Cursor Movement You See on the Screen |
| <esc>,move,+5,0. | Moves the mouse cursor 5 pixels to the right. |
| <esc>,move,-5,0. | Moves the mouse cursor 5 pixels to the left |
| <esc>,move,0,+5. | Moves the mouse cursor 5 pixels down |
| <esc>,move,0,-5. | Moves the mouse cursor 5 pixels up |
| <esc>,move,+10,+10. | Moves the mouse cursor 10 pixels diagonally downward and right |
| <esc>,move,-10,+10. | Moves the mouse cursor 10 pixels diagonally downward and left |
| <esc>,move,-10,-10. | Moves the mouse cursor 10 pixels diagonally upward and left |
| <esc>,move, +10,-10. | Moves the mouse cursor 10 pixels diagonally upward and right |
| <esc>,moureset. | Resets the mouse and sends it to the upper left corner of the screen |
| <esc>,goto,+100,+150. | Moves the mouse to a specific location on the screen. |
Note: The mouse speed in your computer must also be set to "tablet" or slow.