This command can be used to bind ARexx commands to key combinations. |
|
KEYBOARD [NAME] <Name of key combination> ADD|REMOVE [KEY <Key combination>] [CMD <ARexx command>] |
|
/* Bind an ARexx script to the [Control]+A key combination. * When pressed, this will cause the ARexx script by the name * test.wb" to be executed. ARexx will search for that program * in the REXX:" directory. If no test.wb" file can * be found, ARexx will attempt to execute a script * by the name of test.rexx". */
ADDRESS workbench
KEYBOARD ADD NAME test1 KEY ,"ctrl a", CMD ,test`
/* Bind an ARexx script to the [Alt]+[F1] key combination. * When pressed, this will cause a short inline program to be * executed. */
KEYBOARD ADD NAME test2 KEY ,"alt f1", CMD `say 42"
/* Bind an ARexx script to the [Shift]+[Help] key combination. * When pressed, this will cause the Workbench About" menu item * to be invoked. */
KEYBOARD ADD NAME test3 KEY ,"shift help", CMD `MENU INVOKE WORKBENCH.ABOUT"
/* Remove the first key combination we added above. */
KEYBOARD REMOVE NAME test1