1.Windows系统的事件
UINT WINAPI SendInput(
__in UINT nInputs, // number of structures in the pInputs array
__in LPINPUT pInputs, // an array of INPUT structures, representing an event
__in int cbSize // the size, in bytes, of an INPUT structure
);
mouse_event(MOUSEEVENTF_MOVE | MOUSEEVENTF_ABSOLUTE, x, y, 0, 0);
mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0);
mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0);
2. python的ctype调用windows apipython调用windows apiwww.cnblogs.com
看懂这两个东西,能达到你的要求