In my bot I use SetCursorPos to move my mouse and then, SendMessage to perform mouse click. It works but it requires mouse to be moved which is inconvinient for the user. I was thinking about using SendInput function to send mouse cicks but it seems to work only in focused windows. How could i perform mouse click in client handle without moving mouse?