void LeftClick ( )
{
INPUT Input={0};
// left down
Input.type = INPUT_MOUSE;
Input.mi.dwFlags = MOUSEEVENTF_LEFTDOWN;
::SendInput(1,&Input,sizeof(INPUT));
// left up
::ZeroMemory(&Input,sizeof(INPUT));
Input.type = INPUT_MOUSE;
Input.mi.dwFlags = MOUSEEVENTF_LEFTUP;
::SendInput(1,&Input,sizeof(INPUT));
}
views:
180answers:
7Probably C++, as C doesn't have the `::` operator.
mipadi
2009-08-16 14:38:35
A:
My guess, C++ against the Win32 API. The {0} doesn't make any sense though.
Shaun
2009-08-16 14:40:44
+1
A:
I'd guess C++. I can't believe nobody else has come up with that yet! :)
Gavin Schultz-Ohkubo
2009-08-16 15:11:46