views:

36

answers:

0

Hi all,

I am using an application (a game actually) that requires me to join a "ROOM" to start a game. The application is a C++ application (I suppose) running on Windows.

When a room is full, you need to wait 5 seconds to join again. I would like to automate this by writing a C# application that will invoke a MOUSE CLICK on a certain coordinate.

I don't want to make it complicated. The cursor will be manually positioned on the item (a listview item) to be clicked. The monitor's resolution will never be changed. And every 5 seconds, when the program is ran, the application will send a MOUSE CLICK on that location.

I understand that there are automation programs to do this (AutoIT is one). But I want to take this project as a lesson in "mouse grabbing".

So my question is, how do you send a MOUSE CLICK from C#?