ns=2;s=DEPRAG Smart/Local/MouseFunctions/StartDetectingMouseClick
Starts monitoring the position of the mouse when a mouse button is pressed.
In addition to the parameters already explained, the following variables must be created / transferred for the implementation in TwinCAT 3:
VAR
bMouseFunctionsStartDetectingMouseClick : BOOL;
OutputDataMouseFunctionsStartDetectingMouseClick : ST_VoidOutputData;
hrMouseFunctionsStartDetectingMouseClick : HRESULT;
fbMouseFunctions : FB_MouseFunctions;
END_VAR
hrMouseFunctionsStartDetectingMouseClick := fbMouseFunctions.StartDetectingMouseClick(
bExecute := bMouseFunctionsStartDetectingMouseClick,
ConnectionHandle := depragSmartConnection.ConnectionHandle,
OutputData => OutputDataMouseFunctionsStartDetectingMouseClick);
IF hrMouseFunctionsStartDetectingMouseClick <> S_FALSE THEN
bMouseFunctionsStartDetectingMouseClick := FALSE;
END_IF
For examples and explanations regarding the calls of nodes via Siemens TIA Portal please refer to the sub-menu "Siemens TIA Portal" in section "Getting Started".