I am creating android remote controller for mac and for simplicity I want the same behavior in my app like behave standard multimedia keys on mac (F7, F8, F9).
I have installed "Key Codes" app on my mac but it doesn't recognized multimedia keys.
I have googled that keycode for playpause button is 100, so I have tried this lines of code from terminal:
osascript -e 'tell application "System Events" to key code {100}'
osascript -e 'tell application "System Events" to keystroke 100'
But it doesn't work.
What is the best approach to achieve the same behavior like multimedia keys do from osascript?
In all macs the same multimedia keys do the same behavior?