home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 11 Util
/
11-Util.zip
/
kbdplus.zip
/
Macros.hlp
(
.txt
)
< prev
next >
Wrap
OS/2 Help File
|
1998-04-22
|
34KB
|
937 lines
ΓòÉΓòÉΓòÉ 1. Introduction ΓòÉΓòÉΓòÉ
Keyboard Plus provides extensive macro support for OS/2 Warp:
Insert pieces of text by typing a hotkey, including the current date or
time, or the output from a program
Run programs or open objects by typing a hotkey
Make use of the Windows 95 keys on your keyboard
Define accelerator keys for applications which lack them
Set up application-specific macros using macrosets
The best way to get to grips with Keyboard Plus is to fiddle with the program,
asking for help (press F1 or press a Help button) to find out more. There is a
tutorial which will take you through the steps to creating a new macro which
uses a custom function.
Choose one of the following topics for further information:
Limitations
Frequently asked questions
Support
You can get back to this page by choosing General Help from a help menu.
ΓòÉΓòÉΓòÉ 2. Frequently asked questions ΓòÉΓòÉΓòÉ
1. How can I prune the log file?
Delete the file "Macros.log" from the Keyboard Plus program directory.
2. When I press the Record button in the macro dialog, nothing happens.
Delete the file "MacroRec.dat" from the Keyboard Plus program directory.
3. How can I change the colours?
Use the OS/2 Scheme Palette, in the System Setup folder. When you shut
down Keyboard Plus, the colours (and fonts too, while we're on the
subject) will get saved.
4. I can't run more than one copy of the program at a time.
Correct. That's a feature, that is. Why do you want to run more than one
copy of the program at a time?
5. Why are there so many Keyboard Plus executables?
That's just the way it came out...
6. How do I report a bug?
See Support
ΓòÉΓòÉΓòÉ 3. Support ΓòÉΓòÉΓòÉ
This is free software, so I can make no guarantees!
That said, if you find a bug, want to translate it to another language, or
(horror of horrors) like Keyboard Plus, please send me mail at
<john_fairhurst@iname.com> - in particular I'd be interested in uses people
have found for the program and extra features they might like to see.
Application source code (C++, some C) is available on request.
ΓòÉΓòÉΓòÉ 4. Limitations ΓòÉΓòÉΓòÉ
Or, if you prefer, Bugs...
VIO (Eg. OS/2 windows) support is flakey - printable characters seem to
work.
Keyboard Plus is not MBCS aware.
Recursive macro execution isn't allowed.
Exported things don't show up until you do a refresh. This appears to be
a problem with my end of the source-rendering protocol (any hints
gratefully received!)
ΓòÉΓòÉΓòÉ 5. Using Windows 95 keys ΓòÉΓòÉΓòÉ
You can use Keyboard Plus to make those three keys do things. Just define some
macros with the Windows 95 keys as the hotkey, and whatever you want as the
value - for example, to set the keys up to work as they do in Windows 95 (more
or less), set up the following in the global macroset:
Hotkey LH-Win95
Value Ctrl+Esc
Hotkey RH-Win95
Value Ctrl+Esc
Hotkey Win95-menu
Value Shift+F10
Now you can display the window list by pressing either key, or display any
context menu for the currently selected thing by pressing the menu key.
ΓòÉΓòÉΓòÉ 6. Inserting the current date or time ΓòÉΓòÉΓòÉ
You can use Keyboard Plus to insert the time into a document using a built-in
function. Define a couple of macros in the global macroset:
Hotkey Ctrl+Shift+D
Value #DATE
Hotkey Ctrl+Shift+T
Value #TIME
Now when you want to insert the date into your current document, just press
Ctrl+Shift+D. When you want to insert the time, press Ctrl+Shift+T.
ΓòÉΓòÉΓòÉ 7. Defining new accelerators ΓòÉΓòÉΓòÉ
You can use Keyboard Plus to define accelerators - key presses that simulate
you going through an application's menu system and choosing a command.
For example, in Netscape there's no accelerator to get the document source. The
command's there, on the View menu. To define Ctrl+S to get the document source,
you could define the macro:
Hotkey Ctrl+S
Value Alt,V,S
The Alt keypress activates the menu, and the letters choose items from the
current menu.
Now, because that command only makes sense if the current application in
Netscape (in your editor, you might want Ctrl+S to do something else - you
definitely don't want it issuing an Alt-V-S sequence!), you could define a new
macroset specifically for Netscape to hold this macro, and any others you
think up.
ΓòÉΓòÉΓòÉ 8. Entering text ΓòÉΓòÉΓòÉ
You can use Keyboard Plus to save on typing of repetitive phrases, for example
your name. You could define the following macro in the global macroset :
Hotkey Ctrl+Shift+N
Value J,o,e,Space,S,m,i,t,h
Then, whenever you were filling in a form and need to type in your name, just
press Ctrl+Shift+N, and in goes your name. (If you're called Joe Smith. But
you get the idea.)
This is the most fundamental thing Keyboard Plus does.
ΓòÉΓòÉΓòÉ 9. Getting the output from a program ΓòÉΓòÉΓòÉ
You can use Keyboard Plus to run a program which prints some text and paste
that text into the activate window.
You do this by definining a macro (probably in the global macroset) which uses
the built-in function READ, for example:
Hotkey Alt+F8
Value #READ(C:\PROGS\QUOTE.CMD)
Here, QUOTE.CMD is a little REXX program which picks a random quote from a
file. Whenever you press Alt+F8, the program runs and the random quote is
pasted into the current window.
If you want to run the program with parameters, you'll need to define a custom
function.
ΓòÉΓòÉΓòÉ 10. Running a program or opening an object ΓòÉΓòÉΓòÉ
You can use Keyboard Plus to launch programs using the built-in function OPEN.
For example, you could define a macro in the global macroset:
Hotkey Ctrl+Shift+N
Value #OPEN(C:\NETSCAPE\NETSCAPE.EXE)
Now, whenever you press Ctrl+Shift+N, Netscape will start.
If you wanted to pass some parameters to the program, you'll need to define a
custom function.
ΓòÉΓòÉΓòÉ 11. Defining application-specific macros ΓòÉΓòÉΓòÉ
You can set Keyboard Plus up so that (for example) Ctrl+F11 is defined to have
one value normally, but does something different in other applications.
You might want to do this to make the hotkey have the same meaning in both
cases, even though the applications have different layouts.
The steps to follow would be:
1. Define a macro in the global macroset with the normal value
2. Create a macroset for the different application
3. Copy the macro you created into the new macroset
4. Edit the value in the new macroset
ΓòÉΓòÉΓòÉ 12. Macros ΓòÉΓòÉΓòÉ
Macros are the basic thing that Keyboard Plus is about. A macro has two parts:
A hotkey
A value
When you type a hotkey that corresponds to a macro, the value of that macro is
used to determine what happens next. This usually involves inserting text at
the cursor, but may start programs or do some work to find out what that text
should be.
Each macro is the member of a macroset, which determines in which applications
the hotkey works.
Choose one of the following topics for further information:
Creating a new macro
Editing a macro
Copying a macro
Importing and Exporting macros
ΓòÉΓòÉΓòÉ 13. Creating a new macro ΓòÉΓòÉΓòÉ
To create a new macro, first decide which macroset you want it to belong to.
Then open the macro container for this macroset.
Any one of the following will create a new macro:
Open the background context menu and choose New Macro
Double-click the macro template object.
Drag a new macro from the macro template object
Choose Macros, Create new from the menu bar
Alternatively, you could copy another macro.
In any case, the Macro Properties dialog is opened.
ΓòÉΓòÉΓòÉ 14. Editing a macro ΓòÉΓòÉΓòÉ
To edit a macro, first open the macro container for the macroset to which it
belongs. Then do one of the following to open the Macro Properties dialog:
Double-click the macro object
Open the macro object's context menu and choose Open
Select the macro object and choose Selected, Open from the menu bar
ΓòÉΓòÉΓòÉ 15. Copying a macro ΓòÉΓòÉΓòÉ
There are two slightly different operations here:
1. Copying a macro in its macroset
Either:
Drag the macro you want to copy onto a blank area of the container
Open the macro object's context menu and choose Copy
Select the macro object and choose Selected, Copy from the menu bar
The Macro Properties dialog is opened, because the macro's hotkey
clashes.
2. Copying a macro from its macroset to another.
Drag the macro into the macro container which belongs to the macroset you
want to copy the macro to. The Macro Properties dialog might be opened if
the hotkey clashes.
ΓòÉΓòÉΓòÉ 16. Importing and Exporting ΓòÉΓòÉΓòÉ
Active macros and macroset are stored within Keyboard Plus. However, it is
possible to copy or move objects into the filesystem, and then copy them back
again at a later stage. These processes are known as importing and exporting.
The simplest way to do this is using drag and drop - just drag the object from
a Keyboard Plus window to a folder on the desktop to import, or drag a
previously exported object into a Keyboard Plus window.
Alternatively, Import and Export options are available from the usual context
menus and the menu bar.
Note that:
1. When you export a macroset, all macros in it are exported as well.
2. When you export a macro, all mentioned functions are exported as well.
ΓòÉΓòÉΓòÉ 17. Macro Properties dialog ΓòÉΓòÉΓòÉ
This dialog allows you to edit a macro. There are two sections to the dialog
box:
Hotkey
Type the name of a valid hotkey into the entryfield, or press the Edit
button to open the Hotkey editor.
Value
Either type a value description into the text area, or record a key
sequence:
1. Press the Record button. The LED starts flashing.
2. Type in the text you want the value to be (you won't see anything
unless you click somewhere else in the desktop).
3. Press the Stop button. The LED stops flashing and the value
description is filled in.
4. Edit the value description to correct any mistakes or import any
functions you need.
You can drag a function from the Functions window into the text area to
insert its name in the right format (though you may need to add
arguments).
Press the OK button to confirm your changes, or Cancel to abort the operation.
ΓòÉΓòÉΓòÉ 18. Macro Window ΓòÉΓòÉΓòÉ
This container window displays the macros defined in a single macroset; the
name of that macroset is displayed in the window's titlebar. Display it by
opening a macroset object in the macroset container.
There are two ways of interacting with Keyboard Plus' containers, via the menu
bar and via container and object context menus (or of course a combination of
the two). Besides help, the menus give you access to:
Control over the view
I like details view with mini-icons for macro containers, so I can see
what the value associated with a macro is, as well as the hotkey.
Actions on macros
- Create
- Open
- Copy
- Import & Export
- Delete
Actions on the macroset
- Show properties
- Empty
- Export
Other windows
- Macroset window
- Functions window
ΓòÉΓòÉΓòÉ 19. Hotkeys ΓòÉΓòÉΓòÉ
A hotkey is a trigger that identifies a macro, something like F3 or
Shift+Ctrl+R (which means: while holding down both the shift and ctrl keys, tap
the R key).
The easiest way to enter a hotkey is to use the Hotkey editor. Alternatively,
you can type the name of the hotkey. This section describes what
key-combinations are valid Keyboard Plus hotkeys, and gives some notes on use:
1. Any function key plus some, all, or none of Shift, Alt or Ctrl. In this
context, function key means either something like F1 or a Windows 95 key,
eg:
F8
Ctrl+Shift+F3
Win95-menu
Alt+LH-Win95
2. A letter of the alphabet, optionally plus shift, plus either or both of
Ctrl or Alt, eg:
Ctrl+Shift+D
Ctrl+Q
3. A graphical character plus either or both of Ctrl or Alt. In this
context, graphical character means any printable character that's not a
letter or space, eg:
Ctrl+!
Alt+?
Some hotkeys don't work as anticipated, for example F10 - you'll find the menu
of the active window gets selected instead of your macro getting run. Equally,
if your hotkey corresponds to an accelerator the active window has defined,
that'll get fired off instead of your macro. This is working as designed, to
minimize applications doing odd things, and a reason why you should consider
using multiple modifiers for non-function key hotkeys.
Pretty obviously, there can only be one macro with a given hotkey in a
macroset.
ΓòÉΓòÉΓòÉ 20. Hotkey Editor ΓòÉΓòÉΓòÉ
Use this dialog to modify or enter a new hotkey. Display it by pressing the
Edit button in the Macro Properties dialog.
The top half of the dialog determines the modifiers which apply to the hotkey.
The entryfield is not a standard entryfield. To enter the none-modifier part of
the hotkey, click in the entryfield to make it active, and then press the key:
its name should be filled in. For example, to create the hotkey Ctrl+F8:
1. Check the Ctrl checkbox; uncheck the others.
2. Click in the entryfield.
3. Press the F8 key on your keyboard.
4. The OK button should now be clickable, so press it.
Note that you can only press the OK button if the dialog contents describe a
valid hotkey.
ΓòÉΓòÉΓòÉ 21. Values ΓòÉΓòÉΓòÉ
A value is a sequence of items that determines what happens when the hotkey of
a macro gets pressed. The easiest way to explain this is by example, so here's
a simple value:
H,e,l,l,o,!
Now, when this value gets run, the text Hello! is inserted, as though you'd
pressed those keys yourself. Note that the commas are just punctuation,
separating one item from the next.
You can enter a value in the Macro Properties dialog, where there are
facilities for recording your keystrokes to avoid having to type all those
commas and remember key names.
If you want to enter a non-printable key in a value (for example Alt or Enter),
you do this by typing the name of the key, a list of which is here, eg:
Alt,E,W
The third type of item is a function call. This is identified by the # symbol,
eg:
#TIME
T,o,d,a,y,Space,i,s,Space,#SDATE
#OPEN(H:\NETSCAPE\NETSCAPE.EXE)
#MYFUN
List of built-in functions.
ΓòÉΓòÉΓòÉ 22. Key names ΓòÉΓòÉΓòÉ
This table shows the name you should use to include non-printable characters in
a value. Most of them are pretty obvious, I hope.
Key Name
Break Break
Backspace Backspace
Tab Tab
Return Return
Shift Shift
Ctrl Ctrl
Alt Alt
Alt-Graphics Alt-Gr
Pause Pause
Caps Lock CapsLock
Escape Esc
Space bar Space
Page Up Pg-Up
Page Down Pg-Down
End End
Home Home
Left cursor Left
Up cursor Up
Right cursor Right
Down cursor Down
Print Screen PrintScrn
Insert Insert
Delete Delete
Scroll lock Scroll-lock
Numlock Numlock
Keypad Enter Enter
SysRq SysRq
Left-hand Windows 95 key LH-Win95
Right-hand Windows 95 key RH-Win95
The Windows 95 popup menu key Win95-menu
F1 to F24 F1 to F24
ΓòÉΓòÉΓòÉ 23. Functions ΓòÉΓòÉΓòÉ
Keyboard Plus uses functions:
1. To allow a macro to produce a different string each time you use it, for
example the current time
2. To allow a macro to run other programs
Each function has a name, and some functions may take parameters. An example
of calling a function in a value is:
#MYFUN(PARAMETERS)
There is no limit to the number of functions present in a value.
Keyboard Plus supports several built-in functions, which do not appear in the
Functions window.
Functions which you can define are known as custom functions.
ΓòÉΓòÉΓòÉ 24. Built-in functions ΓòÉΓòÉΓòÉ
This section lists the built-in functions, which do not appear in the Functions
window and are always available.
TIME
Returns the current time, in the format defined in your system's
Country settings. Eg:
#TIME
SDATE
Returns the current date, in the format defined in your system's
Country settngs. Eg :
#SDATE
DATE
Returns the current date. This function may have an argument, which
is interpreted as a format-specifier to the ANSI C function
strftime. The default format-specifier is %A %d %B %Y, which is used
if no argument is supplied. Eg:
#DATE(%A)
PAUSE
This function must have an argument, which should be a number.
Execution of the value pauses for a number of milliseconds equal to
the argument. Eg:
#PAUSE(100)
JN
This function generates a WM_JOURNALNOTIFY message on playback
according to its argument. Don't worry about it; if you see one,
don't delete it.
#JN(0002-0054)
OPEN
This function must have an argument, which should either be an
executable file (.EXE, .CMD) or the name of a WPS object (eg.
<WP_DESKTOP>). The program or object is run (from the Keyboard Plus
directory) or opened as appropriate. Eg:
#OPEN(H:\NETSCAPE\NETSCAPE.EXE)
#OPEN(<WP_LAUNCHPAD>)
READ
This function must have an argument, which should be an executable
file. The program is run, and its output is inserted into the
playback sequence. The program should not take too long to run! Eg:
#READ(H:\PROGS\QUOTE.CMD)
#
This function returns the # character, which is otherwise
non-representable in a value. Eg:
##
,
This function returns the , character, which is otherwise
non-representable in a value. Eg:
#,
ΓòÉΓòÉΓòÉ 25. Custom functions ΓòÉΓòÉΓòÉ
You need to define a custom function if you wish to do a READ or OPEN (see
Built-in Functions) and either:
Supply parameters to the program
Set the working directory of the program to something other than the
Keyboard Plus directory.
Note that any parameters you give to a custom function are supplied as extra
parameters to the program.
To define a new custom function, open the Functions window and press the New
button to open a Function Properties dialog.
ΓòÉΓòÉΓòÉ 26. Functions Window ΓòÉΓòÉΓòÉ
This window displays the custom functions you have defined. Display the window
by choosing Functions from a container context menu or the Macroset Window menu
bar.
You can perform the following actions related to functions from this window:
New
The Function Properties dialog is displayed for the new function
Edit
The Function Properties dialog is displayed for the function in question
Delete
The function in question is deleted. You may still have macros which
reference the function, in which case they will no longer work.
You can drag a function object to the value text area in the Macro Properties
dialog to insert its name.
ΓòÉΓòÉΓòÉ 27. Function Properties dialog ΓòÉΓòÉΓòÉ
Use this dialog to alter or set up a custom function.
The top half of the dialog lets you configure what program will be run by your
function, what directory it will start up in (you can leave this field blank),
and any parameters to supply to the program.
Use the Action section to decide whether your function should behave as a READ
or OPEN function.
Finally, you need to give a name for your function which can be used in a
value.
ΓòÉΓòÉΓòÉ 28. Macrosets ΓòÉΓòÉΓòÉ
A Macroset is a group of macros. Each macroset corresponds to a single program
(.EXE). There is one special macroset, the global macroset, in which you put
macros which you want to apply to all programs equally.
When Keyboard Plus notices a potential hotkey being pressed, it first looks for
a macroset for the current program. If it finds one, it looks in there for a
macro with the hotkey. If either of these tests fail, Keyboard Plus examines
the global macroset for a macro with the hotkey.
This means you can override general behaviour in specific applications.
Choose one of the following topics for further information:
Creating a new macroset
Editing a macroset
Copying a macroset
Emptying a macroset
Importing & Exporting macrosets
You can create new macrosets from the Macroset Window.
ΓòÉΓòÉΓòÉ 29. Creating a new macroset ΓòÉΓòÉΓòÉ
To create a new macroset, surface the macroset container and do one of the
following:
Open the background context menu and choose New Macroset
Double-click the macroset template object.
Drag a new macro from the macroset template object
Choose Macrosets, Create new from the menu bar
Alternatively, you could copy another macroset.
In any case, the Macroset Properties dialog is opened.
ΓòÉΓòÉΓòÉ 30. Editing a macroset ΓòÉΓòÉΓòÉ
To edit a macroset, either choose Properties from a menu, or hold down an Alt
key whilst double-clicking on its object in the macroset container.
The Macroset Properties dialog is opened.
ΓòÉΓòÉΓòÉ 31. Copying a macroset ΓòÉΓòÉΓòÉ
To copy a macroset, either choose Copy from a menu, or drag it to an area of
empty space in the container. Which ever method you use, the macroset
application will clash, and so the Macroset Properties dialog is opened.
ΓòÉΓòÉΓòÉ 32. Emptying a macroset ΓòÉΓòÉΓòÉ
When you empty a macroset, all the macros in that macroset are deleted. You can
empty a macroset by choosing Empty from a menu.
ΓòÉΓòÉΓòÉ 33. Macroset Window ΓòÉΓòÉΓòÉ
This container window displays the macrosets Keyboard Plus knows about,
including the global macroset.
There are two ways of interacting with Keyboard Plus' containers, via the menu
bar and via container and object context menus (or of course a combination of
the two). Besides help, the menus give you access to:
Control over the view
I like icon view with normal icons for this container.
Actions on macrosets
- Create
- Alter properties
- Copy
- Empty
- Import & Export
- Delete
Other windows
- Functions window
- Settings Window
- Log Window
ΓòÉΓòÉΓòÉ 34. Macroset Properties ΓòÉΓòÉΓòÉ
Use this dialog to configure a macroset.
Use the Program entry field to enter the name of the application program (.EXE
file) which you wish the macroset to apply to. If this field is greyed out,
then you are looking at the global macroset, which doesn't apply to a single
program.
You can enter a name for the macroset in the Title text area, which does not
affect the running of the program in any way. If this field is inactive then
this is the the global macroset, whose name is fixed.
ΓòÉΓòÉΓòÉ 35. Macroset Name Clash ΓòÉΓòÉΓòÉ
You have either:
1. Tried to import a macroset which applies to a program for which there is
already a macroset. There can only be one macroset per program, and so
something needs to change.
2. Tried to import a global macroset. There can only be one global macroset,
so something needs to change.
There are four options available at this stage:
1. Press Cancel. The import operation is aborted.
2. Select the Replace radio button. The macroset which is being imported
replaces the current one.
3. Select the Merge radio button. The macros which belong to the macroset
being imported are added to the current macroset.
4. Select the Rename radio button, and type a new program name into the
entryfield. The macroset is imported under a different name.
ΓòÉΓòÉΓòÉ 36. Function Name Clash ΓòÉΓòÉΓòÉ
You have tried to import a macro or a macroset containing a macro which defines
a custom function with the same name as an already existing function.
There are three options available at this stage:
1. Press Cancel. The entire import operation is aborted.
2. Select the Replace radio button. The new function replaces the old one.
3. Select the Rename radio button. The function being imported is renamed,
as are all references to it in the importing macros.
ΓòÉΓòÉΓòÉ 37. Log Window ΓòÉΓòÉΓòÉ
Sometimes messages are generated by Keyboard Plus at a time when it's not
appropriate to pop up a message box, for example when a program to be run as
part of a value cannot be found.
These messages are collected here.
ΓòÉΓòÉΓòÉ 38. Settings Window ΓòÉΓòÉΓòÉ
Use this window to configure various behaviours of Keyboard Plus. Any changes
you make will take affect when you either press the `OK' button or close the
window, and be saved when you quit Keyboard Plus for future runs.
Choose one of the following topics for further information:
User interface settings
Confirmations settings
ΓòÉΓòÉΓòÉ 39. User interface settings ΓòÉΓòÉΓòÉ
General UI settings:
Show folder menubars
When this is checked, Keyboard Plus displays menu bars in the container
windows.
Show template objects
When this is checked, Keyboard Plus displays template objects in the
containers.
Startup minimized
If checked, Keyboard Plus will start up minimized. Good if you have the
program in your startup folder.
Sound alarm on messages
If checked, a warning will sound when a message is added to the Log
Window.
ΓòÉΓòÉΓòÉ 40. Confirmations ΓòÉΓòÉΓòÉ
Confirmations on various actions:
Confirm on function delete
If checked, Keyboard Plus will ask you before deleting a function.
Confirm on macroset delete
If checked, Keyboard Plus will ask you before deleting a macroset.
Confirm on macro delete
If checked, Keyboard Plus will ask you before deleting a macro.
Confirm on macroset empty
If checked, Keyboard Plus will ask you before emptying a macroset.
Confirm on hotkey clash edit
If checked, Keyboard Plus will ask you before displaying the Macro
Properties dialog dialog when you import or copy a macro into a macroset
and there's a clash of hotkey.
ΓòÉΓòÉΓòÉ 41. Folder menu bars ΓòÉΓòÉΓòÉ
By default, Keyboard Plus displays menu bars across the top of both its
container windows. You can alter this behaviour (there's nothing there you
can't access through context menus) from the User interface settings.
ΓòÉΓòÉΓòÉ 42. Template objects ΓòÉΓòÉΓòÉ
By default, Keyboard Plus displays template objects for creating new macros and
macrosets. You can alter this behaviour (you can create new objects from the
background context menu) from the User interface settings.
ΓòÉΓòÉΓòÉ 43. Tutorial ΓòÉΓòÉΓòÉ
This brief guide will take you through the process of creating a custom
function and a macro to use it.
The example used is starting Netscape Navigator pointing at a URL.
There needs to be a custom function so we can pass parameters to the program.
1. Creating the function
2. Creating the macro
ΓòÉΓòÉΓòÉ 44. Creating the function ΓòÉΓòÉΓòÉ
This section describes how to create the custom function to start Netscape.
1. Open the Functions window by choosing Program, Functions from the main
Keyboard Plus window.
2. Press the New button to open a Function Properties dialog.
3. Fill in the dialog:
Program NETSCAPE.EXE
Use Find if you like
Parameters -3
Always pass this parameter to Netscape
Action Run program / open object
Name NETSCAPE
Leave the Working directory field empty.
4. Press OK. The new function appears in the container.
Creating the macro
ΓòÉΓòÉΓòÉ 45. Creating the macro ΓòÉΓòÉΓòÉ
This section describes how to create the macro to call the NETSCAPE function
defined earlier.
1. Open the global macroset by double-clicking on the object marked Global
Macros in the main Keyboard Plus window.
2. Double-click the New Macro template object to display a Macro Properties
dialog
3. Fill in the dialog:
Hotkey Ctrl+Shift+N
Use Edit if you like
Value #NETSCAPE(http://www.unitedmedia.com/comics/dilbert/)
4. Press OK. The new macro appears in the container.
You can now press Ctrl+Shift+N to start up Netscape at today's Dilbert.
ΓòÉΓòÉΓòÉ 46. Keys Help ΓòÉΓòÉΓòÉ
Keyboard Plus supports the standard kind of keystrokes in its containers:
Return to open an object
Alt+Return to show an object's properties
Delete to delete an object
Shift+F10 to open an object's context menu
If you think you're experiencing odd behaviour when you press keys, make sure
you're not experiencing the effects of macros you've defined!
ΓòÉΓòÉΓòÉ <hidden> ΓòÉΓòÉΓòÉ
An accelerator is an application-defined hotkey that performs an
application-specific function.
A neat thing you can do with Keyboard Plus is to define your own accelerators,
by setting the value to something like Alt,E,W to spellcheck the current word
in EPM.