play with kmplayer, enque in kmplayer

Discuss and share scripts and script files...
Post Reply
kotlmg
Posts: 321
Joined: 30 Jun 2010 17:14

play with kmplayer, enque in kmplayer

Post by kotlmg »

hello sir,
i am using kmplayer to play all video and audio files. right now, in the context menu, i am getting two options i.e. play with kmplayer, enque in kmplayer etc. is it possible to add context sensitive menu to a button using xyplorer script?
i am adding the command line options possible in kmplayer in the attached image?

can you give the script for the above options?
it searches the playlist files using control + s command? can this option be also added to the code.

right now i am using the following code.

Code: Select all

"KMPlayer"
    OpenWith """C:\Program Files (x86)\The KMPlayer\KMPlayer.exe"" <items>";
"enque"
    $items = get("SelectedItemsPathNames", chr(34)." ".chr(34));
    run """C:\Program Files (x86)\The KMPlayer\KMPlayer.exe"" /ADD ""$items""";
with regaards,
m.k.rao
To see the attached files, you need to log into the forum.

binocular222
Posts: 1423
Joined: 04 Nov 2008 05:35
Location: Win11, Win10, 100% Scaling

Re: play with kmplayer, enque in kmplayer

Post by binocular222 »

Tool > List Management > Portable File Association

Code: Select all

"Open with KMP" mp3;wma;wav>C:\Program Files (x86)\The KMPlayer\KMPlayer.exe
"Enqueue in KMP" mp3;wma;wav>::run """C:\Program Files (x86)\The KMPlayer\KMPlayer.exe"" /ADD ""<selitems>""";
I'm a casual coder using AHK language. All of my xys scripts:
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488

kotlmg
Posts: 321
Joined: 30 Jun 2010 17:14

Re: play with kmplayer, enque in kmplayer

Post by kotlmg »

i need the code for command line switches shown in the attached image.

binocular222
Posts: 1423
Joined: 04 Nov 2008 05:35
Location: Win11, Win10, 100% Scaling

Re: play with kmplayer, enque in kmplayer

Post by binocular222 »

See my previous post, jam any parameter into
::run """C:\Program Files (x86)\The KMPlayer\KMPlayer.exe"" /ADD "<selitems>""
I'm a casual coder using AHK language. All of my xys scripts:
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488

kotlmg
Posts: 321
Joined: 30 Jun 2010 17:14

Re: play with kmplayer, enque in kmplayer

Post by kotlmg »

actually i am not able to follow your code.
i want to add options
like /dvd
/cd
/close
/wdm
/shutdown etc.
for one of these options can you add the code please?

binocular222
Posts: 1423
Joined: 04 Nov 2008 05:35
Location: Win11, Win10, 100% Scaling

Re: play with kmplayer, enque in kmplayer

Post by binocular222 »

Code: Select all

"Open with KMP" mp3;wma;wav>C:\Program Files (x86)\The KMPlayer\KMPlayer.exe
"Enqueue in KMP - DVD" mp3;wma;wav>::run """C:\Program Files (x86)\The KMPlayer\KMPlayer.exe"" /DVD "<selitems>""
"Enqueue in KMP - CD" mp3;wma;wav>::run """C:\Program Files (x86)\The KMPlayer\KMPlayer.exe"" /CD "<selitems>""
"Enqueue in KMP - close" mp3;wma;wav>::run """C:\Program Files (x86)\The KMPlayer\KMPlayer.exe"" /Close "<selitems>""
"Enqueue in KMP - wdm" mp3;wma;wav>::run """C:\Program Files (x86)\The KMPlayer\KMPlayer.exe"" /wdm "<selitems>""
"Enqueue in KMP - shutdown" mp3;wma;wav>::run """C:\Program Files (x86)\The KMPlayer\KMPlayer.exe"" /shutdown "<selitems>""
select some mp3/wma/wav files then Ctrl+Alt+Enter will popup a Portable-Openwith menu with these options
I'm a casual coder using AHK language. All of my xys scripts:
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488

kotlmg
Posts: 321
Joined: 30 Jun 2010 17:14

Re: play with kmplayer, enque in kmplayer

Post by kotlmg »

thanks a lot.

Post Reply