I want to make autoclicker, that is able to click on specific window, f.e. I am playing some game on full screen and I have an opened app, that I need autoclicker to click on. I want to click on it without closing the game.
So I’ve tried PostMessage
with WM_LBUTTONDOWN
and WM_LBUTTONUP
. But it seems like the app obtains curent mouse position, when processing mouse click(I think so, because, when I hover mouse on the app window, while posting this messages, clicks are processed fine), so above method doesn’t work.
Is it possible to fake mouse position to that app? Or probably I can solve my problem another way?