这个题不明白。帮看看。谢谢

来源:百度知道 编辑:UC知道 时间:2024/06/05 02:25:01
Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
If (Button And 3) = 3 Then
Print "AAAA";
End If
End Sub
为什么同时按左右键并移动鼠标,不能成功在窗体上输出“AAAA”啊?谢谢


Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
If (Button And 2) = 2 Then
Print "AAAA";
End If
End Sub
按右键并移动鼠标,就能实现输出。

为什么啊

汗…右键功能“选中”左健功能“选项”!你都点电脑怎么去识别啊

Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button = 3 Then
Print "AAAA";
End If
End Sub
Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button = 2 Then
Print "AAAA";
End If
End Sub
zheyang jiu xing le

3是左右键同时按下
4是中键
1左
2右