Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: LowLevel Keyboard Hooks No Longer Work

10 Nov 2010   #1
prreed

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 W7...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
Carl Lawrence

Dual-boot: Windows 7 HP 32-bit SP1 & Windows XP Pro 32-bit SP2.
 
 

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

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
logicearth

Windows 8.1 Pro (x64)
 
 

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
prreed

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
logicearth

Windows 8.1 Pro (x64)
 
 

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

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
logicearth

Windows 8.1 Pro (x64)
 
 

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

 LowLevel Keyboard Hooks No Longer Work




Thread Tools





Similar help and support threads
Thread Forum
MS Natural Ergo Keyboard 4000 No longer working
I have a MS Natural Ergonomic 4000 Keyboard. It has been working fine for...well, two years? Sometime ago I performed a Windows Update and the keyboard stopped working. Reinstalled the MS Keyboard & Mouse Center and it worked fine. This weekend I rebooted my computer (Windows Updates again),...
Hardware & Devices
Mouse and keyboard no longer wake computer from sleep
This is SO frustrating I've had this problem for about a year now; Basically, when I put my computer to sleep, it wont wake up unless I press the power button. Jiggling the mouse or pressing ANY button on the keyboard does nothing. I have already done significant research on this, so here are the...
Hardware & Devices
USB 3.0 Ports No Longer Work!
I use a program called Driver Booster (IOBit Software) that is supposed to automatically scan and update my drivers. Well it found an update for my USB 3.0 Driver and as soon as I allowed the update the External HDD and WiFi USB Dongle that were plugged into my 2 ports immediately went offline. I...
Hardware & Devices
My shortcuts no longer work
I was using Pale Moon x64 as my browser, but it crashed, so I uninstalled it. I installed Firefox and everything is working except for my shortcuts. When I click on them I get an error message that says, " Shortcut URL, Application not found" where shorcut URL is the actual web address. If I...
General Discussion
Cray hooks huge $188 million supercomputer ...
Cray hooks huge $188 million supercomputer contract with University of Illinois Read More at : Cray hooks huge $188 million supercomputer contract with University of Illinois - GeekWire
Chillout Room
Keyboard/Mouse wake up from Sleep no longer works
Something has recently changed and I can no longer wake up my Win7 Ultimate PC from Sleep state using mouse movement or "Sleep" button on multimedia keyboard. I have to push the power button on the PC itself. This worked fine up until a few days ago. I did not make any changes to the power...
General Discussion

Our Sites

Site Links

About Us

Find Us

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

All times are GMT -5. The time now is 02:20.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App