Hi, im working on a mouse recorder.
My problem is that i cant get the mouse click to work, everything except for the mouse click works. I've tried with several tutorials around the web, but i get errors on the declarations because two of them are named mouse_event.
Thanks, Dajak.

Recommended Answers

All 2 Replies

what do u mean?...

When i run my mouse recorder it's like boring if it just moves the mouse, i need the code for a mouse click that doesn't collide with these declarations:

Private Declare Sub mouse_event Lib "user32.dll" (ByVal dwFlags As Int32, ByVal dx As Int32, ByVal dy As Int32, ByVal cButtons As Int32, ByVal dwExtraInfo As Int32)

    Private Declare Function SetCursorPos Lib "user32.dll" (ByVal X As Int32, ByVal Y As Int32) As Boolean
    Dim Pointsx(10000000) As String
    Dim Pointsy(10000000) As String
    Dim Lclick(10000000) As Boolean
    Dim Rclick(10000000) As Boolean
    Dim Ends(100000000) As String
    Dim count As String = 0
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.