StopDetectingMouseClick

TwinCAT TIA
Local Mouse functions

ns=2;s=DEPRAG Smart/Local/MouseFunctions/StopDetectingMouseClick

Stops monitoring the position of the mouse when a mouse button is pressed.

Returns:

Examples:

In addition to the parameters already explained, the following variables must be created / transferred for the implementation in TwinCAT 3:

Beckhoff parameter:

    bMouseFunctionsStopDetectingMouseClick
    A boolean variable that can be used to trigger the execution of the StopDetectingMouseClick command.
    OutputDataMouseFunctionsStopDetectingMouseClick
    An instance of "ST_VoidOutputData" in which the return value of the StopDetectingMouseClick method is written.
    hrMouseFunctionsStopDetectingMouseClick
    This can be used to monitor the execution of the command. Error codes have the type "HRESULT".
    fbMouseFunctions
    An instance of the "FB_MouseFunctions" function block supplied with the DEPRAG Smart library.
    ConnectionHandle
    "ConnectionHandle" received when establishing a connection between DEPRAG Smart Server and your OPC UA client.


VAR
      bMouseFunctionsStopDetectingMouseClick    : BOOL;
      OutputDataMouseFunctionsStopDetectingMouseClick  : ST_VoidOutputData;
      hrMouseFunctionsStopDetectingMouseClick    : HRESULT;

      fbMouseFunctions  : FB_MouseFunctions;
END_VAR

hrMouseFunctionsStopDetectingMouseClick := fbMouseFunctions.StopDetectingMouseClick(
             bExecute    := bMouseFunctionsStopDetectingMouseClick,   
             ConnectionHandle := depragSmartConnection.ConnectionHandle, 
             OutputData   => OutputDataMouseFunctionsStopDetectingMouseClick);
IF hrMouseFunctionsStopDetectingMouseClick <> S_FALSE THEN 
      bMouseFunctionsStopDetectingMouseClick := 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".