I'm trying to get a keypress in C# that would register exactly like a keypress that I would press on my keyboard, some programs don't allow me to write like that as in they ignore the input from command, I've tried PostMessage()
& SendKeys.SendWait()
, both of which do not register on the program I'm trying to write on. (while my normal key presses do)
I'm looking for a solution in preferably C# but C++ can also work.
You can use I putSimulator nuget package: https://ourcodeworld.com/articles/read/520/simulating-keypress-in-the-right-way-using-inputsimulator-with-csharp-in-winforms
It can be used in wpf and windows forms