c++ get mouse position

POINT cp;

hwnd = FindWindowA(NULL, "Counter-Strike: Global Offensive - Direct3D 9");

1\

GetCursorPos(&cp)

2\

 
ScreenToClient(hwnd, &cp)
posted @ 2022-04-20 00:07  bH1pJ  阅读(30)  评论(0)    收藏  举报