变换鼠标左右键 添加 Command1 Private Declare Function SwapMouseButton Lib "user32" (ByVal bSwap As Long) As Long Private Sub Command1_Click() SwapMouseButton True MsgBox "退出前你现在是左撇子" End Sub Private Sub Form_Unload(Cancel As Integer) SwapMouseButton False MsgBox "鼠标左右键已灰复" End Sub 2
得知鼠标位置 '添加 Timer1 Option Explicit '*********************** 得知鼠标位置的 API ******************************* Private Declare Function GetCursorPos Lib "user32" (lpPoint As POINTAPI) As Long Private Type POINTAPI X As Long Y As Long End Type '************************************************************************* Private Sub Form_Load() Timer1
Interval = 10 End Sub Private Sub Timer1_Timer() Dim Point As POINTAPI GetCursorPos Point Me
Caption = Point
X & " " & Point
Y End Sub 3
动画鼠标 '添加 Picture1 Option