forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Is there a way to determine invalid hotkeys?

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
Boo
Valued Contributor
Valued Contributor


Joined: 31 Oct 2003
Posts: 599
Location: Gulf Breeze, Florida USA

PostPosted: Wed Apr 01, 2009 6:51 pm    Post subject: Is there a way to determine invalid hotkeys? Reply with quote

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
View user's profile Send private message
JerryDee
Contributor
Contributor


Joined: 19 Oct 2005
Posts: 53
Location: Czech Republic

PostPosted: Wed Apr 08, 2009 4:43 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Boo
Valued Contributor
Valued Contributor


Joined: 31 Oct 2003
Posts: 599
Location: Gulf Breeze, Florida USA

PostPosted: Wed Apr 08, 2009 5:35 pm    Post subject: Reply with quote

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
View user's profile Send private message
JerryDee
Contributor
Contributor


Joined: 19 Oct 2005
Posts: 53
Location: Czech Republic

PostPosted: Wed Apr 08, 2009 6:30 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Boo
Valued Contributor
Valued Contributor


Joined: 31 Oct 2003
Posts: 599
Location: Gulf Breeze, Florida USA

PostPosted: Wed Apr 08, 2009 7:10 pm    Post subject: Reply with quote

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
View user's profile Send private message
JerryDee
Contributor
Contributor


Joined: 19 Oct 2005
Posts: 53
Location: Czech Republic

PostPosted: Wed Apr 08, 2009 7:35 pm    Post subject: Reply with quote

A work with global hotkeys isn't so simple. Once I concerned about it and found this link:
http://www.codeproject.com/KB/system/nishhotkeys01.aspx

maybe it inspires you.

_________________
Jerry
(VDS 4,5,6 Pro | V-Setup 3)
Back to top
View user's profile Send private message Send e-mail
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Thu Apr 09, 2009 1:12 am    Post subject: Reply with quote

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
View user's profile Send private message
PGWARE
Web Host


Joined: 29 Dec 2001
Posts: 1565

PostPosted: Thu Apr 09, 2009 7:53 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group