Page 1 of 1

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

Posted: 14 Mar 2013 22:34
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

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

Posted: 15 Mar 2013 00:05
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""";

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

Posted: 15 Mar 2013 04:13
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: