| 关键词: 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;} |
|
声明:文章版权归原作者所有 部分文章转自互联网 如有侵权请联系
[邮箱地址] 删除
|