Answer the question
In order to leave comments, you need to log in
How to simulate alt codes in C#?
Good evening, problem.
C# + has a linked library (InputSimulator or Global Mouse and Keyboard Library).
I need to simulate pressing ALT+Numpad codes (alt codes), but when I run
KeyboardSimulator.KeyDown(Keys.Alt);
KeyboardSimulator.KeyPress(Keys.NumPad1);
KeyboardSimulator.KeyUp(Keys.Alt);
KeyboardSimulator.KeyDown(Keys.Alt);
KeyboardSimulator.KeyPress(Keys.Tab);
KeyboardSimulator.KeyUp(Keys.Alt);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question