So I have been banging my head trying to figure out why im having issues trying to send Mouse messages to the game window using SendMessage.
(I dont want to fool with sendinput, played around with it some with this project and the results are the same. Having the same issues)
The window recieves the message and will preform mouse clicks when i tell it to, but the issue is that its not clicking in the correct x,y position. After fooling around with it i decided to open spy++ and watch the messages sent through actual physical means. And i noticed something that i believe to be causing my headache.
When i preform a LButtonDown for example the position show up being ex(650,650), But when the hittest is preformed the x,y pos do not match at all, not even a little bit. Image is below
Notice how line 80 say hittest x,y is different from the xy when lbuttondown/up. Pretty sure that is whats causing my problem of inaccurate clicks.
What can i do to correct this?

even by physical input the click occurs somewhere outside of the viewport/client area even tho cursor is in the client window.(character takes off in the other direction and/or runs to a location that is not currently visible for a mouse click to be preformed.(later date maybe useful for pathfinding) but not now!!!!!!!!!!