The goal of this example is to demonstrate how to use a generic button to trigger a shift-click. This assumes that the reader is familiar with the basics of creating Building Blocks as shown in the Detailed Tutorial.
To use ControllerMate to trigger this function from a generic button, three types of building blocks are needed: a Button building block that responds to the generic button, Keystrokes building blocks to generate the Shift key, and a Mouse Button building block to generate a mouse click.
The first Keystrokes building block is configured to press the Shift key. It is setup by dragging a Shift keystroke from the Keystrokes Palette window, then deleting the "key up" (light gray) event.
Most Keystrokes building blocks are setup to release each key that it presses. In this case, the key will be released by a later building block.
The Mouse Button building block is configured to generate a single click using the left mouse button.
The second Keystrokes building block is configured to release the Shift key. It is setup by dragging a Shift keystroke from the Keystrokes Palette window, then deleting the "key down" (dark gray) event.
With building blocks configured in this manner, ControllerMate will trigger a shift-click each time Button #5 on the X-keys XK-24 is pressed.