cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
Move a mouse to a point on a screen?
Move a mouse to a point on a screen?
Jun 10, 2010 at 3:07am UTC
Slamma009
(1)
I wanna know if its possible to move a mouse to a certain point on the screen. I looked at the post at
http://www.cplusplus.com/forum/beginner/1258/
and tried to use that but nothing happens, any reasons why (i'm running on window vista)
Jun 10, 2010 at 2:10pm UTC
Duthomhas
(13282)
The console cursor and the mouse cursor are two different things. To warp the mouse cursor, use the
SetCursorPos
() function (#include <windows.h>).
http://www.google.com/search?btnI=1&q=msdn+SetCursorPos
JSYK, moving the user's cursor is a
Really Bad Idea
. Unless you have a
really good reason
, your users will hate you.
Good luck!
Topic archived. No new replies allowed.