Thread: simple mouse movement program

  1. #1
    Registered User
    Join Date
    May 2007

    simple mouse movement program

    Hey, this is my first time on the boards, and the first time back in programming for 3 years, so please bare with me here.
    I understand that I'm not supposed to ask someone to make a program for me, but i'm fairly incompetent as I've forgotten the majority... well actually, pretty much everything programming; so if someone could help me i'd really appreciate it.

    when the right mouse butten is pressed down
    set x1 and y1
    move mouse position down y-10 (i'll work that out myself)
    set x2 and y2
    left mouse button down
    left mouse button up
    return mouse position to x1 y1

    and then repeat whenever the right mouse button is clicked

    if you could help me i'd really appreciate it. thank you

  2. #2
    Registered User
    Join Date
    May 2007
    still need help =)

  3. #3
    Yes, my avatar is stolen anonytmouse's Avatar
    Join Date
    Dec 2002
    1. Do the tutorial.
    2. Look up mouse_event, GetCursorPos and SetCursorPos in MSDN.
    3. Post your best effort which can be compiled.
    4. Someone might help you.

  4. #4
    Registered User Queatrix's Avatar
    Join Date
    Apr 2005
    mouse_event() has been superseded. Use SendInput() instead.

    Also, (for future reference) don't bump your threads.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Help with simple program
    By nik2007 in forum C++ Programming
    Replies: 4
    Last Post: 02-27-2006, 09:54 AM
  2. need a simple program
    By Peter Griffin in forum C++ Programming
    Replies: 7
    Last Post: 12-04-2005, 04:23 PM
  3. Replies: 5
    Last Post: 11-27-2005, 09:50 PM
  4. Controlling Mouse movement?
    By raum in forum Windows Programming
    Replies: 6
    Last Post: 07-02-2004, 08:46 AM
  5. fopen();
    By GanglyLamb in forum C Programming
    Replies: 8
    Last Post: 11-03-2002, 12:39 PM