Hello. I am trying to get cursor position relative to window. So what i want to be doing is to locate whatever window i am looking for, this i am doing by using the
FindWindowA(NULL, "winTitle");
function. Then i use
ScreenToClient(HWND hwnd, LPPoint point);
to try to get cordinates of that window relative to the screen. I need the cordinates of my given window, so that i can perform consistent mouse clicks to that window. Say if i need to fire a mouse click to the coordinate (100, 100) that is relative to my notepad window. Then i would get cordinates of notepad window, and then do the pseudo following