首页 网络安全 安全学院 查看内容

鼠标操作C代码

2009-10-4 01:36 809 0

摘要: /*Finds mouse coor-X-YLogicKills*/#include <windows.h>#include <stdio.h>int main(){ ...
关键词: cursorPos include printf GetCursorPos YLogicKills int system return POINT Sleep

/*Finds mouse coor-X-YLogicKills*/#include <windows.h>#include <stdio.h>int main(){ int x,y = 0; while(1){ Sleep(10); POINT cursorPos; GetCursorPos(&cursorPos); x = cursorPos.x; y = cursorPos.y; system("cls"); printf("X:%d\n",x); printf("Y:%d",y); } return 0;}
声明:文章版权归原作者所有 部分文章转自互联网 如有侵权请联系 [邮箱地址] 删除

路过

雷人

握手

鲜花

鸡蛋

最新评论

返回顶部