Adding software to context menu


  1. cvc
    Posts : 4
    10
       #1

    Adding software to context menu


    What edits are missing to add the KMPlayer to the context menu when right clicking files?

    Adding software to context menu-01.jpg

    Adding software to context menu-03.jpg

    "C:\Program Files\KMPlayer 64X\KMPlayer64.exe" /play "%1"


    Also, is it possible to add this functionality to image editing software, to open selected image files from the context menu?




    Task:

    Add software to the context menu to open selected media folders/files


    Software:

    Audio/Video files using KMPlayer


    Test case: KMPlayer

    KMPlayer has been successfully added to the context menu

    HKEY_CLASSES_ROOT\Directory\shell\KMPlayer

    Adding software to context menu-01.jpg

    HKEY_CLASSES_ROOT\Directory\shell\KMPlayer\command

    Adding software to context menu-02.jpg

    The above entries open KMPlayer, however as is apparent

    KMPlayer only appears in the context menu when right clicking on folders. KMPlayer doesn't appear in the context menu when right clicking on files

    The function is missing the required command(s) to trigger folders to auto play. Untested on files


    Example

    The media player 'VLC' adds to the context menu used on both folders, and files, that triggers media files to auto play using the key:
    "C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" --started-from-file --no-playlist-enqueue "%1"


    Feedback:

    KMPlayer provides a detailed resource for adding commands

    Usage: KMPlayer.exe "pathname" [switches]

    "pathname" The main file or directory to be loaded
    (wildcards allowed, "-" denotes standard input)
    /dub "dubname" Load an additional audio file
    /dubdelay "file" Load an additional audio file shifted with XXms
    (if the file contains "...DELAY XXms...")
    /d3dfs Start rendering in D3D fullscreen mode
    /sub "subname" Load an additional subtitle file
    /filter "filtername" Load DirectShow filters from a dynamic link library (wildcards allowed)
    /dvd Run in DVD mode, "pathname" means the DVD folder (optional)
    /dvdpos T#C Start playback at title T, chapter C
    /dvdpos T#P Start playback at title T, position P (hh:mm:ss)
    /cd Load all the tracks of an Audio CD or (S)VCD,
    "pathname" means the drive path (optional)
    /device Open the default video device
    /open Open the file, don't automatically start playback
    /play Start playing the file as soon the player is launched
    /close Close the player after playback (only works when used with /play)
    /shutdown Shutdown the operating system after playback
    /standby Put the operating system in standby mode after playback
    /hibernate Hibernate operating system after playback
    /logoff Log off after playback
    /lock Lock workstation after playback
    /monitoroff Turn off the monitor after playback
    /playnext Open next file in the folder after playback
    /fullscreen Start in fullscreen mode
    /minimized Start in minimised mode
    /new Use a new instance of the player
    /add Add "pathname" to playlist, can be combined with /open and /play
    /randomize Randomise the playlist
    /regvid Create file associations for video files
    /regaud Create file associations for audio files
    /regpl Create file associations for playlist files
    /regall Create file associations for all supported file types
    /unregall Remove all file associations
    /start ms Start playing at "ms" (= milliseconds)
    /startpos hh:mm:ss Start playing at position hh:mm:ss
    /fixedsize w,h Set a fixed window size
    /monitor N Start player on monitor N, where N starts from 1
    /audiorenderer N Start using audiorenderer N, where N starts from 1 (see "Output" settings)
    /shaderpreset "Pr" Start using "Pr" shader preset
    /pns "name" Specify Pan&Scan preset name to use
    /iconsassoc Reassociate format icons
    /nofocus Open KMPlayer in background
    /webport N Start web interface on specified port
    /debug Show debug information in OSD
    /nocrashreporter Disable the crash reporter
    /slave "hWnd" Use KMPlayer as slave
    /hwgpu "index" Set the index of the GPU used for hardware decoding.
    Only available for CUVID and DXVA2 (copy-back)
    /reset Restore default settings
    /help /h /? Show help about command line switches



    Fix:

    The following is functioning as desired via 'right click' folders, not via 'right click' files

    Adding software to context menu-03.jpg

    "C:\Program Files\KMPlayer 64X\KMPlayer64.exe" /play "%1"
      My Computer


  2. Posts : 43,459
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #2

    KMPlayer only appears in the context menu when right clicking on folders. KMPlayer doesn't appear in the context menu when right clicking on files
    Suggestion: to make the task easier to manage, try using
    Easy Context Menu
    Easy Context menu v1.6

    As you can see, it offers options to add context menus to folders/files and more.
    Adding software to context menu-1.jpg
      My Computers


  3. cvc
    Posts : 4
    10
    Thread Starter
       #3

    dalchina said:
    Suggestion: to make the task easier to manage, try using
    Easy Context Menu

    OK. thanks for the suggestion. I'll have a look.

    The thing is, i was hoping to be able to pick up some skills with editing the registry manually. The issue falls on the keywords, or the lack of knowledge about which keywords, to enter into a search engine.

    Still, software utilities like the one you've suggest make life a lot easier to navigate I guess. So thanks again!
      My Computer


  4. Posts : 43,459
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #4

    Definitely! Saves time, error- and makes additions readily changeable- plus you can enable/disable the added context menu with 1 click,
      My Computers


  5. Posts : 17,049
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #5

    And you can learn about the changes that Easy Context Menu makes by running something like RegShot before & after doing any changes.
    my RegShot ditty - #19 - TenForumsTutorials

    You could also see some example changes by searching the tutorial index for context menu.


    Best of luck,
    Denis



    Welcome to TenForums.

    It's really worth making time to browse through the Tutorial index - there's a shortcut to it at the top of every page.
    - At the foot of the Tutorial index is a shortcut to download it as a spreadsheet.
    - I download a new copy each month.
    - By downloading it as a spreadsheet I can benefit from Excel's excellent filtering capabilities when I search for topics of interest.
    - Tutorials are also listed by category at Tutorials - there's also a shortcut to that at the top of every page.
    - Both tutorial lists are searchable.
    - You can also search for TenForumsTutorials in many general search engines, such as Google, by adding site:tenforums.com/tutorials after your search term. For example,
    taskbar toolbars site:tenforums.com/tutorials

    You can search TenForums using the search box in the top-right corner of all TenForums webpages or using Advanced Search - TenForums
    - You can also search TenForums threads in many general search engines, such as Google, by adding site:tenforums.com after your search term. For example,
    Search for drivers by HardwareID site:tenforums.com
    - [This is what the search box in the top-right corner of TenForums webpages does automatically]
      My Computer


  6. cvc
    Posts : 4
    10
    Thread Starter
       #6

    Try3 said:
    And you can learn about the changes that Easy Context Menu makes by running something like RegShot before & after doing any changes.


    ooooh! now that IS useful! I was wondering whether there was some sort of 'sniffer' to catch registry change pre and post edits. Thanks a lot for the heads up!
      My Computer


  7. Posts : 17,049
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #7

    There's also the similar NirSoft RegistryChangesView
    I had found RegShot first and merely stuck with it.
    NirSoft publish a lot of very useful software utilities. Take a look at their index.


    Thanks for the rep,
    Denis
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 15:37.
Find Us




Windows 10 Forums