Answer the question
In order to leave comments, you need to log in
C# How to pass the key combination Ctrl+A, Shift+A to another application?
In general, the essence of the question is clear, the code does not transmit combinations, but only separately pressed keys, i.e. Ctrl+A doesn't work here :(
SetActiveWindow(ptr);
PostMessage(ptr, WM_SYSKEYDOWN, (int)Keys.ControlKey, 0);
PostMessage(ptr, WM_SYSKEYDOWN, (int)Keys.A, 0);
PostMessage(ptr, WM_SYSKEYUP, (int)Keys.ControlKey, 0);
PostMessage(ptr, WM_SYSKEYUP, (int)Keys.A, 0);
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