Option ExplicitContoh penggunaan:
Private Declare Function GetSystemMetrics Lib "user32" (ByVal nIndex As Long) As Long
Private Const SM_CMOUSEBUTTONS As Long = 43
Public Function ButtonMouse()
ButtonMouse = GetSystemMetrics(SM_CMOUSEBUTTONS)
End Function
Private Sub Command1_Click()
MsgBox ButtonMouse
End Sub