java - How to listen to press more buttons on the keyboard? -


i on keyboard lot more buttons, , need listen push buttons (multimedia play, stop ..).

how it?

and catch event, when window minimized.

use jintellitype catch key events outside app in windows. here linux jxgrabkey

update: use multimedia buttons, need know it's codes. add listener app's frame find out codes:

class mykeylistener extends keyadapter {   public void keypressed(keyevent evt) {     system.out.println("key code: " + evt.getkeycode());          } } 

if know code, check if evt.getkeycode() need , make actions.


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -