|
模拟鼠标移动, 也可以加入模拟鼠标的单出事件,这里省去。。。- Private Declare Function SetCursorPos Lib "user32" (ByVal X As Long, ByVal Y As Long) As Long
- Private Declare Sub mouse_event Lib "user32" (ByVal dwFlags As Long, ByVal dx As Long, ByVal dy As Long, ByVal cButtons As Long, ByVal dwExtraInfo As Long)
- Dim X As Long
- Dim Y As Long
- Dim I As Long
- Private Sub Form_Load()
- Me.TimerInterval = 6000
- X = 80
- Y = 300
- I = 1
- End Sub
- Private Sub Form_Timer()
-
- CustMoveMouse
- End Sub
- Private Sub CustMoveMouse()
- If I = 10 Then
- I = 1
- End If
- SetCursorPos X * I, Y
- I = I + 1
- End Sub
复制代码 |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?注册
x
|