HOOK - v14


hook                           sense=<i>, cmd=<string>

Function

The command calls the hook function in PLNGHOOK.DLL (DYNAINPUT) to calculate the buffer to display. The value represents the last parameter passed to the hook function "sense", which can be used to change the way to transform the values or to format the output string.

Parameters

sense=<i>

 

The SENSE= or S= switch can have the following values:

1 = x,y,z coordinates

2 = distance

3 = angle

 

Note: When the command executed with a  function PlngHookInitialize() from the PLNGHOOK.DLL  is called with parameter equal to value to allow a  custom initialisation of the hook function.

 

 

cmd=<string>

A string parameter passed to the function.  (New PlngHook.dll released)

Examples

HOOK SENSE=3

HOOK S=1

Notes

The command introduced in v12.5.4 replaces the usage of the COORDINATE command to set the initial value (sense) of the PlngHook.dll.

So, instead of using :

COORDINATE P=I, B=j, T=103

You must use now:

HOOK SENSE=3

HOOK S=3

The usage of the COORDINATE command is retained to avoid legacy coding problems, but the relevant functionality is be deprecated and removed in a future release.

 

New PlngHook.dll released with 14.4.1 b01 for CMD primer.

See also

polling, dynainput, coordinate