I want to do an app which replaces every input if it matches a pattern.
For example if user press LeftMouseButton + Ctrl, the program will change it into right click, and send only that to the current active window, or capturing window.
The question is how can i solve it in c#?
You will need to implement a class like this, you have to adapt it to support mouse clicks to fulfill your needs, but it should show you some first steps.
Add the conversion you need to the conversions-Dictionary. Subscribe to an event that observes key strokes and call method Convert with currently pressed Keys.
Send the returned keys to your system using