*RegisterFunctionKeyProcedure()

Assigns Tcl procedures to function keys.

Syntax

*RegisterFunctionKeyProcedure (key, modifier, Tcl filename, Tcl procedure)

Application

HyperView, MotionView, HyperGraph

Inputs

key
The function key to be assigned to the Tcl procedure. Accepts an integer from 1 to 12.
modifier
The modifier (Shift, Ctrl, Ctrl+Shift) to be used with the function key. Accepts an integer from 0 to 3.
0
No modifier
1
shift
2
ctrl
3
Ctrl+Shift
Tcl filename
The full path to the Tcl file that contains the procedure.
Tcl procedure
The name of the procedure to call when the modifier and function key are pressed. Arguments for the Tcl procedure may also be included.

Context

*BeginDefaults() Block

Example

To assign the Tcl procedure change_layout in the file function_keys.tcl to Ctrl+F2 and pass in "1" as an argument for the procedure:
*Id("MotionView v8.0")
   *BeginDefaults()
   *RegisterFunctionKeyProcedure(2,1,"C:\function_keys.tcl", "change_layout 1")
*EndDefaults()

Comments

HyperWorks reserves F1 to launch the online help. F10, Shift+F10, Ctrl+F10, and Ctrl+Shift+F10 are used by the operating system as an Alt key for keyboards that do no have Alt keys.