HyperWorks Desktop

*RegisterFunctionKeyProcedure()

Assigns Tcl procedures to function keys.

*RegisterFunctionKeyProcedure()

Assigns Tcl procedures to function keys.

Previous topic Next topic No expanding text in this topic  

*RegisterFunctionKeyProcedure()

Assigns Tcl procedures to function keys.

Previous topic Next topic JavaScript is required for expanding text JavaScript is required for the print function  

Syntax

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

Arguments

Name

Description

 

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.

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()

Application

HyperView, MotionView, HyperGraph

Context

*BeginDefaults() Block

Comments

HyperWorks reserves F1 to launch the on-line 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 thave alt keys.

See also

 

*RegisterCtrlKeyProcedure()

List of Preference Statements