GetCursorPoshttps://docs.microsoft.com/en-us/windows/desktop/api/winuser/nf-winuser-getcursorpos
борь оно тебе не нужно