Hover Box for Zip files

Features wanted...
Borut
Posts: 1465
Joined: 19 Oct 2010 19:29
Location: Win10 Pro 64b 22H2, @120DPI (125%)

Re: Hover Box for Zip files

Post by Borut »

text dectohex(attrstamp()) ;
2020

Seems to be the same for every file type.
Win 10 Pro 64bit

Borut
Posts: 1465
Joined: 19 Oct 2010 19:29
Location: Win10 Pro 64b 22H2, @120DPI (125%)

Re: Hover Box for Zip files

Post 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
Win 10 Pro 64bit

Leito
Posts: 562
Joined: 26 Sep 2016 15:37
Location: Windows 10 1809 x64

Re: Hover Box for Zip files

Post 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

admin
Site Admin
Posts: 64840
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Hover Box for Zip files

Post by admin »

1) I add more debug code.

2) I try another fix.

Borut
Posts: 1465
Joined: 19 Oct 2010 19:29
Location: Win10 Pro 64b 22H2, @120DPI (125%)

Re: Hover Box for Zip files

Post 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...
Win 10 Pro 64bit

admin
Site Admin
Posts: 64840
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Hover Box for Zip files

Post by admin »

So you have *.zip added to the "Text files" category?

admin
Site Admin
Posts: 64840
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Hover Box for Zip files

Post by admin »

Are there still any problems with Hover Box for Zip files anywhere?

admin
Site Admin
Posts: 64840
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Hover Box for Zip files

Post by admin »

Ok, I take it that all bugs here are fixed. I will remove all the debug logging then. :beer:

RalphM
Posts: 2042
Joined: 27 Jan 2005 23:38
Location: Cairns, Australia

Re: Hover Box for Zip files

Post 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
Ralph :)
(OS: W11 24H2 Home x64 - XY: Current x32 beta - Office 2024 32-bit - Display: 1920x1080 @ 125%)

Borut
Posts: 1465
Joined: 19 Oct 2010 19:29
Location: Win10 Pro 64b 22H2, @120DPI (125%)

Re: Hover Box for Zip files

Post 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:
Win 10 Pro 64bit

admin
Site Admin
Posts: 64840
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Hover Box for Zip files

Post 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.

admin
Site Admin
Posts: 64840
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Hover Box for Zip files

Post 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.

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

Re: Hover Box for Zip files

Post 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...
One of my scripts helped you out? Please donate via Paypal

RalphM
Posts: 2042
Joined: 27 Jan 2005 23:38
Location: Cairns, Australia

Re: Hover Box for Zip files

Post 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.
Ralph :)
(OS: W11 24H2 Home x64 - XY: Current x32 beta - Office 2024 32-bit - Display: 1920x1080 @ 125%)

admin
Site Admin
Posts: 64840
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Hover Box for Zip files

Post 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.

Post Reply