Open an URL with value in Clipboard

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
cldcp00
Posts: 52
Joined: 20 Jun 2019 15:26

Open an URL with value in Clipboard

Post by cldcp00 »

Hi there,

I have to managed to set a go to location to go YouTube, but is it possible to get a script to pass a value? i,e Artist name or the name of the song.

This will save me having to cut and paste the value from the clipboard.

Thanks for any help

Regards

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

Re: Open an URL with value in Clipboard

Post by highend »

And that value comes from... where?
One of my scripts helped you out? Please donate via Paypal

cldcp00
Posts: 52
Joined: 20 Jun 2019 15:26

Re: Open an URL with value in Clipboard

Post by cldcp00 »

I have a script that puts the artist and song name into the clipboard

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

Re: Open an URL with value in Clipboard

Post by highend »

Then let your new script use the <clipboard> variable?
One of my scripts helped you out? Please donate via Paypal

cldcp00
Posts: 52
Joined: 20 Jun 2019 15:26

Re: Open an URL with value in Clipboard

Post by cldcp00 »

highend wrote: 03 Jul 2019 07:33 Then let your new script use the <clipboard> variable?
Thanks Highend

i managed to get it working Just one small issue I am trying the send the clipboard value enclosed in quotes i.e " The Temptations"

I tried "<clipboard>" but did not get the desired results.

You help is very much appreciated

Regards

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

Re: Open an URL with value in Clipboard

Post by highend »

quote(<clipboard>)
One of my scripts helped you out? Please donate via Paypal

cldcp00
Posts: 52
Joined: 20 Jun 2019 15:26

Re: Open an URL with value in Clipboard

Post by cldcp00 »

highend wrote: 03 Jul 2019 14:18 quote(<clipboard>)
Hi Highend

Sorry to be a pain. I cannot seem to get quote(<clipboard>) to work

When this script is run it puts the value into the clipboard without quotes

copytext property("#tag.artist") ;

How can it be modified to have quotes around the string "The Temptations My Girl"

Thanks you for your help

Regards

cldcp00
Posts: 52
Joined: 20 Jun 2019 15:26

Re: Open an URL with value in Clipboard

Post by cldcp00 »

Hi Highend

With a bit of trial and error I have now got it working

used

copytext quote(property("#tag.artist"));

thanks again for your help

Regards

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

Re: Open an URL with value in Clipboard

Post by highend »

Em...

copytext quote(property("#tag.artist"));
One of my scripts helped you out? Please donate via Paypal

Post Reply