capturing media keys

Feature Requests, Comments, Bugs, and Suggestions on the JIntellitype Java API.

capturing media keys

Postby tmkszch » Mon Oct 13, 2014 2:43 pm

Hi All,

The IntelliTypeListener works perfectly, but the media key pressed (e.g. Calculator) is still passed through the system and eventually fired calc.exe (this case).

How to capture AND CONSUME within listener to override system behaviour (without digging into Windows Registry) -- in fact all media keys usually have something assigned to them.

Best regards
Tomek
tmkszch
 
Posts: 2
Joined: Mon Oct 13, 2014 2:38 pm

Re: capturing media keys

Postby Melloware » Mon Oct 20, 2014 6:49 am

You cannot do that from within Java.

So when a hotkey is fired like "Media Play" you can only "listen" to the event you can't eat it. So any other Windows applications running may also listen and react to that event. If you want to try and disable Microsoft from listening to your events you can try running this dos command to see if it helps.

Code: Select all
reg add HKLM\SOFTWARE\Policies\Microsoft\WindowsMediaCenter /v MediaCenter /t REG_DWORD /d 1 /f
=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Melloware Inc.
http://www.melloware.com
=-=-=-=-=-=-=-=-=-=-=-=-=-=-
User avatar
Melloware
Site Admin
 
Posts: 11037
Joined: Thu Dec 01, 2005 10:24 pm
Location: Philadelphia, Pennsylvania USA

Re: capturing media keys

Postby tmkszch » Thu Oct 23, 2014 12:44 pm

It is a bad new for me.

It is achivable BTW, just standard Help Window captures this key (and says it cannot display web page), while passes others (e.g. Calc) . So its a little strange the lack of this possibility in JIntellitype framework.

Please consider.

Tomek
tmkszch
 
Posts: 2
Joined: Mon Oct 13, 2014 2:38 pm


Return to JIntellitype

Who is online

Users browsing this forum: No registered users and 2 guests