CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: Virtual Mouse

  1. #1
    Join Date
    May 2006
    Posts
    2

    Virtual Mouse

    Hello, I am extremely new to the Windows API and I don't know where to start.

    How would I simulate a virtual mouse click (without the mouse actually moving on screen) and implement this into an application that doesn't have a window? I did check the MSDN, but it is all so confusing right now!

    Thanks,
    Cameron

  2. #2
    Join Date
    May 2005
    Posts
    4,954

    Re: Virtual Mouse

    If a post helped you dont forget to "Rate This Post"

    My Article: Capturing Windows Regardless of Their Z-Order

    Cheers

  3. #3
    Join Date
    May 2006
    Posts
    2

    Re: Virtual Mouse

    Quote Originally Posted by golanshahar
    Thank you, that helped a lot, but I'm still at loss as to how one could accomplish this without having the mouse actually move on screen. Something like a second invisible mouse.

  4. #4
    Join Date
    May 2005
    Posts
    4,954

    Re: Virtual Mouse

    Quote Originally Posted by CamRW
    Thank you, that helped a lot, but I'm still at loss as to how one could accomplish this without having the mouse actually move on screen. Something like a second invisible mouse.
    Why you don’t want to move the mouse?

    Anyway you can try something like that:
    • save mouse coordinates.
    • move the mouse to the point you want to perform the click.
    • perform the click.
    • move the mouse back to the saved coordinates on phase one.


    I am pretty sure it will be so fast that the mouse will do all this trip but user wont notice

    Cheers
    If a post helped you dont forget to "Rate This Post"

    My Article: Capturing Windows Regardless of Their Z-Order

    Cheers

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured