?
Solved

Easy - Mouse

Posted on 2003-11-18
2
Medium Priority
?
313 Views
Last Modified: 2010-04-02
Can someone show me an example of a statement\function and how to use it, which would move the mouse to a point on the screen when teh command was run.

(and any libires i need)
thank you.
0
Comment
Question by:FatNewbie
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 2

Accepted Solution

by:
ext2 earned 60 total points
ID: 9775616
#include <windows.h>

int main()
{
    SetCursorPos(10,10);   // move mouse cursor to x=10, y=10

    return 0;
);
0
 
LVL 2

Expert Comment

by:MirkoLMV
ID: 9801084
Every C++ implementation has it's own functions for handling mouse input.
For WinAPI there is quite a chapter at  msdn.microsoft.com/library  about mouse input, with a lot of information and a few interesting examples.

Good luck !
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question