I'm writing a WPF program to simulate keyboard input.
Everything works great, I could simulate almost everything things including Alt + Tab and Alt + Tab, but I failed to simulate input ASCII characters. For example: Alt(down) + Number Pad 1 gives ☺ but my program gives nothing.
I've tried almost all different approaches I could find online, including InputSimulator, keybd_event, SendKeys and PostMessage, but all those failed.
I'm using a laptop with an external keyboard. I found when I pressed Alt (on laptop) + Number Pad 1 (on external keyboard), it also failed to print ☺. I have a strong feeling that this could be the reason why simulation failed (Alt keys on external keyboard, laptop and simulation are different).
So, my questions:
Does anyone have any solutions?
Is there a way to simulate a specific keyboard input?