Set mouse position

This is a discussion on Set mouse position within the Windows Programming forums, part of the Platform Specific Boards category; Hi, how can i set the mouse position? (system wide). Do i have to create a device driver for my ...

  1. #1
    Registered User
    Join Date
    Oct 2005
    Location
    Brasil
    Posts
    220

    Set mouse position

    Hi, how can i set the mouse position? (system wide). Do i have to create a device driver for my purpose or there is any win32 API call that does that?

    Thank you.

  2. #2
    Software engineer
    Join Date
    Aug 2005
    Location
    Oregon
    Posts
    283
    Try this thread about the third post down:
    Mouse Events

  3. #3
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Posts
    23,031
    No, that's mouse events.
    SetCursorPos sets the mouse position on the screen for the current active user.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Finding mouse coordinates without disturbing its position
    By abachler in forum Networking/Device Communication
    Replies: 4
    Last Post: 10-21-2008, 12:19 PM
  2. Position mouse in external application
    By keira in forum C# Programming
    Replies: 1
    Last Post: 09-15-2008, 08:05 PM
  3. Getting the position of the mouse cursor
    By Mavix in forum Game Programming
    Replies: 5
    Last Post: 12-27-2007, 04:02 PM
  4. "if you love someone" :D
    By Carlos in forum A Brief History of Cprogramming.com
    Replies: 12
    Last Post: 10-02-2003, 02:10 AM
  5. Set Classes
    By Nicknameguy in forum C++ Programming
    Replies: 13
    Last Post: 10-31-2002, 02:56 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21