A wormhole, according to astrophysicists, is a warp in the fabric of the universe — a shortcut through space and time. Although wormholes in nature have never been detected, "wormholes" in the Windows operating environment are plentiful. These shortcuts enable people with mobility, sensory, learning, and cognitive disabilities to work faster, easier and more efficiently than is possible using "standard" techniques.
This paper describes how to create wormholes through Windows using macro software, "global hotkeys," and macro-like features in standard applications. When first encountered, macros, like space warps, may seem mysterious and counterintuitive. With experience, macros become familiar and indispensable conduits through the Windows universe.
A macro is a sequence of commands for performing a task. The tasks may be simple, such as inserting a word; or complex, such as copying data from one program and pasting it in another. Tasks that lend themselves to macro solutions are repetitive, physically-demanding or mentally-taxing. In addition, accessibility and usability problems can sometimes be fixed with macros.
Macros save time, frustration, and energy. They can be written to:
There are four main macro creation techniques:
Record commands by typing and manipulating the mouse. The technique works best for simple tasks; it is less reliable for complex tasks.
A wizard guides the user through a series of questions, and automatically generates a script. Macros created in this way work best for simple tasks.
Type or insert commands directly into a macro editor. This technique is very powerful, but may require programming experience.
Select, insert, and edit commands via a user interface to build a script. This technique is adequate for crafting all but the most complex macros.
There are four main macro activation techniques:
To activate a hotkey macro, the user presses a key or a key combination or clicks a region on the screen. There are two varieties. A solo-hotkey executes after pressing a single key or key combination. A dead-key hotkey executes after pressing a sequence of two keys. Typically, nothing appears to happen until the second key is pressed. For example, in some applications, pressing Ctrl+/ followed by O inserts Ø.
Code macros are triggered by typing text. The macro runs when a specific sequence of characters has been entered. Suffix macros are triggered by typing a code followed by Spacebar, Enter, and punctuation characters. For example, typing TEL followed by a space inserts one's telephone number. Prefix macros are activated by typing a user-selected prefix followed by a code. For example, if J is the prefix, typing JWP launches a word processor, and JSIG inserts a signature file.
When code macros execute, the code and the prefix/suffix are usually deleted. The macro may have untoward effects if the Backspace key does something other than delete characters. In Internet Explorer, for example, pressing Backspace goes "Back" to the previous Web-page if an edit box does not have focus.
Event macros execute when specified programs, windows, or controls gain or lose focus. Event macros are sometimes needed to regulate complex command sequences.
Timed macros activate at specific times, at set intervals, or after certain delays. They are used for controlling complex macros, running programs at regular intervals, and displaying timed reminders.
Windows reserves about 356 hotkeys for launching applications and opening files and Web pages. Global hotkeys also open folders, e.g., "Recycle Bin," "My Computer," "Control Panel," and "c:\Windows\Desktop."
When a global hotkey and an application-specific hotkey conflict, the global hotkey takes precedence.
Most global hotkeys consist of two or three modifier keys (Shift, Ctrl and Alt) plus one other key. Examples of keys that can be assigned include:
The following keys cannot form part of a global hotkey:
Follow this procedure to make global hotkeys:
Global hotkeys become second-nature with practice. To help users internalize the keystrokes:
Code replacement is a technique for storing text and images as easy-to-remember codes. The code is replaced after it is typed. The trigger is usually Spacebar, Enter, or a punctuation character. Both Word and WordPerfect have code replacement features, AutoCorrect and QuickCorrect, respectively. Of the two, AutoCorrect is more versatile. The technique is especially helpful to people with certain learning disabilities and those for whom typing is difficult.
Use code replacement to correct spelling and capitalization errors, and to insert phrases, canned text, foreign characters, formatted text and images. The following chart illustrates five techniques: word, phrase, symbol, capitalization, and formatted.
|Phrase||sss||Sandy S. Smith|
|startletter||Thank you for your recent letter.|
|ourlogo||White, Black and Clear Attorneys
25 Grace St, Suite 200, York
Some applications have built-in programming interfaces. The programming language for Office, Visual Basic for Applications, can be used to build macros, repair accessibility problems, and develop usability enhancements.
There are two ways to create Word macros. Capture them using the macro recorder, or enter them directly in Visual Basic. The recorder cannot capture mouse movements, and recorded macros tend to replay slowly. They are also somewhat unreliable. Macros coded directly in Visual Basic execute quickly and can be extremely robust. A good way to learn Visual Basic is to record macros and then study and edit the Visual Basic code:
The techniques described in this paper help people with sensory, mobility, learning, and cognitive disabilities perform tasks quickly and efficiently. The author uses macros when accommodating employees and students with disabilities, and has documented many success stories:
These stories illustrate that in Windows and in nature, the shortest path to your destination may be through wormholes.
Cantor, Alan. Enhancing the Accessibility of Word 97 Using Built-in Commands, Macros and Visual Basic Procedures. Handout distributed at pre-conference workshop, 26 June 1999, RESNA 1999, Long Beach, CA.
Cantor, Alan. Escaping the Mousetrap: An Evaluation of the Accessibility and Usability of the Windows Keyboard-only Interface. Paper presented at Developers Day, WWW8 Conference, Toronto, 14 May 1999.
No author. Microsoft Office 97 Visual Basic Programmer's Guide. 1997. Redmond, WA.: Microsoft Press.
Shank, David et al. Microsoft Office 2000/Visual Basic Programmer's Guide. Microsoft Press. 1999.