F
F
Fear12014-03-10 23:30:11
C++ / C#
Fear1, 2014-03-10 23:30:11

How to emulate a keypress in C#?

You need to emulate keystrokes in C#.
SendKeys is not suitable. It works in some background programs, in most it stupidly does not respond to the request and nothing happens.
It is necessary that pressing works in all programs. Toaster, help.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
I
Ivan Starkov, 2014-03-11
@icelaba

Have you carefully read msdn? msdn.microsoft.com/en-us/library/ms171548 (v=vs.110).aspx
about UAC and so on?

N
Nikolay Talanov, 2015-06-20
@IPD2

word-break: break-all;
applied to an element with text, it will wrap words that do not fit into the line (if you need it, of course).
And on top of all this we also save overflow: hidden; for the container itself, if you want nothing to get out of it.

L
LittleFatNinja, 2015-06-20
@LittleFatNinja

overflow: hidden;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question