#include<windows.h>
inline void chilkDrag(int m_x, int m_pos_y,int drag_y) {//移动鼠标位置,拖动距离
::SetCursorPos(m_x, m_pos_y);//移动鼠标位置
Sleep(50);
mouse_event(MOUSEEVENTF_LEFTDOWN , 0, 0, 0, 0);//左键点击抬起| MOUSEEVENTF_LEFTUP
//鼠标移动,水平方向0位移,垂直方向drag_y距离
mouse_event(MOUSEEVENTF_MOVE, 0, drag_y, 0, 0);
mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0);
}