Results 1 to 4 of 4

Thread: Moving and Clicking mouse on VB

  1. #1
    Join Date
    Jun 2012
    Posts
    2,182
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Moving and Clicking mouse on VB

    How do I move the mouse, hold down the left and right mouse buttons, and release them in VB.Net? I'm attempting to make a mouse recorder type tool, I just don't know how to do the above..

    Thanks!
    ~Footy

    E: Also, how do check if the mouse buttons are being held down would be handy too!
    Thx Euphemism and Vinyl for the awesome siggy and avatar!

  2. #2
    Join Date
    Mar 2012
    Location
    127.0.0.1
    Posts
    3,383
    Mentioned
    95 Post(s)
    Quoted
    717 Post(s)

  3. #3
    Join Date
    Feb 2011
    Location
    The Future.
    Posts
    5,600
    Mentioned
    396 Post(s)
    Quoted
    1598 Post(s)

    Default

    Ahh I really hate VB.. Though I know Kasi know's it fairly well. You might want to ask him for some help on it.

    ughh for the mouse thing, it's called a Pinvoke. You need to invoke the function directly from User32.dll/lib. Reason being is because VB doesn't have it's own API for that and it uses the ones from the Native C Library.

    VB, C#, F#, all do this.

    Example: http://www.dreamincode.net/forums/to...licker-vb2008/
    I am Ggzz..
    Hackintosher

  4. #4
    Join Date
    May 2012
    Location
    Moscow, Russia
    Posts
    661
    Mentioned
    35 Post(s)
    Quoted
    102 Post(s)

    Default

    Per aspera ad Astra!
    ----------------------------------------
    Slow and steady wins the race.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •