Send key strokes

Hey guys, i'm looking for some code or a function to make a program that

can right a message like "Hello World" to notepad.

It is advanced code - a hacker can do it.
If you're on Windows you can use SendInput(), though I prefer keybd_event() as it requires no setup. With SendInput(), you'll have to pass in a structure and in that structure you'll need to initialise another structure, it's just too much effort to send a keystroke. I am by far not an experienced Windows programmer nor an experienced programmer in general, but I think you'll have better luck posting in the Windows Programming section.

https://msdn.microsoft.com/en-us/library/windows/desktop/ms646310(v=vs.85).aspx
https://msdn.microsoft.com/en-us/library/windows/desktop/ms646304(v=vs.85).aspx
Topic archived. No new replies allowed.