Link to home
Start Free TrialLog in
Avatar of dnsoft
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
ASKER CERTIFIED SOLUTION
Avatar of arif_eqbal
arif_eqbal

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of Mike Tomlinson
Mike Tomlinson
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of arif_eqbal
arif_eqbal

The Link anyway shows your solution Idle_Mind
:-0)
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.
Avatar of dnsoft

ASKER

Hi both,

Thank you for your help (and sorry for my late answer, I had to leave for my job)

Regards