| View previous topic :: View next topic |
| Author |
Message |
Boo Valued Contributor


Joined: 31 Oct 2003 Posts: 599 Location: Gulf Breeze, Florida USA
|
Posted: Wed Apr 01, 2009 6:51 pm Post subject: Is there a way to determine invalid hotkeys? |
|
|
Hi All,
I am fully aware of the Hotkey capabilities of VDS, but is there a way to determine if a hotkey slot is already taken? That is, let's say a user sets a hotkey combination in a VDS application that is a hotkey already being used by another application..., Is there a way to notify the user to select a different hotkey combination?
Thanks,
- Boo |
|
| Back to top |
|
 |
JerryDee Contributor


Joined: 19 Oct 2005 Posts: 53 Location: Czech Republic
|
Posted: Wed Apr 08, 2009 4:43 pm Post subject: |
|
|
Hi Boo,
I'm not sure I understand you well - I think that in Windows "Hotkey combination" pays allways only for the "focused" application. Or am I mistaken? _________________ Jerry
(VDS 4,5,6 Pro | V-Setup 3) |
|
| Back to top |
|
 |
Boo Valued Contributor


Joined: 31 Oct 2003 Posts: 599 Location: Gulf Breeze, Florida USA
|
Posted: Wed Apr 08, 2009 5:35 pm Post subject: |
|
|
Hi,
What I am wondering is if a certain application is already using a hot key combination (such as Alt+H), and I try to set Alt+H in my VDS application, how will I know that Alt+H is already being used? I can manually press Alt+H in my application to see it works, but what I would like to do is notify the user that the combination is already in use without manually having to test it.
Thanks,
- Boo |
|
| Back to top |
|
 |
JerryDee Contributor


Joined: 19 Oct 2005 Posts: 53 Location: Czech Republic
|
Posted: Wed Apr 08, 2009 6:30 pm Post subject: |
|
|
Well, I think you are afraid uselessly about it!
All applications can have the same hotkeys - but only the one which is actualy "in focus" respond at the hotkey. Can you imagine you have several running applications on your desktop. If you click on a window of some application, this application obtains the focus and is able to receive a hotkey combination - no other! _________________ Jerry
(VDS 4,5,6 Pro | V-Setup 3) |
|
| Back to top |
|
 |
Boo Valued Contributor


Joined: 31 Oct 2003 Posts: 599 Location: Gulf Breeze, Florida USA
|
Posted: Wed Apr 08, 2009 7:10 pm Post subject: |
|
|
Hi Again,
I am referring to Global hot keys (meaning one hot-key combination is reserved for only one application--no others--regardless of focus).
Cheers,
- Boo |
|
| Back to top |
|
 |
JerryDee Contributor


Joined: 19 Oct 2005 Posts: 53 Location: Czech Republic
|
|
| Back to top |
|
 |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Thu Apr 09, 2009 1:12 am Post subject: |
|
|
The VDS hotkeys are global... Repeat! They are global. Your program does not have to be in focus in order for your hotkeys to work. I personally have 2 programs that use hotkeys and don't even have an interface, they run like a service.
As for detecting if another application already has a hotkey combination, I'm not sure if there is a way to determine this through VDS. There might be, but I currently am not aware of it myself. _________________ 'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.) |
|
| Back to top |
|
 |
PGWARE Web Host

Joined: 29 Dec 2001 Posts: 1565
|
Posted: Thu Apr 09, 2009 7:53 am Post subject: |
|
|
RegisterHotKey Function: http://msdn.microsoft.com/en-us/library/ms646309.aspx
It looks like the function fails if you try to register an existing hotkey. I dont have any code to do this in VDS but it's very likely it can be done with GadgetX. |
|
| Back to top |
|
 |
|