ciao a tutti.
vorrei sapere come si faccio a generare un evento click (destro) nelle stesse coordinate dove è il mouse. non mi serve quindi settare nuove coordinate ma solo come generare l'evento click.
ho provato con:
codice:
    Declare Sub mouse_event Lib "user32" Alias "mouse_event" (ByVal dwFlags As Integer, ByVal dx As Integer, ByVal dy As Integer, ByVal cButtons As Integer, ByVal dwExtraInfo As Integer)

    Private Const MOUSEEVENTF_ABSOLUTE = &H8000 ' absolute move

    Private Const MOUSEEVENTF_LEFTDOWN = &H2 ' left button down

    Private Const MOUSEEVENTF_LEFTUP = &H4 ' left button up

    Private Const MOUSEEVENTF_MOVE = &H1 ' mouse move

    Private Const MOUSEEVENTF_MIDDLEDOWN = &H20

    Private Const MOUSEEVENTF_MIDDLEUP = &H40

    Private Const MOUSEEVENTF_RIGHTDOWN = &H8

    Private Const MOUSEEVENTF_RIGHTUP = &H10

    Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick

        mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 1)

    End Sub
ma non va :master:

cosa sbaglio?