Documentation Archive Developer
Search

ADC Home > Reference Library > Technical Notes > Legacy Documents > Mac OS 9 & Earlier >

Legacy Documentclose button

Important: This document is part of the Legacy section of the ADC Reference Library. This information should not be used for new development.

Current information on this Reference Library topic can be found here:

Command-Shift-Number Keys

CONTENTS

Mar 01 1985






Introduction

In the standard system, there are two Command-Shift-number key combinations that are automatically captured and processed by GetNextEvent. The combinations are:

Command-Shift-1 Eject internal disk

Command-Shift-2 Eject external disk

Numbers from 3 to 9 are also captured by GetNextEvent, but are processed by calling 'FKEY' resources. You can implement your own actions for Command-Shift-number combinations for numbers 5 to 9 by defining your own 'FKEY' resource. The routine must have no parameters. The ID of the resource must correspond to the number you want the routine to respond to. For example, if you want to define an action for Command-Shift-8, you would create an 'FKEY' resource with an ID of 8. The 'FKEY' resource should contain the code that you want to execute when the key is pressed.

The following Command-Shift-number key combinations are implemented with 'FKEY' resources in the standard System file.

Command-Shift-3

Save current screen as MacPaint file named Screen 0, Screen 1, ... Screen 9 (Works in one-bit mode only on Mac II)

Command-Shift-4 Print the active window (to an ImageWriter)

(with Caps Lock on) Print the entire screen (to an ImageWriter)

Back to top

References

The Toolbox Event Manager

Back to top

Downloadables

Acrobat gif

Acrobat version of this Note (40K).

Download


Back to top