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