// Mouse Multi Click - by Zoc [Feb/2007] #include "stdafx.h" int _tmain(int argc, _TCHAR* argv[]) { int button = VK_XBUTTON1; while (1) { if(GetAsyncKeyState(button)) { mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0); mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0); Sleep(500); } if(GetAsyncKeyState(VK_NUMPAD1)) // Key that shuts program down break; } return 0; }