Page 1 of 1

Show URL of .url file in the status bar for easy copying

Posted: 08 Mar 2022 14:53
by xy123
When I select an .url file in WE, WE shows exact URL in the status bar.

I would like the same in XY so I can quickly copy that URL with double-click and...

Re: Show URL of .url file in the status bar for easy copying

Posted: 08 Mar 2022 15:05
by highend
There are so many ways to just copy an url from such a file, via custom event actions, catalog, button, keyboard shortcut, etc.

Write a script that reads the url and assign it to one of the above

Re: Show URL of .url file in the status bar for easy copying

Posted: 08 Mar 2022 15:24
by xy123
highend wrote: 08 Mar 2022 15:05 Write a script that reads the url and assign it to one of the above
Sounds easy when you know scripting, but most XY users don't know scripting, right.
Maybe most don't know that they can copy strings in the status bar with double-click.

Re: Show URL of .url file in the status bar for easy copying

Posted: 08 Mar 2022 15:33
by highend
Two commands are required. getkey and copytext. Isn't that easy enough?

Re: Show URL of .url file in the status bar for easy copying

Posted: 08 Mar 2022 15:40
by RalphM
Another option is to switch on the info panel and select preview, which shows you the url.

Re: Show URL of .url file in the status bar for easy copying

Posted: 08 Mar 2022 15:49
by xy123
highend wrote: 08 Mar 2022 15:33 Two commands are required. getkey and copytext. Isn't that easy enough?
Thank you very much. Here is the code for anyone else interested:

Code: Select all

    $a = getkey("URL", "InternetShortcut", "<curitem>");
    copytext $a;
Just searched for "getkey" in the Help and it was pretty easy to figure out.

Re: Show URL of .url file in the status bar for easy copying

Posted: 08 Mar 2022 16:21
by Horst
Quick View also shows the URL and it can be simply copied from it.