home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Merciful 3
/
Merciful_Release_3.bin
/
software
/
d
/
data_division_docs
/
datadivisiondocs02.dms
/
datadivisiondocs02.adf
/
11
< prev
next >
Wrap
Text File
|
1996-10-14
|
5KB
|
120 lines
Chapter Ten
The Hotkey Editor " Link "The HotKey Editor"}
The HotKey Editor Menu " link "The HotKey Editor Menus"}
The HotKey Editor
The Hotkey Editor allows you to attach functions to any keystroke
combination. Hotkeys are effectively the same as standard Opus buttons
which are called directly by the press of a key rather than with a mouse
click. Although you could always attach hot keys to the traditional Opus
buttons and menus, Opus 5.5 now allows you to define a specific set of
independent hot keys. As with Opus buttons, menus and scripts, a Hotkey
may define a set of instructions which includes any mix of AmigaDOS,
Workbench, ARexx, Script or internal Opus 5 commands.
Hotkeys can be Local, only accessible from within Opus 5, or Global,
accessible from anywhere in the system as long as Opus 5 is running.
*** See Fig 10-01 ***
Directory opus 5 129
Items: Shows the list of currently defined Hotkeys. On the left is the
name of the Hotkey function. On the right is actual hot key
combination that triggers this function.
Item Name: This allows you to enter or modify the name of the Hotkey you
have selected from the list above.
Add: Adds a blank Hotkey definition at the end of the list.
Insert: Adds a blank Hotkey definition before the one currently
highlighted in the displayed list.
Duplicate: Adds a copy of the currently selected Hotkey definition at
the end of the list.
Delete: Remove the selected Hotkey definition.
Edit: Calls the Function Editor which allows you to make changes to the
selected Hotkey. You can also edit a Hotkey definition by double-
clicking on its entry.
System-global Hotkey: Installs the selected hotkey into the Amiga
Commodities system which makes it available #
throughout the system. By default, this is not
selected and the hot key will be active only when
Opus is the active program.
Save: Saves the currently displayed set of Hotkeys to disk and updates
the Hotkeys used by the system. Note that this saves the Hotkeys
using the 'current' filename, i.e. the same name under which they
were last loaded. Any previous file of this name will be
overwritten.
Use: Updates the Hotkeys used by the system but does not save them to
disk.
Cancel: Cancels all changes you have made to the Hotkeys.
The Hotkey Editor Menus
As with the other editors in Opus 5, there are extra options provided by
menus. These are:-
130 Directory Opus 5
The Project Menu
New: Creates a new blank Hotkey list.
Open: Displays a file requester allowing you to load a new set of
Hotkeys.
When first run, Opus uses a default filename for the Hotkeys. Once you
load a new set of Hotkeys using a different name, this new name will be
kept and used internally as the reference to that set of Hotkeys. If you
subsequently save the particular set of Hotkeys, it will be saved under
this name unless you use the SaveAS option. If you save the Environment,
this 'new' filename will be stored with the environment.
Save: Saves the displayed set of Hotkeys to disk under the current name.
SaveAs: Saves the current set of Hotkeys but allows you to select a new
filename.
Quit: Same as Cancel above.
The Edit Menu
Reset to Default: Resets the Hotkeys to the default set as defined when
you installed Directory Opus 5. Because there are
many settings, these defaults are not actually built-
in to Opus 5, instead Opus will look for and load
special default files.
Last Saved: Reloads the last saved set of Hotkeys and resets the
display.
Restore: Restores the Hotkeys to the state when you first opened the
Hotkey Editor.
Directory Opus 5 131
Sample HotKeys
A simple example of a Hotkey would be to display a specific directory or
disk. For example, add a Hotkey as follows:-
Name: Read "RAM"
Key: lalt r
Command: SCANDIR "RAM:"
Pressing the LALT plus the 'r' key will display the contents of your Ram
Disk.