K i need to get the mouse click co-ordiantes outside of the form.
i know how to get them inside the form;

Private Sub mouse1_click() Handles me.MouseClick
        set1X = MousePosition.X
        set1Y = MousePosition.Y
End Sub

but i need to get cordinates from anywhere on the screen.
and if it helps i need this for an auto clicker.

pick on timer

Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
        set1X = MousePosition.X
        set1Y = MousePosition.Y
        Label1.Text = set1X & ":" & set1Y
End Sub

decrease an interval timer to get position more faster.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.