Vb.Net & classic DOS-style hotkeys?

J

Jack Black

Hi, all! I'm working out an idea to build an application that responds to
hotkeys in any application, and was hoping some of you might have input.

Basically, I want to build an application along the lines of an old
DOS-style TSR (terminate and stay resident) kind of application. I'm
assuming that it'll be running as a user service (or even a system service,
but it'll probably be user-specific). However, the question arises in that
I'm uncertain as to whether RegisterHotKey method will do what I need it to
do, and will the service override the hotkeys in the current in-focus
application. For example, if I build a Ctrl-P in my app (obvious example,
but I'd never do so), if running as a user service would my Ctrl-P override
(for example) Word's Ctrl-P?

I don't want to go so far as to hook Word events by my service; rather, I
want to just have an app that responds to any hotkey irrespective of the
current in-focus application.

Thoughts? Suggestions? Comments? :)
Thanks!
Jack
 
S

SurturZ

If you are trying to intercept keystrokes that are sent to other programs,
you will need to hook into windows. Programs are meant to be self contained.
 

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