[Scriptinghelp] How to assign this context menu to a script?

Discuss and share scripts and script files...
Post Reply
nav
Posts: 20
Joined: 14 Mar 2013 21:44

[Scriptinghelp] How to assign this context menu to a script?

Post by nav »

Hello ,
I want to set hotkey to this shell context menu : "enqueue file in kmplayer" ,

we select some media files and choose this menu to enqueue them to the playlist ,that 's how it work

It 's system context menu ,not xyplorer's so i can't set hotkey to it ,so i think i have to assign it to a script

The command in registry is

Code: Select all

"C:\Program Files\The KMPlayer\KMPlayer.exe"/ADD "%1"
but i don't know how to add it to the script to assign to a hotkey
(I tried define user command=> open and add that command but it not work)

Any help will be appreciated
Thanks in advance

highend
Posts: 14942
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: [Scriptinghelp] How to assign this context menu to a scr

Post by highend »

A script would look like this:

Code: Select all

	$items = get("SelectedItemsPathNames", chr(34)." ".chr(34));
	run """C:\Program Files (x86)\The KMPlayer\KMPlayer.exe"" /ADD ""$items""";
One of my scripts helped you out? Please donate via Paypal

nav
Posts: 20
Joined: 14 Mar 2013 21:44

Re: [Scriptinghelp] How to assign this context menu to a scr

Post by nav »

highend wrote:A script would look like this:

Code: Select all

	$items = get("SelectedItemsPathNames", chr(34)." ".chr(34));
	run """C:\Program Files (x86)\The KMPlayer\KMPlayer.exe"" /ADD ""$items""";
thank you a million times ,it works
:mrgreen:

Post Reply