Hello I have problem,one in which I was using SendInput somehow managed to block that,soo I cant use SendInput ,soo I was looking for another way to "input" mouse click in game .
I decided to use PostMessage .
Problem comes when I need to find a specific window ,which I dont wanna to ,I wanna to be able to use it also in other apps.
Also I tired using GetForegroundWindow() function but it doesnt let me click in Chrome.
Soo is there way to make it click without fiding specific window.
• UIPI — your process has lower privilege than the process you are trying to manipulate, or
• another thread (possibly not of your process?) has interfered with it.
Whatever the case, SendInput() has never been the most reliable way to manipulate another process.
If you want to automate other processes, try something like Expect|https://core.tcl.tk/expect/index or AutoIt|https://www.autoit.com/. Both of these have a lot of code specialized to handle situations far and beyond what SendInput() can do.