So I want to make a program that allows me to press a key (for example a). So when I press a, I want it to type(right term?) a predefined string (abcdefghijklmnopqrstuvwxyz for example).

Like once the program is complete, I could go into notepad and press a and it would just type out my string.

I am pretty sure this is possible with python, but would anyone be willing to give a push in the right direction?

I would take a look at pyhook and try to use that to moniter if a is being typed and then block that and send the new string instead. If your running windows then this can be done with the win32 apis

Thanks! I'll try it soon.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.