I need code for Moving mouse from any point to coordinates 10,10 and click it.
Printable View
I need code for Moving mouse from any point to coordinates 10,10 and click it.
this is the code, i hope it for a good use:ehh:
Code:Public Class Form1
Declare Auto Function mouse_event Lib "user32.dll" (ByVal dwflags As Integer, ByVal dx As Integer, ByVal dy As Integer, ByVal dwData As Integer, ByVal dwExtraInfo As Integer) As Integer
Public Const MOUSEEVENTF_LEFTDOWN = &H2
Public Const MOUSEEVENTF_LEFTUP = &H4
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
End Sub
Private Sub cclick()
Windows.Forms.Cursor.Position = _
New System.Drawing.Point(10, 10)
mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0)
mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0)
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
cclick()
End Sub
End Class
THAT’S WHAT I'M TALKING ABOUT THANK YOU!!!:thumb::thumb::thumb: