Hi. I develop an application, which automates some simple tasks inside Virtual PC. Now I faced with problem: I can't figure out how I can manipulate mouse inside VPC. I do something like this:
HWND hDW = (HWND)0x000B03E0; // handle to virtual machine screen
int x = 70;
int y = 130;
SendMessage(hDW, WM_LBUTTONDOWN, MK_LBUTTON, MAKELPARAM(x, y));
SendMessage(hDW, WM_LBUTTONUP, MK_LBUTTON, MAKELPARAM(x, y));
SendMessage(hDW, WM_RBUTTONDOWN, MK_RBUTTON, MAKELPARAM(x, y));
SendMessage(hDW, WM_RBUTTONUP, MK_RBUTTON, MAKELPARAM(x, y));
But it doesn't work. Can anyone show me how perform this task?