INTERACT FORUM

Please login or register.

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

Author Topic: Keyboard shortcuts using mc25.exe not working  (Read 795 times)

smarties

  • Recent member
  • *
  • Posts: 10
Keyboard shortcuts using mc25.exe not working
« on: September 27, 2019, 04:37:36 am »

My keyboard shortcuts that use the "program" command (i.e. mc25.exe) no longer work.  They used to work fine in MC24.

Example entries from my Resource.xml below:

So this entry works fine (to switch zone):

<Entry Key="Ctrl;Alt;2" Command="10011" Param="0" Global="1" />

But this one doesn't - no error is reported, it just doesn't load & play the playlist:

<Entry Key="Ctrl;Alt;1" Type="Program" Command="mc25.exe" Param="/PlayReplace TREEPATH=Playlists\BBC Radio 6|Zone=2" Global="1" />

It works fine from the windows command line - i.e.:

Code: [Select]
mc25.exe /PlayReplace "TREEPATH=Playlists\BBC Radio 6|Zone=2 Global=1"

I've just bought a new intel NUC and done a fresh 64 bit install of MC25 so I don't think it's related to the upgrade (although I did restore my library & settings from my old PC)

Any ideas ?  Log below :

Code: [Select]
Media Center; Version: 25.0.98 (64-bit); Types: 2147483647
0000000: 8768: General: Starting logging: Date: 26/09/2019 12:09
0000000: 8768: General: More information about logging here: https://wiki.jriver.com/index.php/Logging
0000000: 8768: General: Log Reset: Logging reset
0006750: 8768: General: RunProgram: Start
0006750: 8768: General: RunProgram: Filename: mc25.exe / Parameters: /PlayReplace TREEPATH=Playlists\BBC Radio 6|Zone=2
0006750: 8768: General: RunProgram: Performing ShellExecute...
0006797: 8768: General: RunProgram: Running process...
0006797: 8768: General: RunProgram: Finish (47 ms)
0000000: 1812: General: Launcher: Command Line: /PlayReplace TREEPATH=Playlists\BBC Radio 6|Zone=2
0000000: 1812: General: CMCCommandLine::Execute: Start
0000000: 1812: General: CMCCommandLine::Execute: Waiting on lock
0000000: 1812: General: CMCCommandLine::Execute: Have lock
0000000: 1812: General: CMCCommandLine::Execute: Posting: /PlayReplace TREEPATH=Playlists\BBC Radio 6|Zone=2
0000000: 1812: General: CMCCommandLine::Execute: IPC Name: Media Center 25 FC_IPC
0000000: 1812: General: CPostString::Post: Start
0000000: 1812: General: CPostString::Post: Sending </PlayReplace TREEPATH=Playlists\BBC Radio 6|Zone=2>, type 34768 to 3017e
0000000: 1812: General: CPostString::Post: Actual message, type 34768, WParam 1400b4, LParam ffc45e17, Window 3017e
0000000: 1812: General: CPostString::Post: Finish (0 ms)
0000000: 1812: General: CMCCommandLine::Execute: Finish (0 ms)
0006844: 8768: General: CMainFrame::OnFileCommand: Start
0006844: 8768: General: CPostString::GetAll: Start
0006844: 8768: General: CPostString::GetAll: Found message: type 34768, WParam 1400b4, LParam ffc45e17, string </PlayReplace TREEPATH=Playlists\BBC Radio 6|Zone=2>
0006844: 8768: General: CPostString::GetAll: Finish (0 ms)
0006844: 8768: General: CMainFrame::OnFileCommand: Received command: /PlayReplace TREEPATH=Playlists\BBC Radio 6|Zone=2
0006844: 8768: General: CMainFrame::OnFileCommand: Command: /PlayReplace TREEPATH=Playlists\BBC Radio 6|Zone=2
0006844: 8768: General: CMCPlayerApp::ExecuteCommandLine: Start
0006844: 8768: General: CMCPlayerApp::ExecuteCommandLine: Command Line: /PlayReplace TREEPATH=Playlists\BBC Radio 6|Zone=2
0006844: 8768: General: CMCPlayerApp::Play: Start
0006844: 8768: General: CMCPlayerApp::Play: Command line: /PlayReplace TREEPATH=Playlists\BBC Radio 6|Zone=2
0006844: 8768: General: CMCPlayerApp::Play: Filtering
0006844: 8768: Database: CSearchFilesHelper::GetResults: Search: [Media Type]=[Image]; Elapsed ms: 0.097
0006844: 8768: General: CMCPlayerApp::Play: Files: 0
0006844: 8768: General: CMCPlayerApp::Play: Finish (0 ms)
0006844: 8768: General: CMCPlayerApp::ExecuteCommandLine: Finish (0 ms)
0006844: 8768: General: CMainFrame::OnFileCommand: Finish (0 ms)
Logged

smarties

  • Recent member
  • *
  • Posts: 10
Re: Keyboard shortcuts using mc25.exe not working
« Reply #1 on: October 03, 2019, 08:23:29 am »

Bump.

It gets weirder....

I updated the PC to the latest Windows 10 version (19 03) and latest MC (25.108) and now these mc25.exe keyboard shortcuts work but only once and only immediately after rebooting windows & restarting MC.

Thereafter they resolutely refuse to do anything.  It's as if windows is only allowing one mc25.exe process to start ?

I've no anti-virus software installed other than Windows Defender and I believe I've "tamed" this as per the wiki article.

Help!
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42444
  • Shoes gone again!
Re: Keyboard shortcuts using mc25.exe not working
« Reply #2 on: October 03, 2019, 09:01:52 am »

This is a tricky one!

It's because of this handling we added recently:
      if (JRKeyboard::GetKeyPressed(VK_SHIFT))
      {
         aryFiles.Filter(_T("[Media Type]=[Audio]"));
      }
      else if (JRKeyboard::GetKeyPressed(VK_CONTROL))
      {
         aryFiles.Filter(_T("[Media Type]=[Image]"));
      }

It was this change in the history:
NEW: When executing command line commands, if the shift key is pressed it will only act on audio and it will only work on images if control is pressed.  This way holding that key down while choosing a Windows Explorer shell extension command will only operate on a certain media type.

We're filtering the list to be only images because CONTROL is down.

Let us think for a bit.
Logged
Matt Ashland, JRiver Media Center

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42444
  • Shoes gone again!
Re: Keyboard shortcuts using mc25.exe not working
« Reply #3 on: October 03, 2019, 09:13:35 am »

I'm just going to stop the keyboard handling if a treepath is specified.  It's possible we'll have to make other tweaks, but I liked the original change so we'll try to stick with it for a bit.
Logged
Matt Ashland, JRiver Media Center

smarties

  • Recent member
  • *
  • Posts: 10
Re: Keyboard shortcuts using mc25.exe not working
« Reply #4 on: October 03, 2019, 10:12:20 am »

Thanks Matt - glad it's not something specific with my set up!  Look forward to the fix...
Logged

jachin99

  • Citizen of the Universe
  • *****
  • Posts: 559
Re: Keyboard shortcuts using mc25.exe not working
« Reply #5 on: October 03, 2019, 10:54:12 am »

This might or might not be related but jrmc seems to stop responding to my pressing the green button on my remote after it has been running for a while.
Logged

smarties

  • Recent member
  • *
  • Posts: 10
Re: Keyboard shortcuts using mc25.exe not working
« Reply #6 on: October 05, 2019, 11:16:42 am »

I can confirm the issue is fixed in 25.0.113 release.  Great support!  Thanks guys.
Logged
Pages: [1]   Go Up