Record and Send Mouseclicks

SeaStorm

Newcomer
Joined
Aug 20, 2008
Messages
1
Hello

Im trying to create a Tool to create demos / presentations and for this I need to record mousemovements and clicks ( outside of the Form )as well as i need to simulate them.
Recording and replaying the movement already works fine, but I cant figure out how to capture klicks ( maybe mousedown and up on their own ).
Im googling since hours, but all I can find are codesnippets that SHOULD do the Job, but do not :(

Anyone here has an Idea how to do this ? Do I have to use DLLs for that ? If yes, HOW do I include a DLL and which one do I need?

You may have already recognized that I am still a VB.net beginner and my english is not perfect ;) so plz forgive me if I ask dumb questions and that in a bad english ;)

Greetings Sea
 
Have you tried this?

Visual Basic:
    Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vKey As Long) As Integer

    If GetAsyncKeyState(1) = 0 Then
        'Your Left Mouse Button Is UP
    Else
        'Your Left Mouse Button Is Down
    End If
    
    If GetAsyncKeyState(2) = 0 Then
        'Your Right Mouse Button Is UP
    Else
        'Your Right Mouse Button Is Down
    End If

http://msdn.microsoft.com/en-us/library/ms646293.aspx

(Not positive on the VB.NET dll import syntax)
 
Back
Top