Buttons Function Reference

sButtons

Buttons Function Reference | Example

This function returns the associated numbers for the button that has been pressed on the device.

<DllImport("SapphireButtons.dll")> _
Public Function sButtons(ByVal lLicence As Integer, ByRef lKey1 As Integer, ByRef lKey2 As Integer) As Integer
End Function

Parameters

  lLicence
    An integer specifying the licence number of the registered utility. If using in demo mode, enter 1234567890.
  lKey1
    An integer that stores the first button number.
  lKey2
    An integer that stores the second button number.

Return Values

  Returns a number indicating whether a button has been pressed, 0 indicates that no button was pressed.

Remarks

  The reason for having two key values for the button number is because some buttons are identified by only one number whereas other require two.