Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

MS natural keyboard: prevent special key default actions

If you have a question or need help, this is the place to be.
Post Reply
XkFnHLgSVDl7
Posts: 22
Joined: Wed Mar 28, 2007 12:10 pm

MS natural keyboard: prevent special key default actions

Post by XkFnHLgSVDl7 »

after my logitech keyboard died i got a MS natural keyboard 4000. like my previous logitech one it has those special buttons at the top. i managed to capture their events using the HID plugin, but the default action (eg start calc) is still run, in addition to my custom one. is there any way to prevent the default action?
User avatar
jinxdone
Plugin Developer
Posts: 443
Joined: Tue Jan 02, 2007 4:08 pm

Re: MS natural keyboard: prevent special key default actions

Post by jinxdone »

Yes. Get the TweakUI tool from microsoft.

In TweakUI the settings you are looking for are in Explorer -> Command Keys.

-jinxdone
XkFnHLgSVDl7
Posts: 22
Joined: Wed Mar 28, 2007 12:10 pm

Re: MS natural keyboard: prevent special key default actions

Post by XkFnHLgSVDl7 »

thanks, exactly what i needed. would never have gotten the idea to look in tweakui
XkFnHLgSVDl7
Posts: 22
Joined: Wed Mar 28, 2007 12:10 pm

Re: MS natural keyboard: prevent special key default actions

Post by XkFnHLgSVDl7 »

related question: do you know how to capture the 1-5 special keys at the top? the events captured are like this
HID.Value.1282 2
HID.Button.1281

HID.Button.1281 is captured for every single of those buttons, only value is different (1282 2, 1282 4, ...) but adding those as events doesn't do it
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: MS natural keyboard: prevent special key default actions

Post by Pako »

XkFnHLgSVDl7 wrote:related question: do you know how to capture the 1-5 special keys at the top? the events captured are like this
HID.Value.1282 2
HID.Button.1281

HID.Button.1281 is captured for every single of those buttons, only value is different (1282 2, 1282 4, ...) but adding those as events doesn't do it
HID1282conversion.jpg
Pako
XkFnHLgSVDl7
Posts: 22
Joined: Wed Mar 28, 2007 12:10 pm

Re: MS natural keyboard: prevent special key default actions

Post by XkFnHLgSVDl7 »

thanks again

but i fear i have yet another question: I can't prevent Windows from handling the volume keys. Tried in TweakUI and even in the driver but no go there. Is there any way to disable them?
Reason I want them to be handled by Eventghost only is that Windows is sending them to the active app if it has volume controls but I always want them to go to the OS volume control instead.

edit: same for the forward/back keys. found this tip on the net but it doesn't work for those 2 keys (neither for the volume ones)
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AppKey\1]
"ShellExecute"="#"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AppKey\2]
"ShellExecute"="#"
specter333
Experienced User
Posts: 95
Joined: Thu Dec 27, 2007 12:26 am

Re: MS natural keyboard: prevent special key default actions

Post by specter333 »

XkFnHLgSVDl7 wrote:I can't prevent Windows from handling the volume keys. Tried in TweakUI and even in the driver but no go there. Is there any way to disable them?
This didn't work for me but maybe it will work for you.

Code: Select all

http://www.codeplex.com/sharpkeys
Post Reply