INTERACT FORUM

Please login or register.

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

Author Topic: Switch libraries shortcut?  (Read 1220 times)

fermenter

  • Recent member
  • *
  • Posts: 49
Switch libraries shortcut?
« on: December 28, 2017, 08:18:48 pm »

Hi, I've had a look through the archives and the only reference I can find is from MC16 (and to be honest I don't understand it anyway).

I have a secondary library that I would like to be able to switch to occasionally using a keyboard shortcut/remote control. However I always want MC to open in my primary library.

I know there's a way to edit the desktop shortcut to force the primary library to load, but I'm not sure how to make the switch?
Logged

RoderickGI

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 8186
Re: Switch libraries shortcut?
« Reply #1 on: December 28, 2017, 09:48:45 pm »

However I always want MC to open in my primary library.

Easy: "Options > Startup > Library > Always load default library"

The default library is the library that is stored under the MC directory structure, typically "C:\Users\[UserID]\AppData\Roaming\J River\Media Center 23\Library". Is it normally the first one created by a user, or the default one created at installation time.


I know there's a way to edit the desktop shortcut to force the primary library to load, but I'm not sure how to make the switch?

You can use the same method to load any library. Copy the existing shortcut and edited it to use the /Library command line switch, and point it at the library you want to load.
Here is a thread that discusses some way to use that function. Note that the thread doesn't discuss exactly what you want, but you should be able to use it to work it out. https://yabb.jriver.com/interact/index.php/topic,103629.0.html


I have a secondary library that I would like to be able to switch to occasionally using a keyboard shortcut/remote control.


If you are using Theatre View it is easy to add menu items that would do the switch for you as well. Just;
1. In "Options > Theatre View > Items To Show" click the Add button to add a new Category item. Name it appropriately, set it to be a Secondary Roller.
2. Add an External Program, rename it to something appropriate, MC23 will have filled in the default MC23 executable, which is what you want to use, add in the Command Line Arguments such as "/Library MySecondaryLibray".
3. Move this new item up or down so that it is below the Category item you created above. Click the Nest button to nest it into that Category.
4. Add any External Program items you want to use.

The image below shows a bit of a mockup of how it is done.

If you want to assign a Keyboard Command to switch libraries you will want to create a Custom Resource.xml file for MC. Here is a post that discusses some of that: https://yabb.jriver.com/interact/index.php/topic,104626.msg727665.html#msg727665
The whole thread is probably worth a read. It discusses creating the "Custom Resources" sub-directory, which is where changes should be made, so that you don't change the default resource.xml file. A search on the topic will find other threads.

For such a keyboard shortcut you will need to use a Media Center Core Command (MCC Command) rather than a Command Line switch as above. MCC /20025 (MCC_LOAD_LIBRARY) looks like the correct one. I'll leave you to work out the details of that. But do be careful that you only use a Keyboard Shortcut that isn't already assigned or you will break something. Search the resource.xml file to make sure that the key combination you pick hasn't already been used.

Depending on your remote control and available IR commands, or whatever Remote type you use, you could also assign a remote button to launch an MC23.exe Command Line switch to do the job, similar to changing the Windows Shortcut as mentioned above. I'm not going there today. IR Commands; grumble, grumble.

Have fun!
Logged
What specific version of MC you are running:MC27.0.27 @ Oct 27, 2020 and updating regularly Jim!                        MC Release Notes: https://wiki.jriver.com/index.php/Release_Notes
What OS(s) and Version you are running:     Windows 10 Pro 64bit Version 2004 (OS Build 19041.572).
The JRMark score of the PC with an issue:    JRMark (version 26.0.52 64 bit): 3419
Important relevant info about your environment:     
  Using the HTPC as a MC Server & a Workstation as a MC Client plus some DLNA clients.
  Running JRiver for Android, JRemote2, Gizmo, & MO 4Media on a Sony Xperia XZ Premium Android 9.
  Playing video out to a Sony 65" TV connected via HDMI, playing digital audio out via motherboard sound card, PCIe TV tuner

fermenter

  • Recent member
  • *
  • Posts: 49
Re: Switch libraries shortcut?
« Reply #2 on: December 30, 2017, 05:09:30 pm »

Thank you so much for the excellent instructions! I do use theater view so adding a menu item to the main navigation is absolutely perfect.

Thanks again!  ;D
Logged
Pages: [1]   Go Up