Link to home
Start Free TrialLog in
Avatar of James_Wyatt
James_Wyatt

asked on

Watching for a double key press

I need a program to sit quitly in the back ground and only come up when the user presses a cirtain key combination, i.e. if the press ctrl twice. I could be in any program when this happens.

Does anyone know how to do this?
ASKER CERTIFIED SOLUTION
Avatar of Maxim10553
Maxim10553
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 James_Wyatt
James_Wyatt

ASKER

the program will run on startup.

I've implemented the code from the example, it does call the 'New' sub however it doesn't seem to call the 'LowLevelKeyboardProc' function.
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
Yep that was the problem (.NET 2005), very very annoying, thanks for your help both of you.
yw, thanks for the points.
"very very annoying"

Yes...VERY annoying...it took me quite awhile to figure this out!  The same bloody code worked fine in VB.Net 2003 and I tried many, many different versions of the code in VB.Net 2005 before I figured out the code was just fine as it originally was.   Grrrrrrr.....      (I still don't know what the difference in the IDEs is)

=)