How to make the mouse click

iversonmania

New member
Joined
Jul 27, 2009
Messages
3
Programming Experience
Beginner
VB.NET:
Imports System
Imports System.Drawing
Imports System.Windows.Forms


Public Class Form1

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click




 End Sub

Hello, I have a textbox and I have a button. Okey, when the button is clicked I want my mouse to go and click a certain position on my screen. How can I do that using Visual basic 2008 express??
whats the simple code for it? thank you very much. I am in need to use it for a big project
 
VB.NET:
Imports System
Imports System.Drawing
Imports System.Windows.Forms


Public Class Form1




    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

        Windows.Forms.Cursor.Position = New System.Drawing.Point(200, Button1.Location.Y + Me.Location.Y + 30)



    End Sub





End Class

By using that code, I am moving the mouse to a certain position on my screen once the button is clicked.

how can i make the mouse click on that particular position now???thank u
 
What is it over that you need a mouse click for? What is the purpose? More info is needed to come up with a solution for you.
 
Back
Top