The windows API (which includes sending mouse clicks, key presses, etc) can be accessed from a number of platforms, including C(#/++).
In C++, it's basically:
Code:
#include "windows.h"
#include <iostream>
using namespace std;
int APIENTRY WinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nCmdShow)
{
HWND wind = FindWindow(NULL, "Untitled - Notepad");
cout << wind << endl;
SendMessage(wind, WM_RBUTTONDOWN, MK_RBUTTON, (20*0x010000)|20);
SendMessage(wind, WM_LBUTTONDOWN, MK_LBUTTON, (20*0x010000)|20);
return 0;
}
Will post links to tuts after dinner