마우스 오토 클릭
*
Public Class Form1
Declare Sub mouse_event Lib "user32.dll" Alias "mouse_event" (ByVal dwflags As Int32, ByVal dx As Int32, ByVal by As Int32, ByVal cbuttons As Int32, ByVal dwextrainfo As Int32)
Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click

End Sub

Private Sub Button2_Click(sender As Object, e As System.EventArgs) Handles Button2.Click
Timer1.Stop()
End Sub

Private Sub Button3_Click(sender As Object, e As System.EventArgs) Handles Button3.Click
TextBox1.Text = TextBox1.Text + 1
End Sub

Private Sub Timer1_Tick(sender As System.Object, e As System.EventArgs) Handles Timer1.Tick
Windows.Forms.Cursor.Position = New System.Drawing.Point(Windows.Forms.Cursor.Position)
mouse_event(&H2, 0, 0, 0, 1)
mouse_event(&H4, 0, 0, 0, 1)
End Sub
End Class

이 게시물을

댓글'1'

이 댓글을

공유하기

SEARCH

MENU NAVIGATION