Application Switching via a HotKey
-
Hi, I'm writing an application so that I can hotkey between several different applications. I know how to register and unregister the hot keys, where I need help is obtaining the windows title to compare and give that application focus. What I believe needs to happen is I need to iterate through each window/form to determine if this is the correct one, then switch to it. Any help or if you know of a programming example it would be greatly appreciated. Thank you,
Glenn
-
Hi, I'm writing an application so that I can hotkey between several different applications. I know how to register and unregister the hot keys, where I need help is obtaining the windows title to compare and give that application focus. What I believe needs to happen is I need to iterate through each window/form to determine if this is the correct one, then switch to it. Any help or if you know of a programming example it would be greatly appreciated. Thank you,
Glenn
I think you may be taking the wrong approach. IIRC, when an application registers a hot key, Windows notifies the application when the hotkey sequence is triggered. What you seem to want to do is build a master app that directs notifications to other apps. See this[^] recent article. /ravi
My new year resolution: 2048 x 1536 Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com
-
I think you may be taking the wrong approach. IIRC, when an application registers a hot key, Windows notifies the application when the hotkey sequence is triggered. What you seem to want to do is build a master app that directs notifications to other apps. See this[^] recent article. /ravi
My new year resolution: 2048 x 1536 Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com
-
What I'm actually trying to do is setup fast pathing to an application. IE: If I hit the 1 on my numeric keypad it will go to my email, 2 will take me to Visual Studio, 3 will be my browser, etc.
Glenn
Ah OK... /ravi
My new year resolution: 2048 x 1536 Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com
-
Hi, I'm writing an application so that I can hotkey between several different applications. I know how to register and unregister the hot keys, where I need help is obtaining the windows title to compare and give that application focus. What I believe needs to happen is I need to iterate through each window/form to determine if this is the correct one, then switch to it. Any help or if you know of a programming example it would be greatly appreciated. Thank you,
Glenn
You do not really need any app for that. This should work just fine: - on the desktop, create one shortcut for every app of interest; - double-clicking it would already run the app; - for each such shortcut, right-click and choose properties; now click in the "shortcut key" box and hit the key you want to associate with (or hit DEL to remove). BTW: I trust there are ways to get this done by code too. :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, and improve readability.
-
What I'm actually trying to do is setup fast pathing to an application. IE: If I hit the 1 on my numeric keypad it will go to my email, 2 will take me to Visual Studio, 3 will be my browser, etc.
Glenn