INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: hacking the media key / volume control  (Read 1129 times)

89ZEF

  • Recent member
  • *
  • Posts: 40
hacking the media key / volume control
« on: March 22, 2019, 07:23:03 am »

This question is related to both :
Options > Audio > Volume > Volume mode
Options > General > Advances > Media key mode

I often put music at low volume while working or using VoIP and the current implementation of the volume mode / media key mode combo does not do the trick for my specific usage.

I end up having the music play at 100% (JRiver internal) when in "system volume" and I can no longer hear the VoIP content correctly. Having it set to "internal volume" needs a massive amount of clicks to change the system volume which is a hassle.

An "internal fixed volume" would address this as I don't seem to need changing the music volume too often but still need to change the system's. Something like other standalone players like VLC letting you playing/pause but the volume media keys are still tied to the system.

Could I achieve this by banning volume media keys from the built-in feature by changing the .xml resources?
Or could I somewhere prevent the volume from being controlled by media keys?
Logged

89ZEF

  • Recent member
  • *
  • Posts: 40
Re: hacking the media key / volume control
« Reply #1 on: March 23, 2019, 02:51:20 pm »

Workaround for Windows, using MC command line + AutoHotKey.

Target: Use media keys except volume up/down

- Media Key Mode: disabled
- Volume mode: internal
- Run the following AutoHotKey script:
Code: [Select]
#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn  ; Enable warnings to assist with detecting common errors.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.

Media_Play_Pause::
run MC24.exe /Pause
return

Media_Stop::
run MC24.exe /Stop
return

Media_Prev::
run MC24.exe /Previous
return

Media_Next::
run MC24.exe /Next
return

Will post a macOS workaround asap.
Logged

89ZEF

  • Recent member
  • *
  • Posts: 40
Re: hacking the media key / volume control
« Reply #2 on: March 24, 2019, 12:52:11 pm »

I posted the OSX workaround in "MC24 for Mac" board.
https://yabb.jriver.com/interact/index.php/topic,120008.0.html
Logged
Pages: [1]   Go Up