Thanks FluxTorpedoe, It works.
Quoting is always my headache, I feel that XYplorer' quoting rules is more complex than other programming languages.
How to use openwith <items>
-
binocular222
- Posts: 1423
- Joined: 04 Nov 2008 05:35
- Location: Win11, Win10, 100% Scaling
Re: How to use openwith <items>
I'm a casual coder using AHK language. All of my xys scripts:
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488
-
Filehero
- Posts: 2731
- Joined: 27 Feb 2012 18:50
- Location: Windows 11@100%
Re: How to use openwith <items>
Yep, that's why I always define the target run commands before I start scripting. Combined with a simplebinocular222 wrote:Quoting is always my headache,
Code: Select all
msg($runCmd)Yes an no.binocular222 wrote:, I feel that XYplorer' quoting rules is more complex than other programming languages.
The major part of the quote gallore is due the nature of the target command addressed. All Windows targets I know allow and/or require quoting of parameters (the standard example is paths containing spaces). Powershell even allows array parameters which simply are comma separated value enums enclosed by quotes. And now consider an array of windows paths to be passed to see the troubles you can get just by running the script.
The second part is a generic challenge as well: how to mask a control char (e.g. a double-quote) in the least troublesome way? It doesn't matter what way you choose it always gets awkward at some point.
Cheers,
Filehero
-
kotlmg
- Posts: 321
- Joined: 30 Jun 2010 17:14
Re: How to use openwith <items>
hello sir, i want to queue files to zoom player playlist.
command line option for queuing is
Queue path/file into the playlist (when Zoom Player is already open).
Example:
"c:\program files\zplayer\zplayer.exe" "/queue:e:\my video files\"
i have written the script as
OpenWith """C:\Program Files\Zoom Player\zplayer.exe"" "/queue:<items>\"
when i run the code i am getting 0 /0 error. can you please correct the above script. basicaaly i want to add selected files to the existing play list.
"PFA : MPC"
run """E:\4Media\Player\Media Player Classic HomeCinema x86\mpc-hc.exe"" /add ""<pfaitem>"""
what should be the above code for zoom player?
command line option for queuing is
Queue path/file into the playlist (when Zoom Player is already open).
Example:
"c:\program files\zplayer\zplayer.exe" "/queue:e:\my video files\"
i have written the script as
OpenWith """C:\Program Files\Zoom Player\zplayer.exe"" "/queue:<items>\"
when i run the code i am getting 0 /0 error. can you please correct the above script. basicaaly i want to add selected files to the existing play list.
"PFA : MPC"
run """E:\4Media\Player\Media Player Classic HomeCinema x86\mpc-hc.exe"" /add ""<pfaitem>"""
what should be the above code for zoom player?
-
PeterH
- Posts: 2827
- Joined: 21 Nov 2005 20:39
- Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%
Re: How to use openwith <items>
Seems you correctly added leading double quotes, and doubled the first quote-group.
But you didn't double the 2nd group, and missed the trailing double-quotes?
So maybe:
OpenWith """C:\Program Files\Zoom Player\zplayer.exe"" ""/queue:<items>\""";
(Didn't read documentation...)
But you didn't double the 2nd group, and missed the trailing double-quotes?
So maybe:
OpenWith """C:\Program Files\Zoom Player\zplayer.exe"" ""/queue:<items>\""";
(Didn't read documentation...)
-
kotlmg
- Posts: 321
- Joined: 30 Jun 2010 17:14
Re: How to use openwith <items>
hello sir,
i am facing some problem with the following code for potplayer.
OpenWith """C:\Program Files (x86)\Daum\PotPlayer\PotPlayerMini.exe"" <items>";
the above code is able to play the selected files for the first time only. 2nd time when i use the same code to run files in a already opened potplayer, it is not able to play the selected files.
hence i want you to modify the above code as
OpenWith """C:\Program Files (x86)\Daum\PotPlayer\PotPlayerMini.exe"" <items>";
kill potplayer script
OpenWith """C:\Program Files (x86)\Daum\PotPlayer\PotPlayerMini.exe"" <items>";
can you please give me the code to kill the potplayer process.
with regards,
i am facing some problem with the following code for potplayer.
OpenWith """C:\Program Files (x86)\Daum\PotPlayer\PotPlayerMini.exe"" <items>";
the above code is able to play the selected files for the first time only. 2nd time when i use the same code to run files in a already opened potplayer, it is not able to play the selected files.
hence i want you to modify the above code as
OpenWith """C:\Program Files (x86)\Daum\PotPlayer\PotPlayerMini.exe"" <items>";
kill potplayer script
OpenWith """C:\Program Files (x86)\Daum\PotPlayer\PotPlayerMini.exe"" <items>";
can you please give me the code to kill the potplayer process.
with regards,
-
totmad1
- Posts: 131
- Joined: 24 Jun 2013 12:37
Re: How to use openwith <items>
you could press F5 when PotPlayer is open this will open preferences.
click "General"
you will see "Multiple instances:"
click on down arrow and select "Disable:Play files in existing PotPlayer instance"
you can then run your XY script with all video/audio files selected with them being passed to playlist
HTH
click "General"
you will see "Multiple instances:"
click on down arrow and select "Disable:Play files in existing PotPlayer instance"
you can then run your XY script with all video/audio files selected with them being passed to playlist
HTH
totmad1 (totally mad one)
XYplorer Beta Club