Universal Viewer - Lister alternative

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

2editor1955
My problem is that I don't understand what these macros do. So then, if I add "{FileName}" to the parameters list, what does that do? And if I add "{FileDir}", what does that do? And so on. That's what I would like some help with. Explanations and examples would be greatly appreciated from anyone. Thanks.
OK, here are they:

{FileName} - this is substituted by full path of file currently opened
{FileDir} - only directory of opened file
{FileNameOnly} - only name of file, without directory name
{FileNameShort} - short (8.3 form) name of file
{FileNameOnlyShort} - name only, wihout directory, of short (8.3) name
{PosPercent} - position of Viewer window, in percents (0..100)
{PosOffset} - decimal position of Viewer window (0..Unlimited)
{PosOffsetHex} - hex position of Viewer window (0..Unlimited)


For ex, if you open file FileName.txt and scroll it to bottom, then parameters
/File="{FileName}" /Pos={PosPercent}

mean
/File="C:\Directory\Filename.txt" /Pos=100
User avatar
Hacker
Moderator
Moderator
Posts: 13142
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

[mod]Some OT posts split to XBaseView plugin issues.

Hacker (Moderator)[/mod]
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

Search with RegEx is almost done!

I use DIRegEx lib for this. There is currently small bug with the last search match, which should be fixed...
User avatar
menet
Member
Member
Posts: 199
Joined: 2005-04-21, 12:27 UTC
Location: Paris, France

Post by *menet »

Like I see often this entry updated in the forum, I have tried this viewer (version 1.5.8.2). :P

But like it is written in this forum it does not work with UTF-8 files without signature (BOM).
It should be documented in your FAQ page
TC lister is better because even he doesn't recognize these files, using menu we can said that they are UTF-8 files and it works well, it is not the case of UV. :roll:
Will Universal Viewer (ATViewer) be changed in the future to take in account UTF-8 files without signature (BOM) like TC viewer ? :?:
It is the minimum for me in an "UNIVERSAL VIEWER"...

I had associated UV to lister with F3 in TC but it works only one time each two tries on a text file. I have the same problem if I configure it with ALT-F3 :
1st try on a file, it is OK, I close UV with ESC.
2nd try on the same file, I see no effect, UV is not on my screen :shock:
3rd try on the same file, it is OK.
I have not looked if this problem is already explained their :oops:
I can't understand this problem. :?

Best regards :wink:
#22273 Personal licence
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

2menet
Thanks for feedback.
It should be documented in your FAQ page
TC lister is better because even he doesn't recognize these files, using menu we can said that they are UTF-8 files and it works well, it is not the case of UV.
Will Universal Viewer (ATViewer) be changed in the future to take in account UTF-8 files without signature (BOM) like TC viewer ?
FAQ page is updated.
I think yes, I'll add display of UTF-8 files w/o signature. I can add separate "UTF-8" (8) mode and separate "RTF" (9) mode for this.
I'll see.
I had associated UV to lister with F3 in TC but it works only one time each two tries on a text file. I have the same problem if I configure it with ALT-F3 :
It's very strange.
Works OK here. It must be some TC-related problem, IMHO. What if you set not UV but other application to F3?
User avatar
menet
Member
Member
Posts: 199
Joined: 2005-04-21, 12:27 UTC
Location: Paris, France

Post by *menet »

Thanks for your quick reply. :P
Alextp wrote:It's very strange.
Works OK here. It must be some TC-related problem, IMHO. What if you set not UV but other application to F3?
You are right, I have made a try with my current free editor PSPad; at first good try, if i close the file and stop PSPad after, at next try PSPad seems to be not called :shock:

I am using TC 7.0 beta 3. I have to look if this problem is referenced in the forum...
EDIT : I have created a bug entry in the English part of the TC forum.

Regards :wink:
#22273 Personal licence
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

menet
I tried to fix issue with UTF8.
UTF8 signature is added automatically at the beginning of the text now (if it's missed). Try "Version without installer" link in 1st post.

PS UTF-8 is not supported under Win9x
User avatar
menet
Member
Member
Posts: 199
Joined: 2005-04-21, 12:27 UTC
Location: Paris, France

Post by *menet »

Alextp wrote:menet
I tried to fix issue with UTF8.
UTF8 signature is added automatically at the beginning of the text now (if it's missed). Try "Version without installer" link in 1st post.

PS UTF-8 is not supported under Win9x
Thanks, it works well with this 1.5.9.0 version from today :P

EDIT You can reedit the FAQ to explain that UTF-8 can be read but not automatically. 8)

Best regards :wink:
#22273 Personal licence
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

OK.
FAQ updated again.
rolandd
Senior Member
Senior Member
Posts: 313
Joined: 2003-06-26, 09:02 UTC
Location: Indonesia
Contact:

Post by *rolandd »

Hey Alex,

Just downloaded the version without installer (1.5.0.9) and the auto refresh does no longer show the last time of refresh :(

Can you take a look?

Regards,

RolandD
Registered user #92105
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

2rolandd
No, it works. You just have to note: that UV shows time not of refresh! but time of file on disk. If time on disk is not changed you'll see the old time.
rolandd
Senior Member
Senior Member
Posts: 313
Joined: 2003-06-26, 09:02 UTC
Location: Indonesia
Contact:

Post by *rolandd »

2alextp

Thanks for the explanation. Didn't think of it.

Today I accidentally ran into another UV crash which I can reproduce. Steps:
1. Open a SWF file from TC with F3
2. Close the screen using ESC
3. Error box comes up

Here is the 1308_appcompat.txt content:

Code: Select all

<?xml version="1.0" encoding="UTF-16"?>
<DATABASE>
<EXE NAME="Viewer.exe" FILTER="GRABMI_FILTER_PRIVACY">
    <MATCHING_FILE NAME="Uninstall.exe" SIZE="57458" CHECKSUM="0x756B8CF8" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" LINK_DATE="07/01/2006 18:05:49" UPTO_LINK_DATE="07/01/2006 18:05:49" />
    <MATCHING_FILE NAME="Viewer.exe" SIZE="1504768" CHECKSUM="0xB2D5EC9B" BIN_FILE_VERSION="1.5.0.0" BIN_PRODUCT_VERSION="1.5.0.0" PRODUCT_VERSION="1.5" FILE_DESCRIPTION="Universal Viewer" COMPANY_NAME="Atl-Soft" PRODUCT_NAME="Universal Viewer" FILE_VERSION="1.5" INTERNAL_NAME="Viewer" LEGAL_COPYRIGHT="Copyright © 2006 Alexey Torgashin" VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x4" VERFILETYPE="0x1" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" UPTO_BIN_FILE_VERSION="1.5.0.0" UPTO_BIN_PRODUCT_VERSION="1.5.0.0" LINK_DATE="06/19/1992 22:22:17" UPTO_LINK_DATE="06/19/1992 22:22:17" VER_LANGUAGE="Russisch [0x419]" />
</EXE>
<EXE NAME="kernel32.dll" FILTER="GRABMI_FILTER_THISFILEONLY">
    <MATCHING_FILE NAME="kernel32.dll" SIZE="1025024" CHECKSUM="0x992ECDD3" BIN_FILE_VERSION="5.1.2600.2945" BIN_PRODUCT_VERSION="5.1.2600.2945" PRODUCT_VERSION="5.1.2600.2945" FILE_DESCRIPTION="DLL-bestand voor Windows NT BASE API-client" COMPANY_NAME="Microsoft Corporation" PRODUCT_NAME="Besturingssysteem Microsoft® Windows®" FILE_VERSION="5.1.2600.2945 (xpsp_sp2_gdr.060704-2349)" ORIGINAL_FILENAME="kernel32" INTERNAL_NAME="kernel32" LEGAL_COPYRIGHT="© Microsoft Corporation. Alle rechten voorbehouden." VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x40004" VERFILETYPE="0x2" MODULE_TYPE="WIN32" PE_CHECKSUM="0xFD1AC" LINKER_VERSION="0x50001" UPTO_BIN_FILE_VERSION="5.1.2600.2945" UPTO_BIN_PRODUCT_VERSION="5.1.2600.2945" LINK_DATE="07/05/2006 10:56:49" UPTO_LINK_DATE="07/05/2006 10:56:49" VER_LANGUAGE="Nederlands (Nederland) [0x413]" />
</EXE>
</DATABASE>
As this was a SWF file form the internet, I decided to create my own with wink. This resulted in an interesting test. When I view the swf file directly it crashes. When I view the same file with the accompanying html file. It does not end in an error.

I am using TC 7b4 and UV 1.5.9.0. UV is the latests download without installer. Running XP SP2 Eng.

Is this enough info?

Regards,

RolandD
Registered user #92105
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

2rolandd
Well, I of course have SWF files for tests, and I don't see crashed on them, both when run from html pages and when swf is directly opened.

1. Please send me some SWF on which you see a crash.
2. What if you open MSIE and in the addr bar enter full path to that SWF?

3. What if you open that SWF in Multimedia mode (using WMP 9.0 mode - set it in options) ?
rolandd
Senior Member
Senior Member
Posts: 313
Joined: 2003-06-26, 09:02 UTC
Location: Indonesia
Contact:

Post by *rolandd »

2alextp
1. On its way (14MB). If it comes back, I will just send the one I created ;)
2. Tried with both SWF files and works fine in IE 7
3. Tried WMP 9.0 mode, still crash when I close UV
Registered user #92105
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

2rolandd
Received (240Kb, strange). Works OK in all modes here, no craches.
3. Tried WMP 9.0 mode, still crash when I close UV
I meaned this: What if you don't set Internet mode at all - instead move SWF extension from Internet list to Multimedia list, and open it in WMP window ?
Still crashes?
Post Reply