Page 3 of 4

Re: Hover Box for Zip files

Posted: 02 Nov 2018 00:16
by Borut
text dectohex(attrstamp()) ;
2020

Seems to be the same for every file type.

Re: Hover Box for Zip files

Posted: 02 Nov 2018 00:37
by Borut
Here it seems like zip file would be regarded as a text file (but obviously not so in fresh, hm).

Also, I was now playing with checking and unchecking the file types for HB and out of a blue sky am getting HB on the wrong monitor - the subject of another thread. Here for what it is worth, the output of ::screen; at my place:

Virtual Screen:
X = 0
Y = 0
Width = 3286
Height = 1080

Screen.Width = 1366
Screen.Height = 768

GetCursorPos = 0, 45

Current Monitor: 1 (Primary)
Current Work Area: (0, 0) - (1366, 716)

Number of Monitors: 2
Monitor 1 Area: (0, 0) - (1366, 768)
Monitor 1 Area Work: (0, 0) - (1366, 716)
Monitor 2 Area: (1366, 0) - (3286, 1080)
Monitor 2 Area Work: (1366, 0) - (3286, 1080)

Startup Work Area: (0, 0) - (1366, 716)

Main Window: (-4, -4) - (1370, 720)

Screen DPI: 96 (100%)
Screen Color Depth: 32

Re: Hover Box for Zip files

Posted: 02 Nov 2018 09:26
by Leito
Works for me on Windows 10 1809 with my configuration, XYplorer 19.30.0006.

Code: Select all

::text dectohex(attrstamp());

20

Code: Select all

::dlog;

2018-11-02 09:20:22.256 >> Delay:1
2018-11-02 09:20:22.256 >> Delay:2
2018-11-02 09:20:22.256 >> sFIT:InfoTip
2018-11-02 09:20:22.256 >> sHB:1
2018-11-02 09:20:22.256 >> sHB:2
2018-11-02 09:20:22.256 >> sHB:3
2018-11-02 09:20:22.256 >> hb_Get
2018-11-02 09:20:22.256 >> kExtZipFldr OK
2018-11-02 09:20:22.256 >> ePFzip OK
2018-11-02 09:20:22.256 >> zip_ListContents IN
2018-11-02 09:20:22.271 >> zip_ListContents OUT: 2
2018-11-02 09:20:22.271 >> sHB:4
2018-11-02 09:20:22.271 >> sHB:5
2018-11-02 09:20:22.286 >> Delay:3

Re: Hover Box for Zip files

Posted: 02 Nov 2018 09:34
by admin
1) I add more debug code.

2) I try another fix.

Re: Hover Box for Zip files

Posted: 02 Nov 2018 14:39
by Borut
Hi Don!

I have just played a bit more (this time on a Win7, 32bit, XY .0006) and to my surprise, this time, when I uncheck Text files as previewed format, the HB shows the zip file content as expected.

I don't think that that was the case in the night (and am pretty sure I have checked that combination, but, well, who knows), maybe Ghosts...

Re: Hover Box for Zip files

Posted: 02 Nov 2018 16:58
by admin
So you have *.zip added to the "Text files" category?

Re: Hover Box for Zip files

Posted: 02 Nov 2018 21:26
by admin
Are there still any problems with Hover Box for Zip files anywhere?

Re: Hover Box for Zip files

Posted: 03 Nov 2018 00:40
by admin
Ok, I take it that all bugs here are fixed. I will remove all the debug logging then. :beer:

Re: Hover Box for Zip files

Posted: 03 Nov 2018 01:31
by RalphM
Hi Don

Sorry for being a bit late with my testing but Zip file contents still don't show up for me in hover box.
Attrstamp returns 20 on the below zip's.
With Text and Office ticked I get the preview of Readme.txt in the hover box instead of the content, w/o these two I see the properties of the zip on hover.

Code: Select all

XYplorer 19.30.0009  -  Windows 10 Windows 8, 64-bit, Release 1803, Build 17134.345  -  2018-11-03 10:23:39.521
----------------------------------------------------------------------------------------------------

2018-11-03 10:15:26.956 >> sHB:2
2018-11-03 10:15:26.956 >> sHB:3
2018-11-03 10:15:26.956 >> hb_Get1: xyplorer_19.30.0001_beta.zip
2018-11-03 10:15:26.956 >> hb_Get2: xyplorer_19.30.0001_beta.zip
2018-11-03 10:15:26.956 >> XXX Office
2018-11-03 10:15:51.832 >> sHB:2
2018-11-03 10:15:51.832 >> sHB:3
2018-11-03 10:15:51.832 >> hb_Get1: xyplorer_19.20.0035_beta.zip
2018-11-03 10:15:51.832 >> hb_Get2: xyplorer_19.20.0035_beta.zip
2018-11-03 10:15:51.832 >> XXX Office
2018-11-03 10:15:55.037 >> sHB:Tree 1 - 0
2018-11-03 10:15:55.037 >> sHB:2
2018-11-03 10:15:55.037 >> sHB:3
2018-11-03 10:15:55.037 >> hb_Get1: SciLab
2018-11-03 10:15:55.037 >> hb_Get2: SciLab
2018-11-03 10:15:55.037 >> XXX Folder: False, 2
2018-11-03 10:16:02.323 >> sHB:4
2018-11-03 10:16:02.323 >> sHB:5
2018-11-03 10:16:17.380 >> sHB:Tree 1 - 0
2018-11-03 10:16:17.380 >> sHB:2
2018-11-03 10:16:17.380 >> sHB:3
2018-11-03 10:16:17.380 >> hb_Get1: Skype
2018-11-03 10:16:17.380 >> hb_Get2: Skype
2018-11-03 10:16:17.380 >> XXX Folder: False, 2
2018-11-03 10:16:17.409 >> sHB:4
2018-11-03 10:16:17.409 >> sHB:5

Re: Hover Box for Zip files

Posted: 03 Nov 2018 08:46
by Borut
admin wrote: 02 Nov 2018 16:58 So you have *.zip added to the "Text files" category?
Hi Don,

sorry, needed prolonged sleeping time.

Damn it, you ware right! :roll: :oops: I removed it now from the "Text files" category and it works for me now (although still being checked inside Web files, which I currently have active). Here what I see in the log now (this time just as an additional information):

Code: Select all

XYplorer 19.30.0009  -  Windows 7 Professional (Service Pack 1), 64-bit, Build 7601  -  2018-11-03 08:20:33.996
----------------------------------------------------------------------------------------------------

2018-11-03 08:20:24.081 >> sHB:2
2018-11-03 08:20:24.081 >> sHB:3
2018-11-03 08:20:24.081 >> hb_Get1: xxxx.zip
2018-11-03 08:20:24.081 >> hb_Get2: xxxx.zip
2018-11-03 08:20:24.081 >> kExtZipFldr OK
2018-11-03 08:20:24.081 >> ePFzip OK
2018-11-03 08:20:24.081 >> zip_ListContents IN
2018-11-03 08:20:24.124 >> zip_ListContents OUT: 1
2018-11-03 08:20:24.127 >> sHB:4
2018-11-03 08:20:24.127 >> sHB:5
So, my conclusion would be that when zip file is selected for HB, this should probably better take precedence over zip file selections in previewed formats. (But maybe I am not having the big picture.)

Thanks for all your efforts. :tup: :tup: :beer:

Re: Hover Box for Zip files

Posted: 03 Nov 2018 09:47
by admin
Borut wrote: 03 Nov 2018 08:46So, my conclusion would be that when zip file is selected for HB, this should probably better take precedence over zip file selections in previewed formats. (But maybe I am not having the big picture.)
I see it like this: Hover Box is one of the many previews in XY. The Previewed Formats section gives you the ultimate control over all previews, here you decide which file type you want to view how. Hence, if you want to look at ZIPs as text, Hover Box will obey.

But, sure, this is only one way to view it.

Re: Hover Box for Zip files

Posted: 03 Nov 2018 09:50
by admin
RalphM wrote: 03 Nov 2018 01:31 With Text and Office ticked I get the preview of Readme.txt in the hover box instead of the content, w/o these two I see the properties of the zip on hover.
Your debug log tells me that you have added ZIP to the "Office Files" category. If you remove it from there the issue should be resolved.

Re: Hover Box for Zip files

Posted: 03 Nov 2018 10:17
by highend
Don, wouldn't it be a good idea to spit out some warning if somebody tries to add an extension to a category that already exists in a different one (or alternatively a button to check for such a "problem")? Seems this happens very often...

Re: Hover Box for Zip files

Posted: 03 Nov 2018 10:30
by RalphM
admin wrote: 03 Nov 2018 09:50Your debug log tells me that you have added ZIP to the "Office Files" category. If you remove it from there the issue should be resolved.
You're right, but how did I end up with zip added there? Plus it's also present in Web files.

Re: Hover Box for Zip files

Posted: 03 Nov 2018 11:19
by admin
highend wrote: 03 Nov 2018 10:17 Don, wouldn't it be a good idea to spit out some warning if somebody tries to add an extension to a category that already exists in a different one (or alternatively a button to check for such a "problem")? Seems this happens very often...
Not sure. In some contexts (though not in Hover Box) the methods are tried from top to bottom (first User-Defined, then Text Files to Video Files) until something works. So it might make sense to have one extension in different categories.