Hooking the Keyboard and redirecting keystrokes

Z

zanthor

Ok... so call me crazy, but I have an idea and I'm looking for where to
start...

I want to write an application that catches keystrokes and then either
redirects them to the in focus window or another window based on some
simple rules... in some cases the keystrokes would need to be sent out
to multiple windows.

I've done part of this in the past using a C++ application to hook the
Win32 keyboard API and dispose of unwanted keystrokes (Specifically a
windows key killer). But since I've never tried to go on and send
those keys to a final destination I figured I'd ask for some help on
where to start.
From what I see SendKeys isn't suited for this as it requires the app
to be focused to receive input...

Thanks,

Zanthor
 
Z

zanthor

As mentioned in the original post SendKeys isn't appropriate as it
requires focus. I need to send input to non-focused applications. Any
other ideas?

Thanks,

Will
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top