Questions tagged [media-keys]

Anything related to media-keys, i.e. special keys found on some kind of keyboards and used to start or control media-related, or sometimes internet-related, applications. For example keys used to increase/decrease the music volume, skip a song or start the internet browser.

media-keys
Filter by
Sorted by
Tagged with
1 vote
1 answer
177 views

Finding Bluetooth key event code on raspberry pi

im on raperry pi 3b running defult 32bit os. Im trying to record the bluetooth inputs from my headset similar to the read command.to bind that code i get from that to another command to do stuff like ...
Amir Ahmed's user avatar
2 votes
1 answer
231 views

How to consume media key presses and volume changes in a WPF Application?

I have a WPF application that is supposed to react to media keys and a volume knob I have connected to the computer. This was straightforward using WPF commands: MainWindow.xaml: <CommandBinding ...
Sacchan's user avatar
  • 377
1 vote
1 answer
493 views

Web Audio Session API to trigger method calls in app rather than playing media

I'm having a hard time getting the Web Audio API to do what I want. My goal is to eventually trigger voice recognition in a PWA on mobile, but first I decided to do a test case of incrementing a ...
Joel Nash's user avatar
2 votes
1 answer
1k views

Media Keys of MX Keys Not Working After Installing Logitech Options

I recently purchased this MX Keys and MX Master combo and was excited to use the keyboard to its full potential but the media keys is not working after I installed the Logitech options software. ...
G.M.'s user avatar
  • 91
2 votes
1 answer
821 views

Can Autohotkey Remap Media Key Combos?

I want to use the 4 buttons above the numpad for data entry, with the "calc" button as a sort of modifier, so I can do multiple things with them. I'm having trouble making key combos work. ...
Dylan Kinnett's user avatar
0 votes
0 answers
28 views

How to capture event from apple remote?

I want to capture events from an apple remote in a macOS App. I tried to use EventTap to capture CGEvent from the system and found it do send an event. Then I turn it into NSEvent, then found the ...
Megabits's user avatar
  • 431
1 vote
1 answer
2k views

Simulate Media-Key press in MacOS [duplicate]

I would like to simulate media keypresses from within an app on Mac OS. I am using Swift in Xcode 10 on Mojave 10.14.4 Using answers such as Simulate keypress using Swift I can simulate a variety of ...
the quantity's user avatar
1 vote
1 answer
76 views

DirectX window media keys not responding

Im making a game with a custom game engine and when you have selected the window that it creates it doesn't allow you to use media keys e.g. changing volume or playing/pausing music or anything that ...
Tim Roberts's user avatar
0 votes
1 answer
385 views

Media keys in WndProc not firing

I am creating a media player in WinForms, C#. I want to respond to the user pressing the multimedia keys on the keyboard using the following code that can be found all over the internet: public const ...
Jonas Kohl's user avatar
  • 1,086
0 votes
2 answers
2k views

android.intent.action.MEDIA_BUTTON cannot working

<receiver android:name=".MusicIntentReceiver" android:exported="false"> <intent-filter> <action android:name="android.media.AUDIO_BECOMING_NOISY" /> ...
NPBA's user avatar
  • 129
0 votes
0 answers
996 views

Python: Log all keystrokes (especially Ctrl, Alt, Alt Gr, Shift and media hotkeys)

I am interested in a keylogger that logs all keys pressed, especially Ctrl, Alt, Shift, Alt Gr and all the media hotkeys such as Play, Stop, Next, Previous and so on. As I only found keyloggers that ...
ajaulensaek's user avatar
0 votes
2 answers
740 views

Cannot capture media key press

I am attempting to write an Auto HotKey script involving the media keys of my keyboard, but the key presses, such as Media_Play_Pause, do not seem to correspond to my media keys. While the media keys ...
whysgai's user avatar
  • 11
8 votes
4 answers
3k views

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 ...
just_user's user avatar
1 vote
1 answer
2k views

CGEventTapCreate and CFMachPortCreateRunLoopSource fails EXC_BAD_ACCESS

I am trying to tap into the HID events of OSX. I found a snippet for testing it. However my code always seem to fail with EXC_BAD_ACCESS at the CFMachPortCreateRunLoopSource line. It seems that ...
David Karlsson's user avatar
5 votes
1 answer
760 views

Global keyhook for mediakeys in C#

With the following RegisterHotKey function, I can globally hook normal key-modifier combinations: [DllImport("user32.dll")] private static extern bool RegisterHotKey(IntPtr hWnd, int id, uint ...
darx's user avatar
  • 1,557
6 votes
2 answers
397 views

Can Chrome "packaged apps" respond to global keyboard commands?

I've recently switched from Spotify to Google Music, but miss having a desktop client that responds to keyboard commands. In particular, my laptop has media keys and my fingers keep going to them out ...
Tom Wright's user avatar
  • 11.4k
4 votes
3 answers
6k views

KeyEvent special Keys (like mute)

I'm currently trying to create a little remote-app for Android to control a MediaPlayer (like Rythmbox) on my PC. Most media-players understand the special keys on my keyboard (like "play/pause" or "...
Lukas Knuth's user avatar
  • 25.6k