Blueforcer Well-Known Member Licensed User Longtime User Nov 18, 2020 #1 im trying to control the OS volume by emulating mediakeys. To do this i need to send rawCodes instead of KeyCodes. How to emulate pressing media keys in Java? How can I emulate pressing media keys in Java? Such as play/pause, next/previous, volume control. C# has VK_MEDIA_PLAY_PAUSE, VK_MEDIA_NEXT_TRACK and so on. Java has class Robot for working with... stackoverflow.com how can i do this? thanks
im trying to control the OS volume by emulating mediakeys. To do this i need to send rawCodes instead of KeyCodes. How to emulate pressing media keys in Java? How can I emulate pressing media keys in Java? Such as play/pause, next/previous, volume control. C# has VK_MEDIA_PLAY_PAUSE, VK_MEDIA_NEXT_TRACK and so on. Java has class Robot for working with... stackoverflow.com how can i do this? thanks
Erel B4X founder Staff member Licensed User Longtime User Nov 18, 2020 #2 A wrapper for that library is available here: https://www.b4x.com/android/forum/t...tercepting-system-input-events.55826/#content I don't know whether it implements the required feature or not. Upvote 0
A wrapper for that library is available here: https://www.b4x.com/android/forum/t...tercepting-system-input-events.55826/#content I don't know whether it implements the required feature or not.
Blueforcer Well-Known Member Licensed User Longtime User Nov 18, 2020 #3 This looks like a listener, i already got the required rawKeys. Now i need to send them. Upvote 0
stevel05 Expert Licensed User Longtime User Nov 18, 2020 #4 Maybe jAWTRobot will do what you want. https://www.b4x.com/android/forum/t...yboard-and-mouse-events-etc.55832/post-351301 Upvote 0
Maybe jAWTRobot will do what you want. https://www.b4x.com/android/forum/t...yboard-and-mouse-events-etc.55832/post-351301
Blueforcer Well-Known Member Licensed User Longtime User Nov 19, 2020 #5 stevel05 said: Maybe jAWTRobot will do what you want. https://www.b4x.com/android/forum/t...yboard-and-mouse-events-etc.55832/post-351301 Click to expand... jAWTRobot can only send keyCodes, but for mediakeys like volume control you need to send rawCodes to the OS Upvote 0
stevel05 said: Maybe jAWTRobot will do what you want. https://www.b4x.com/android/forum/t...yboard-and-mouse-events-etc.55832/post-351301 Click to expand... jAWTRobot can only send keyCodes, but for mediakeys like volume control you need to send rawCodes to the OS