dnsoft
asked on
Detect a Ctrl+F12 press on keyboard with no focus on application - dll required
Hi,
I know that keyboard hook is very difficult in VB.Net and I already searched hundred of posts related to that without finding the right answer.
So, I need a way to add to a background running application a Ctrl+F12 (or Ctrl+shift+F12) keyboard press without disabling the keyboard or avoiding to use the keyboard normally.
(It's supposed to start an action in the application itself)
The answers I found don't match my problem or they cause other troubles: they crash, they don't work, they disable (all or part of) the keyboard, they're used to avoid such keys press...
I know some people use a dll, any idea where's one available and free to use ?
Or did anyone find the answer in VB.Net programming ?
Thanks
I know that keyboard hook is very difficult in VB.Net and I already searched hundred of posts related to that without finding the right answer.
So, I need a way to add to a background running application a Ctrl+F12 (or Ctrl+shift+F12) keyboard press without disabling the keyboard or avoiding to use the keyboard normally.
(It's supposed to start an action in the application itself)
The answers I found don't match my problem or they cause other troubles: they crash, they don't work, they disable (all or part of) the keyboard, they're used to avoid such keys press...
I know some people use a dll, any idea where's one available and free to use ?
Or did anyone find the answer in VB.Net programming ?
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I know... =)
I wanted to show how to the do hook approach as well. There aren't many examples in the VB.Net TA of the low level keyboard hook being used.
I wanted to show how to the do hook approach as well. There aren't many examples in the VB.Net TA of the low level keyboard hook being used.
ASKER
Hi both,
Thank you for your help (and sorry for my late answer, I had to leave for my job)
Regards
Thank you for your help (and sorry for my late answer, I had to leave for my job)
Regards
:-0)