Question: Is there anyway to force a mouse click using C++ outside of my application? For example, if a mouse is in a certain coordinate, it is forced to click.

Answer: 
Try this:

```
HWND h = (hwnd of window)
WORD mouseX = 10;// x coord of mouse
WORD mouseY = 10;// y coord of mouse
PostMessage(hWnd,WM_LBUTTONDOWN,0,MAKELPARAM(mouseX,mouseY));

```

Taken from [this site](http://www.dreamincode.net/forums/topic/200043-simulate-mouse-click-to-non-foreground-window-using-sendmessage/).
this should do fine:

<http://www.cplusplus.com/forum/lounge/17053/>