How to catch any key press, wait some determined time and send a key to the active app?

i want an app to register any key press from the active app and after that if they is the wanted, wait a determined amount of time and simulate a key press to the active app, the problem is that i have no idea on how to do that, i don’t care about the programming language or if is an existing app that does that, but i need it. Any idea?

I didn’t tried anything because i didn’t practiced anything in a very long time. I knew some basics in C++, Cobol and Visual Basic, but i leaved programming so i don’t remember much.

  • Welcome to Stack Overflow. Please take the tour to learn how Stack Overflow works and read How to Ask on how to improve the quality of your question. Then check the help center to see which questions are on-topic on this site. Please show your attempts you have tried and the problems/error messages you get from your attempts.

    – 

Leave a Comment