Windows 7 Forums


Windows 7: LowLevel Keyboard Hooks No Longer Work

10 Nov 2010   #1

W7
 
 
LowLevel Keyboard Hooks No Longer Work

I've found several entries on this topic but nothing that gives a clear cut "per application" solution. I have a single application (form) that when opened from a Windows Service needs to disable most hot key scenarios. We are collecting safety information and they must reply to the form.

I found some awesome code that works like a champ to hook (atl+tab, etc...) in the XP world. However, as we start to migrate to Windows 7...most of those low-level hooks still work with the exception of Alt+Tab. Because of Aero the alt+tab must be being grabbed by IE first?

I can't use a registry solution as this would be global. The hook needs to only be in place while the form is active and then the hook should go away....as I do now when running on XP...which again works great....Thx.

My System SpecsSystem Spec

10 Nov 2010   #2

Dual-boot: Windows 7 HP 32-bit SP1 & Windows XP Pro 32-bit SP2.
Battle, near Hastings, UK
 
 

Is there a setting on your keybord properities for hot keys on/off.
My System SpecsSystem Spec
10 Nov 2010   #3

W7
 
 

I'm not sure I follow...are you referring to some windows level API that I could invoke to turn them on or off? I would doubt it...the C# code I found that works fine in XP is using several interop dlls and implements a low-level keyboard hook
My System SpecsSystem Spec
.


10 Nov 2010   #4

Windows 7 x64 (SP1)
 
 

Or could develop the application in a way that does not require such things? Just saying.
Or maybe I just don't understand why the application needs to be so fragile.
My System SpecsSystem Spec
10 Nov 2010   #5

W7
 
 

Does anyone have a way to trap the Alt+Tab key...any concrete examples would be greatly appreciated
My System SpecsSystem Spec
10 Nov 2010   #6

Windows 7 x64 (SP1)
 
 

Change the OS...?
My System SpecsSystem Spec
10 Nov 2010   #7

W7
 
 

What does change the OS mean? I thought this was a forum where people could post questions and get answers..."Change the OS" is not something I expect from a "Gold Member", "Supporter", and "Seven Guru"...

I stumbled on to this forum and I'll stumble off...thank you for your incoherent and completely irrelevant answers.
My System SpecsSystem Spec
10 Nov 2010   #8

Windows 7 x64 (SP1)
 
 

Well forgive me for trying to stop you from making a terrible mistake.
My System SpecsSystem Spec
Reply

 LowLevel Keyboard Hooks No Longer Work problems?



Thread Tools



Similar help and support threads for: LowLevel Keyboard Hooks No Longer Work
Thread Forum
Solved Keyboard no longer connecting/working Hardware & Devices
win7 x64 no longer recognises keyboard via in-monitor usb hub Hardware & Devices
Keyboard/Mouse wake up from Sleep no longer works General Discussion
Shortcuts no longer work General Discussion
Portable Hardrives No longer Work Hardware & Devices


All times are GMT -5. The time now is 03:56 AM.


Seven Forums Android App Seven Forums IOS App Follow us on Facebook

Windows 7 Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows 7" and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32