all groups > vb.net > january 2008 >
You're in the

vb.net

group:

Vb.Net & classic DOS-style hotkeys?


Vb.Net & classic DOS-style hotkeys? Jack Black
1/31/2008 8:35:50 AM
vb.net:
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

RE: Vb.Net & classic DOS-style hotkeys? SurturZ
2/3/2008 8:08:02 PM
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.

--
David Streeter
Synchrotech Software
Sydney Australia


[quoted text, click to view]
AddThis Social Bookmark Button