How to make a program to make the mouse click?

Using Borland C++ Builder 6

How to make a program to make the mouse click both left & right?
How to make the mouse move?
How to make the mouse hold and drag?
How to make the mouse double click?

Help please. Thank you in pre-advance.

//ColacX

Following codes is in console where i can easily get the mouse position but not affect it.
//---------------------------------------------------------------------------

#include
#pragma hdrstop
#include
#include
//---------------------------------------------------------------------------

#pragma argsused
int main()
{
POINT mouse;
while(true)
{
GetCursorPos(&mouse);
cout<<mouse.x<<" "<<mouse.y<<endl;
Sleep(1000);
}
}
//---------------------------------------------------------------------------

Comments

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion