Making a program

Hey guys! I wanna make a program that effects my keyboard, i don't know if its possible.. but thats why im asking!

Anyways, i wanna make a program where it generates my text to "1337" language. Basically when the program is running, whenever you type i it would be 1
So like
H3y Guys H0w 4r3 y0u?

It's stupid, but it would be fun is there anyway to do this?

Thanks guys
Wait, dude i know the C++ Basics, i was just wondering of where to start with keyboard inputs and how to change them currently, like some sort of tutorial on changing what you type externally on any program
Windows.h has this function: https://msdn.microsoft.com/en-us/library/windows/desktop/ms646310(v=vs.85).aspx
It can make it seem like you typed something on the keyboard.

I used it once to make a spammer to mess with my friends on skype, I assume you have a similar goal since I don't see any other uses for 1337 language except for clownin' around lol. Have fun and good luck.
Wait, dude i know the C++ Basics, i was just wondering of where to start with keyboard inputs

I'd say keyboards was part of C++ basics.

Anyway..

Store the translations in a map.
http://www.cplusplus.com/reference/map/map/

e.g.

'e' -> '3'
'a' -> '4'

etc.

get your user string, iterate over it, and test each character by turn. if you find one that's in your map, simply swap the found key for it's corresponding value.
Last edited on
I don't think OP is looking for a C++ program that translates STDIN within that same program. That's easy. I think he's looking for code that corrupts the OS so that anything you type in ANY running app gets translated while the malicious code is running in the background. That type of thing is totally OS-dependent and requires knowledge far beyond just C++ programming. Also sounds like a good way to screw up a PC. Once such a program was running none of your apps would understand anything you typed in. 8^p
oh right. in that case look here:
http://www.cplusplus.com/forum/general/3570/
Same kinda principle. Like cnoeval says though, it's not trivial.
Thanks for the inputs guys
Thanks for the inputs guys

No pun intended :)
Topic archived. No new replies allowed.