Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Moving the mouse pointer

Moving the mouse pointer

Scheduled Pinned Locked Moved C / C++ / MFC
c++helpquestion
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    Grimes
    wrote on last edited by
    #1

    Hello there. I need help with a simple MFC program, it needs to move the mouse to a specific point on the window. Is there a function that can move the mouse to a coordinate? thanx..

    KOM UIT DAAAAA!!!

    C P 2 Replies Last reply
    0
    • G Grimes

      Hello there. I need help with a simple MFC program, it needs to move the mouse to a specific point on the window. Is there a function that can move the mouse to a coordinate? thanx..

      KOM UIT DAAAAA!!!

      C Offline
      C Offline
      Chipperm
      wrote on last edited by
      #2

      You can use the SendInput function to move the mouse to any place on the screen. When using the function notice that the screen coordinates(resolution) have to be converted to mouse coordinates(0-65535) in both the horizontal and vertical directions.

      Chipper Martin

      G 1 Reply Last reply
      0
      • C Chipperm

        You can use the SendInput function to move the mouse to any place on the screen. When using the function notice that the screen coordinates(resolution) have to be converted to mouse coordinates(0-65535) in both the horizontal and vertical directions.

        Chipper Martin

        G Offline
        G Offline
        Grimes
        wrote on last edited by
        #3

        What are the other parameters the SendInput function takes?

        KOM UIT DAAAAA!!!

        C 1 Reply Last reply
        0
        • G Grimes

          What are the other parameters the SendInput function takes?

          KOM UIT DAAAAA!!!

          C Offline
          C Offline
          Chipperm
          wrote on last edited by
          #4

          Click on this link and it will lead you to the direct microsoft information for SendInput http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/userinput/keyboardinput/keyboardinputreference/keyboardinputfunctions/sendinput.asp

          Chipper Martin

          1 Reply Last reply
          0
          • G Grimes

            Hello there. I need help with a simple MFC program, it needs to move the mouse to a specific point on the window. Is there a function that can move the mouse to a coordinate? thanx..

            KOM UIT DAAAAA!!!

            P Offline
            P Offline
            PJ Arends
            wrote on last edited by
            #5

            SetCursorPos()


            You may be right
            I may be crazy
            -- Billy Joel --

            Within you lies the power for good, use it!!!

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups