Código:
les agredeceria su ayuda #include <windows.h> main(int argc, char *argv[]) { if (argc = 3) { int nWidth = GetSystemMetrics(SM_CXSCREEN) - 1, nHeight = GetSystemMetrics(SM_CYSCREEN) - 1; SetCursorPos((atoi(argv[1]) % nWidth) + 1, (atoi(argv[2]) % nHeight) + 1); return 0; } if (argc = 2) { if(atoi(argv[1]) = 0) { mouse_event(MOUSEEVENTF_RIGHTDOWN, 0, 0, 0, 0); mouse_event(MOUSEEVENTF_RIGHTUP, 0, 0, 0, 0); return 0; } if(atoi(argv[1]) = 1) { mouse_event(MOUSEEVENTF_RIGHTDOWN, 0, 0, 0, 0); mouse_event(MOUSEEVENTF_RIGHTUP, 0, 0, 0, 0); return 0; } } }