Thread: Program that moves mouse cursor and clicks

  1. #1
    Registered User
    Join Date
    Sep 2003

    Program that moves mouse cursor and clicks

    What would be lines of code needed to move the mouse cursor a certain amount of pixels and to right click repeatedly?

  2. #2
    Pursuing knowledge confuted's Avatar
    Join Date
    Jun 2002
    1) What the hell are you trying to make that will require that? It sounds malicious.

    2) What OS?

    3) What compiler?

    4) We don't do homework.

    5) We don't do viruses.

    6) Be more specific.

    7) STFW

    8) RTFM


    I think I covered all the different responses you might get until you are more specific.

  3. #3
    Senior Member joshdick's Avatar
    Join Date
    Nov 2002
    Phildelphia, PA
    Yeah, something definitely smells fishy here. Someone's first and only post on the C Board reflecting no knowledge of programming asks us an overly broad question on how to make a program that doesn't sound remotely useful. Please forgive me if I'm too skeptical of the poster's intentions.

    "The computer programmer is a creator of universes for which he alone is responsible. Universes of virtually unlimited complexity can be created in the form of computer programs." -- Joseph Weizenbaum.

    "If you cannot grok the overall structure of a program while taking a shower, you are not ready to code it." -- Richard Pattis.

  4. #4
    Join Date
    Jun 2003
    Maybe hes making one of those programs for games like Diablo 2. It sounds like a familiar little bot that when someone runs it, it opens you Diablo 2 inventory and drops it all on the ground. Its a cheating thing that noobs who couldn't play right used.
    "When I die I want to pass peacefully in my sleep like my grandfather did, not screaming and yelling like the passengers in his car."

  5. #5
    Registered User
    Join Date
    Apr 2003
    I don't know what he's up to, but I do know that it requires great skill to create a program that manipulates mouse movement.

  6. #6
    Geo Geo Geo-Fry
    Join Date
    Feb 2003
    i dont think thats its nessecarily malicious. there have been times when i wondered how to move the cursor, to do something for me becuase im too lazy. sure, you COULD do something malicious, but you can do the same, and worse with something like delete.
    "You can lead a man to Congress, but you can't make him think."
    "The Grand Old Duke of York
    -He had ten thousand men.
    -His case comes up next week."
    "Roses are red, violets are blue, I'm schizophrenic, and so am I."
    "A computer once beat me at chess, but it was no match for me at kick boxing."
    "More and more of our imports are coming from overseas."
    --George W. Bush
    "If it weren't for electricity, we'd all be wacthing TV by candlelight."
    --George W. Bush

  7. #7
    Software Developer jverkoey's Avatar
    Join Date
    Feb 2003
    University of Waterloo
    hmm, coulda sworn i posted something here yesterday.........anyways, it's not hard at all to move the mouse, or send details to it. There's a simple function: SetCursorPos that sets the cursor's position, and with a good luck on msdn, you can find the mouse function to set mouse button states. It's really not that hard to do (very easy, actually)

Popular pages Recent additions subscribe to a feed