Search found 557 matches

by armsys
05 Dec 2015 22:52
Forum: Script Exchange
Topic: [AHK] Get paths of selected fileS or a file in XYplorer ?
Replies: 11
Views: 2226

Re: [AHK] Get paths of selected fileS or a file in XYplorer

highend wrote:Em...
That is part of the AHK CODE, not of XY's (which begins with "::" and ends before the last closing ")")^^
Got it. Thank you.
by armsys
05 Dec 2015 21:33
Forum: Script Exchange
Topic: [AHK] Get paths of selected fileS or a file in XYplorer ?
Replies: 11
Views: 2226

Re: [AHK] Get paths of selected fileS or a file in XYplorer

I google the "Ltrim Join" and find that Highend is the sole inventor of the command.
In the manual I couldn't find it.
by armsys
05 Dec 2015 21:30
Forum: Script Exchange
Topic: [AHK] Get paths of selected fileS or a file in XYplorer ?
Replies: 11
Views: 2226

Re: [AHK] Get paths of selected fileS or a file in XYplorer

highend wrote:It removes all trailing spaces / tabs and joins the lines into one afterwards.
Thanks for your fast help.
But when experimenting in the address bar (Alt+F8), the following command won't work:

Code: Select all

:: echo (ltrim join :: "abc " . "def  ");
:naughty:
by armsys
05 Dec 2015 20:56
Forum: Script Exchange
Topic: [AHK] Get paths of selected fileS or a file in XYplorer ?
Replies: 11
Views: 2226

Re: [AHK] Get paths of selected fileS or a file in XYplorer

Dear Highend, Thank you for some XYS coding techniques. Howeve, I have trouble to under the syntax of (LTrim Join...): Hacked together... xyQueryScript = ( LTrim Join :: if (!%bAll% && !%bSelection%) { $return = "<curpath>"; } elseif (%bAll%) { $return = listpane(, , , "<crlf>"); } elseif (%bSelecti...
by armsys
01 Dec 2015 09:03
Forum: Wishes
Topic: Asian Language Support of readurl()
Replies: 11
Views: 963

Re: Asian Language Support of readurl()

Pass the number, not the string: ::text readurl("http://hk.on.cc/hk/bkn/cnt/news/20151129/bkn-20151129150616930-1129_00822_001.html",,,,65001); Yeah, your plain number 65001 works like a charm! Thanks a lot. :appl: 100 MB limit because readurl() blocks the app until it's done. Let me know if that's...
by armsys
01 Dec 2015 00:06
Forum: Wishes
Topic: Asian Language Support of readurl()
Replies: 11
Views: 963

Re: Asian Language Support of readurl()

How come Don impose a restriction of 100MB to readurl()? :oops: :blackstorm:
(Actually I don't mind so far! :lol: )
by armsys
01 Dec 2015 00:04
Forum: Wishes
Topic: Asian Language Support of readurl()
Replies: 11
Views: 963

Re: Asian Language Support of readurl()

Hi Don,
How come readurl() and readurlutf8() for supposedly the same codepage 65001 perform differently, one good :appl: and one bad :naughty:?
by armsys
30 Nov 2015 23:55
Forum: Wishes
Topic: Asian Language Support of readurl()
Replies: 11
Views: 963

Re: Asian Language Support of readurl()

Hi Don, Thank you for your instant implementation of the Asian languages support for readurl() in v16.00.0203 - 2015-11-26 18:49. Repeated tests show readurlutf8() performs better than the enhanced readurl(). The text produced by readurlutf8() is legible. XY35.jpg ::text readurlutf8("http://hk.on.cc...
by armsys
30 Nov 2015 12:11
Forum: Wishes
Topic: Asian Language Support of readurl()
Replies: 11
Views: 963

Re: Asian Language Support of readurl()

The site is "charset=utf-8". XYplorer cannot know this (unless I teach it how to interpret HTML -- not my plan). So you have to tell readurl() how to interpret the data. I will add a CodePage parameter that allows you to do so. Hi Don, You never cease to amaze us. Wow, what a perfect enhancement! :...
by armsys
30 Nov 2015 11:05
Forum: Wishes
Topic: Asian Language Support of readurl()
Replies: 11
Views: 963

Re: Asian Language Support of readurl()

the builtin textbox isn't very good at displaying exotic content. Thank you for trying to help. Nope, the screen shot produced by your ::writefile('readurl.txt', readurl("http://hk.on.cc/hk/bkn/cnt/news/20151129/bkn-20151129150616930-1129_00822_001.html")); shows the Chinese characters are misinter...
by armsys
29 Nov 2015 11:56
Forum: Wishes
Topic: Asian Language Support of readurl()
Replies: 11
Views: 963

Re: Asian Language Support of readurl()

admin wrote:For example?
The result produced by readurl() is illegible! :naughty: :naughty:

Code: Select all

::text readurl("http://hk.on.cc/hk/bkn/cnt/news/20151129/bkn-20151129150616930-1129_00822_001.html");
by armsys
29 Nov 2015 10:08
Forum: Wishes
Topic: Asian Language Support of readurl()
Replies: 11
Views: 963

Asian Language Support of readurl()

It would be nice if readurl() can display Asian languages properly.
by armsys
25 Nov 2015 00:34
Forum: Script Exchange
Topic: Foreach selected folder, copy, rename and move contents
Replies: 17
Views: 2239

Re: Foreach selected folder, copy, rename and move contents

I mean: setting "BackgroundFileOps", 0; foreach($folder, "<get SelectedItemsPathNames |>") { if (exists($folder) != 2) { continue; } $files = folderreport("files:{modified yyyymmddhhmmss}|{fullname}", "r", $folder); $sorted = formatlist($files, "r", "<crlf>"); $latest = gettoken(gettoken($sorted, 1,...
by armsys
25 Nov 2015 00:27
Forum: Script Exchange
Topic: Foreach selected folder, copy, rename and move contents
Replies: 17
Views: 2239

Re: Foreach selected folder, copy, rename and move contents

highend wrote:Regarding the new file name...
Examples (original -> modified)?
folderreport is without the recursive flag...
Hi Highend,
Thank you for taking time to show us the XYS scripting tricks. :appl:
by armsys
23 Nov 2015 10:28
Forum: Tips & Tricks, Questions & Answers
Topic: How to Format foldersize()?
Replies: 7
Views: 517

Re: How to Format foldersize()?

Hi Highend, Thanks to your tip, I modify the script for my learning exercise. Thank for your help. $properties = foldersize(,"<d>, <f>, <b>"); $text = "Folder Count: " . format(gettoken($properties, 1, ", "),"000") . <crlf>."File Count: " . format(gettoken($properties, 2, ", "),"#,000.00") . <crlf> ...