Hello everyone!

I want to create a programme with some number of functions inside it.

The programme would run quietly in the background and wait.

Each function in the porgramme would have it's own pre-defined HotKey, after pressing one of those on the keyboard the corresponding function would run.

All the functions would send text (each function different text ), to the active window, to any active window.


It would be great with some code examples because I can't get anywhere with this, nor have I found any examples of anything liek this on internet.

Cheers!

One small/solid example that probably is what you are after is Using RegisterHotKey with MOD_NOREPEAT
Depending on your compiler/SDK, it might be that you are unable to use the MOD_NOREPEAT flag, in which case, just don't use that flag anywhere.

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.