Search found 30 matches

by zhaowu
09 Nov 2016 14:02
Forum: Bug Reports
Topic: writefile() default mode bug: text is unexpectedly chopped
Replies: 14
Views: 2606

Re: writefile() default mode bug: text is unexpectedly chopp

admin wrote:Interesting!

Code: Select all

echo isunicode("纽约灾星 The Jinx: The Life and Deaths of Robert Durst (2015)");
1

Code: Select all

echo isunicode("纽约灾星 The Jinx: The Life and Deaths of Robert Durst (2015)", 1);
0
by zhaowu
08 Nov 2016 03:07
Forum: Bug Reports
Topic: writefile() default mode bug: text is unexpectedly chopped
Replies: 14
Views: 2606

Re: writefile() default mode bug: text is unexpectedly chopp

Same code works well when writefile with mode `tu`.
by zhaowu
08 Nov 2016 03:05
Forum: Bug Reports
Topic: writefile() default mode bug: text is unexpectedly chopped
Replies: 14
Views: 2606

writefile() default mode bug: text is unexpectedly chopped

Example: ( Chinese is included in the data ) "Main" $text = "纽约灾星 The Jinx: The Life and Deaths of Robert Durst (2015)"; writefile("<xydata>\Log\XYplorer.log", $text.<crlf>, 'a', 't'); The result text is unexpectedly chopped: 纽约灾星 The Jinx: The Life and Deaths of Robert...
by zhaowu
06 Nov 2016 22:53
Forum: Script Exchange
Topic: User Functions Exchange
Replies: 99
Views: 71251

Re: User Functions Exchange

Wow, brilliant idea of using eval()! :appl: You pass an expression as argument! Never seen this in my life. :shock: However, I think the code you posted does not work. You reset $list to nothing before it is processed by foreach. I changed the code by adding a separate variable $listout and now it ...
by zhaowu
05 Nov 2016 15:21
Forum: Script Exchange
Topic: User Functions Exchange
Replies: 99
Views: 71251

Re: User Functions Exchange

Like Array.filter() in many languages which creates a new array with all elements that pass the test. Example: Remove non-existent recent locations from list echo listFilter(get("list_recentlocations"), 'exists("{@Item}")', <crlf>) /** * List Filter * * * @param {list} $list list...
by zhaowu
02 Nov 2016 16:17
Forum: Wishes
Topic: Add sub-menu support for scripts
Replies: 76
Views: 13822

Re: Add sub-menu support for scripts

Suggestion: relative level "Caption|Icon|State|[+|-]Level : Label" Script Example: /* global menu level for this script */ "C:" "Go to C:\|||+1" goto "C:\"; "%winsysdir%|||+1" goto "%winsysdir%";selectitems "calc.exe"; "D:&q...
by zhaowu
02 Nov 2016 12:38
Forum: Wishes
Topic: Add sub-menu support for scripts
Replies: 76
Views: 13822

Re: Add sub-menu support for scripts

v17.30.0001 - 2016-11-02 11:29 +++ Scripting: Now Multi-Scripts support nesting. Thanks for the update! :tup: Wish: load submenu from other script. For example: "<load otherscript.xys>|icon|state|LEVEL : label" This will load "otherscript.xys" and put menus as "LEVEL + 1&qu...
by zhaowu
02 Nov 2016 12:11
Forum: Wishes
Topic: Scripting: numbered arguments -> named arguments
Replies: 3
Views: 998

Scripting: numbered arguments -> named arguments

v17.30.0001 - 2016-11-02 11:29 +++ Scripting: Now numbered arguments are supported. Concerning numbered arguments, named arguments is a better choice for code readability. For example: # Python def fancyPrint(message, color='black', bold=True, underline=True): # ... implementation ... fancyPrint('H...
by zhaowu
31 Oct 2016 01:06
Forum: Wishes
Topic: Input Dialogue with Tips/Info Button
Replies: 5
Views: 1658

Re: Input Dialogue with Tips/Info Button

Another issue/wish is the cursor location: it should be in the end...

Image
by zhaowu
29 Oct 2016 01:27
Forum: Wishes
Topic: Add sub-menu support for scripts
Replies: 76
Views: 13822

Re: Add sub-menu support for scripts

Will this popupnested functionality apply to multi-line script popup menu in the future? :tup: Explanation : Syntax rules for XYplorer Script Files (3) You can have more than one script inside a script file. In that case, loading the script file will pop up a menu presenting all scripts inside the s...
by zhaowu
29 Oct 2016 00:50
Forum: Wishes
Topic: Input Dialogue with Tips/Info Button
Replies: 5
Views: 1658

Re: Input Dialogue with Tips/Info Button

Hope this can be implemented. :tup:
by zhaowu
27 Oct 2016 01:22
Forum: Bug Reports
Topic: Error related to thumbnails cache on disk
Replies: 6
Views: 1342

Re: Error related to thumbnails cache on disk

Great! I can confirm it working now! Thank you for this fix :appl:
by zhaowu
26 Oct 2016 22:06
Forum: Bug Reports
Topic: Error related to thumbnails cache on disk
Replies: 6
Views: 1342

Re: Error related to thumbnails cache on disk

configuration (Preview - Thumbnails page) Image
by zhaowu
26 Oct 2016 13:00
Forum: Bug Reports
Topic: Error related to thumbnails cache on disk
Replies: 6
Views: 1342

Re: Error related to thumbnails cache on disk

Download this zip file https://dl.dropboxusercontent.com/u/1897501/Gotham%20%E5%93%A5%E8%B0%AD%20%282014%29.zip Unzip it and browse the sub-folders with Thumbnails #1 View back and forth for a few times. Two problems should appear: 1. Very slow to move up by clicking the Breadcrumb bar. 2. Errors li...
by zhaowu
25 Oct 2016 02:55
Forum: Bug Reports
Topic: Error related to thumbnails cache on disk
Replies: 6
Views: 1342

Error related to thumbnails cache on disk

When thumbnails cache on disk is on, the error below pops up occasionally for folders containing videos or pictures with Chinese/Japanese in file name. Error 9 Error: 9 (0x00000009) Desc: Subscript out of range Dll: 0 Proc: CacheData - Count: -455787429 Source: XYplorer XY ver: XYplorer 17.20.0202 O...