CP9090-S100: Properties

SKey

Returns the status of specified SKey on control panel connected to CP9030.

HRESULT SKey(
        [in] short nIndex,
        [out, retval] VARIANT_BOOL* pVal
);

 

Parameters

nIndex
Number of SKey, 1..27
pVal
TRUE if SKey pressed. FALSE if not pressed

 

Comment

You can poll the state of an SKey by reading the property "SKey". If you set "CycleEnabled" to TRUE, SKey-events will be fired if state of an SKey changed.

 

Sample VB-Syntax

Dim bSKey01 as Boolean

bSKey09 = CP9030W9x1.SKey(9)