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  阅读(16)  评论(0编辑  收藏  举报