Tell me, please, is there a way through the C / C ++ programming language to make the computer think that we pressed a key on the keyboard without pressing it? That is, we will write such a code that will send signals of allegedly pressed keys to the computer, and we will not use the keyboard. If there is, then tell me, please, where to look, what to read, I will be grateful.

  • one
    "Make him think" for your program (console?), Or for some other? - Harry
  • and how to write a program without pressing the keys? - AR Hovsepyan
  • 2
    There are several technologies. 1) I / O redirection (console, does not require OS as a rule) 2) Emulation of soft-pressing a key. 3) Emotion pressing at the driver level. 4) Using "keyboards" on a chip (USB). - nick_n_a
  • @Harry for another - Anton

0