请问API要用什么编程
API编程是用的什么编译器,说是WINDOWS自带的,GetCursorPos,它的使用方法如下:BOOLGetCursorPos(LPPOINTlpPoint//add...
API编程 是用的什么编译器, 说是WINDOWS自带的,
GetCursorPos,它的使用方法如下:
BOOL GetCursorPos( LPPOINT lpPoint // address of structure for cursor position );
BOOL SetCursorPos(int X, // horizontal position int Y // vertical position);
VOID mouse_event(DWORD dwFlags, // flags specifying various motion/click variantsDWORD dx, // horizontal mouse position or position changeDWORD dy, // vertical mouse position or position changeDWORD dwData, // amount of wheel movementDWORD dwExtraInfo // 32 bits of application-defined information);
getcursorpos(point);setcursorpos(ranpoint(80,windowX),ranpoint(80,windowY));//ranpoint是个自制的随机坐标函数mouse_event(MOUSEEVENTF_LEFTDOWN,0,0,0,0);mouse_event(MOUSEEVENTF_LEFTUP,0,0,0,0);setcursorpos(point.x,point.y);
就是上面使用的什么编辑的 展开
GetCursorPos,它的使用方法如下:
BOOL GetCursorPos( LPPOINT lpPoint // address of structure for cursor position );
BOOL SetCursorPos(int X, // horizontal position int Y // vertical position);
VOID mouse_event(DWORD dwFlags, // flags specifying various motion/click variantsDWORD dx, // horizontal mouse position or position changeDWORD dy, // vertical mouse position or position changeDWORD dwData, // amount of wheel movementDWORD dwExtraInfo // 32 bits of application-defined information);
getcursorpos(point);setcursorpos(ranpoint(80,windowX),ranpoint(80,windowY));//ranpoint是个自制的随机坐标函数mouse_event(MOUSEEVENTF_LEFTDOWN,0,0,0,0);mouse_event(MOUSEEVENTF_LEFTUP,0,0,0,0);setcursorpos(point.x,point.y);
就是上面使用的什么编辑的 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询