TCSumatraPDF Plugin <-> sLister Plugin | SumatraPDF

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
AkulaBig
Senior Member
Senior Member
Posts: 377
Joined: 2021-09-09, 17:28 UTC

Re: TCSumatraPDF Plugin <-> sLister Plugin | SumatraPDF

Post by *AkulaBig »

tuska wrote: 2023-07-14, 16:24 UTC I explained that in detail here under point 2.1 Rules for processing plugins...
I have read this article of yours. But the pictures attached to it are very small, so I did not understand that the video shows an example of this article. Now everything is clear, maybe it will come in handy someday.
AkulaBig
Senior Member
Senior Member
Posts: 377
Joined: 2021-09-09, 17:28 UTC

Re: TCSumatraPDF Plugin <-> sLister Plugin | SumatraPDF

Post by *AkulaBig »

tuska wrote: 2023-07-14, 17:45 UTC Puhh, I think I'm getting hot ... :?

PS: The upgrade worked!
I've been hot a few times now. But I seem to understand the reason. The hotkeys work until SumatraPDF 3.4 creates a pdb file in the view folder. When it appears, I did not understand, so it's better to use my settings file first and slowly configure it. I made the latest version of the plugin.
Which works fine for me with all versions and bit depths. I think further, if the plugin does not work, you need to look at the individual settings in the SumatraPDF-settings.txt file. Because everything works for me.
https://drive.google.com/file/d/1qN2rI-OySMsGx3p-_k-pgoZA8nbyQ9pD/view?usp=sharing
tuska wrote: 2023-07-14, 17:45 UTC - C:\totalcmd\Plugins\wlx\TCSumatraPDF\SumatraPDF\ -> Folder "SumatraPDF" is EMPTY!
  This is where I think these files should be located:
  Manual.chm
  readme.txt
  SumatraPDF.exe
  SumatraPDF64.exe
  SumatraPDF-settings.txt
It is empty, because you will need to unpack or copy the files into it yourself. As for IV.
Files
Manual.chm
readme.txt
SumatraPDF-settings.txt
refer directly to 3.1, and therefore lie there. There are no such files in the 3.4 installation. Well, SumatraPDF-settings.txt will overwrite your files again.
User avatar
tuska
Power Member
Power Member
Posts: 3785
Joined: 2007-05-21, 12:17 UTC

Re: TCSumatraPDF Plugin <-> sLister Plugin | SumatraPDF

Post by *tuska »

AkulaBig wrote: 2023-07-14, 18:56 UTC
tuska wrote: 2023-07-14, 16:24 UTC I explained that in detail here under point 2.1 Rules for processing plugins...
... But the pictures attached to it are very small...
You can click in the 1st and 3rd picture to enlarge it.
Picture 2 wrote:[If necessary, use the context menu: "Open image in new tab", zoom with Ctrl+rotate mouse wheel].
User avatar
tuska
Power Member
Power Member
Posts: 3785
Joined: 2007-05-21, 12:17 UTC

Re: TCSumatraPDF Plugin <-> sLister Plugin | SumatraPDF

Post by *tuska »

2AkulaBig
Thank you for your explanations.
I'll start again with a CLEAN INSTALL to understand it all and get back to you.
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6512
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: TCSumatraPDF Plugin <-> sLister Plugin | SumatraPDF

Post by *Horst.Epp »

AkulaBig wrote: 2023-07-14, 14:05 UTC Another option https://drive.google.com/file/d/1tTKJ2MABbmQYtFBIrwyoqO0s9nB6mu45/view?usp=sharing
Horst.Epp wrote: 2023-07-14, 12:23 UTC Sorry, but for me version wlx_TCSumatraPDF_1.5b2.7z still doesn't work.
Try another option. But since the changes are small, try with my SumatraPDF-settings.txt to exclude your settings. If it's his fault, then we'll figure it out.
Tested with your SumatraPDF-settings.txt.
Still the same problem :(
What's the problem to take version 1.3, change the installer settings to the new version
and use this as new actual version.
There are no problems at all with the plugin code in this version for x86 and x64 SumatraPDF.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3593)
TC 11.03 x64 / x86
Everything 1.5.0.1376a (x64), Everything Toolbar 1.3.3, Listary Pro 6.3.0.78
QAP 11.6.3.3 x64
User avatar
tuska
Power Member
Power Member
Posts: 3785
Joined: 2007-05-21, 12:17 UTC

Re: TCSumatraPDF Plugin <-> sLister Plugin | SumatraPDF

Post by *tuska »

2Horst.Epp
Can you try it with the latest version (wlx_TCSumatraPDF_1.5b4.7z)?
Just install over it...
AkulaBig
Senior Member
Senior Member
Posts: 377
Joined: 2021-09-09, 17:28 UTC

Re: TCSumatraPDF Plugin <-> sLister Plugin | SumatraPDF

Post by *AkulaBig »

tuska wrote: 2023-07-14, 19:13 UTC You can click in the 1st and 3rd picture to enlarge it.
Exactly.
User avatar
tuska
Power Member
Power Member
Posts: 3785
Joined: 2007-05-21, 12:17 UTC

Re: TCSumatraPDF Plugin <-> sLister Plugin | SumatraPDF

Post by *tuska »

wlx_TCSumatraPDF_1.5b4.7z - UPGRADE: OK (Own settings are NOT overwritten!)

x64
  1. Ctrl+Q, Cursor up/down, Ctrl+Q
  2. Ctr+Q,Tab,4,4,4..., Ctrl+Q
  3. F3: Lister (sumatrapdf), ESC
  4. F3: Lister (sumatrapdf), 4,4,4,..., ESC
  5. Mark more than one PDF file -> F3: Lister (sumatrapdf): 'N' (next pdf file), 'P' (previous pdf file), ESC *
Results:
* Mark more than one PDF file -> F3: Lister (sumatrapdf): 'N' (next pdf file), 'P' (previous pdf file):
  Skips the next file and previews the file after next file.
  wlx_TCSumatraPDF_1.5b3 does NOT have this error!

Everything else is OK.

x86:
  1. Ctrl+Q, Cursor up/down, Ctrl+Q
  2. Ctr+Q,Tab,4: Stopp. Ctrl+Q: NOT possible *
  3. F3: Lister (sumatrapdf), ESC
  4. F3: Lister (sumatrapdf), 4: Stopp, ESC: NOT possible **
  5. Mark more than one PDF file -> F3: Lister (sumatrapdf): 'N' (next pdf file), 'P' (previous pdf file), ESC ***

Code: Select all

Results:
  * Ctr+Q,Tab,4: Stopp.
    Ctrl+Q: NOT possible -> point with the cursor in the other window to another PDF file, then Ctrl+Q is possible again.
    This was also the case with the last test versions.

 ** F3: Lister (sumatrapdf), 4: Stopp, ESC: NOT possible
    Select another plugin from the "Plugin" menu or close the window by clicking on the 'X'.
    This was also the case with the last test versions.

*** Mark more than one PDF file -> F3: Lister (sumatrapdf): 'N' (next pdf file), 'P' (previous pdf file):
    Skips the next file and previews the file after next file.
wlx_TCSumatraPDF_1.5b3 does NOT have this error!

I postpone the test with a CLEAN INSTALL until after I receive a new version.
AkulaBig
Senior Member
Senior Member
Posts: 377
Joined: 2021-09-09, 17:28 UTC

Re: TCSumatraPDF Plugin <-> sLister Plugin | SumatraPDF

Post by *AkulaBig »

Horst.Epp wrote: 2023-07-14, 19:24 UTC Tested with your SumatraPDF-settings.txt.
Still the same problem :(
It is amazing. I do not know what to say. I came up with the idea to do a small build of TC with my plugins. I have my own assembly, but it makes no sense to spread it here.
Horst.Epp wrote: 2023-07-14, 19:24 UTC What's the problem to take version 1.3, change the installer settings to the new version
and use this as new actual version.
There are no problems at all with the plugin code in this version for x86 and x64 SumatraPDF.
In fact, this is a fundamentally different code. And for 1.3, there is no way I can do dual key assignment. I can only override SumatraPDF hotkeys.
AkulaBig
Senior Member
Senior Member
Posts: 377
Joined: 2021-09-09, 17:28 UTC

Re: TCSumatraPDF Plugin <-> sLister Plugin | SumatraPDF

Post by *AkulaBig »

tuska wrote: 2023-07-14, 20:06 UTC Everything else is OK.
I will not rush to upload a new version. Now an interesting situation has turned out and something has begun to clear up.
User avatar
tuska
Power Member
Power Member
Posts: 3785
Joined: 2007-05-21, 12:17 UTC

Re: TCSumatraPDF Plugin <-> sLister Plugin | SumatraPDF

Post by *tuska »

2Horst.Epp
Please try it once with these settings and with version wlx_TCSumatraPDF_1.5b3.
C:\totalcmd\Plugins\wlx\TCSumatraPDF\SumatraPDF\SumatraPDF-settings.txt
SumatraPDF-settings.txt

Code: Select all

# For documentation, see https://www.sumatrapdfreader.org/settings/settings3-4-6.html
FixedPageUI [
	TextColor = #000000
	BackgroundColor = #ffffff
	SelectionColor = #f5fc0c
	WindowMargin = 2 4 2 4
	PageSpacing = 4 4
	HideScrollbars = false
]
ComicBookUI [
	WindowMargin = 0 0 0 0
	PageSpacing = 4 4
	CbxMangaMode = false
]
ChmUI [
	UseFixedPageUI = false
]

SelectionHandlers [
]
ExternalViewers [
]

ZoomLevels = 8.33 12.5 18 25 33.33 50 66.67 75 100 125 150 200 300 400 600 800 1000 1200 1600 2000 2400 3200 4800 6400
ZoomIncrement = 0

PrinterDefaults [
	PrintScale = shrink
]
ForwardSearch [
	HighlightOffset = 0
	HighlightWidth = 15
	HighlightColor = #6581ff
	HighlightPermanent = false
]
Annotations [
	HighlightColor = #ffff00
	UnderlineColor = #00ff00
	TextIconColor = #ffff00
	TextIconType =
	DefaultAuthor =
]

RememberOpenedFiles = true
RememberStatePerDocument = true
RestoreSession = true
UiLanguage = de
EnableTeXEnhancements = false
DefaultDisplayMode = single page
DefaultZoom = fit page
Shortcuts [
]
EscToExit = true
ReuseInstance = false
ReloadModifiedDocuments = true

MainWindowBackground = #80fff200
FullPathInTitle = false
ShowMenubar = true
ShowToolbar = true
ShowFavorites = false
ShowToc = true
TocDy = 0
SidebarDx = 312
ToolbarSize = 18
TabWidth = 300
TreeFontSize = 0
SmoothScroll = false
ShowStartPage = true
CheckForUpdates = false
WindowState = 2
WindowPos = 348 2 1509 1140
UseTabs = true
UseSysColors = false
CustomScreenDPI = 0

FileStates [
	[
		FilePath = C:\totalcmd\Tools\CHIP\CHIP_Archiv_Heftausgaben im PDF-Format\CHIP_2008-07.pdf
		Favorites [
		]
		IsPinned = false
		IsMissing = false
		OpenCount = 34
		UseDefaultState = false
		DisplayMode = continuous
		ScrollPos = -1 -1
		PageNo = 1
		Zoom = fit page
		Rotation = 0
		WindowState = 2
		WindowPos = 348 2 1509 1140
		ShowToc = true
		SidebarDx = 312
		DisplayR2L = false
		ReparseIdx = 0
	]
	[
		FilePath = C:\totalcmd\Tools\CHIP\CHIP_Archiv_Heftausgaben im PDF-Format\CHIP_2008-06.pdf
		Favorites [
		]
		IsPinned = false
		IsMissing = false
		OpenCount = 23
		UseDefaultState = false
		DisplayMode = single page
		ScrollPos = -1 -1
		PageNo = 1
		Zoom = fit page
		Rotation = 0
		WindowState = 2
		WindowPos = 348 2 1509 1140
		ShowToc = true
		SidebarDx = 312
		DisplayR2L = false
		ReparseIdx = 0
	]
]
SessionData [
]
TimeOfLastUpdateCheck = 30975603 47977599
OpenCountWeek = 654

# Settings below are not recognized by the current version
EbookUI [
	FontName = Georgia
	FontSize = 12.5
	TextColor = #5f4b32
	BackgroundColor = #fbf0d9
	UseFixedPageUI = false
]
AssociateSilently = false
I have previewed 2 pdf files (FilePath =...).
If you take away (delete) the code created for the pdf files in SumatraPDF-settings.txt, then it becomes clear.
(then it becomes clear ->German: ... dann wird es übersichtlich).

C:\totalcmd\Plugins\wlx\TCSumatraPDF\sumatrapdf.ini
[Options] ... (enter nothing further!)

C:\totalcmd\Plugins\wlx\TCSumatraPDF\SumatraPDF\SumatraPDF.exe     (renamed SumatraPDF-3.4.6-32.exe)
C:\totalcmd\Plugins\wlx\TCSumatraPDF\SumatraPDF\SumatraPDF64.exe (renamed SumatraPDF-3.4.6-64.exe)

For me this code worked.
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6512
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: TCSumatraPDF Plugin <-> sLister Plugin | SumatraPDF

Post by *Horst.Epp »

tuska wrote: 2023-07-14, 20:36 UTC 2Horst.Epp
Please try it once with these settings and with version wlx_TCSumatraPDF_1.5b3.
C:\totalcmd\Plugins\wlx\TCSumatraPDF\SumatraPDF\SumatraPDF-settings.txt
Sorry, I'm not interested to play around with setting files and anything else.
Version wlx_TCSumatraPDF_1.5b4.7z doesn't work as all others after version 1.3.

Version 1.3 of the plugin works with my default SumatraPDF settings
and the newest x64 SumatraPDF 3.5.15481
All keys are working and nothing must be changed on the rest of the system.
That's how the plugin should work, and it does.
So I stay happily with version 1.3
Windows 11 Home x64 Version 23H2 (OS Build 22631.3593)
TC 11.03 x64 / x86
Everything 1.5.0.1376a (x64), Everything Toolbar 1.3.3, Listary Pro 6.3.0.78
QAP 11.6.3.3 x64
User avatar
tuska
Power Member
Power Member
Posts: 3785
Joined: 2007-05-21, 12:17 UTC

Re: TCSumatraPDF Plugin <-> sLister Plugin | SumatraPDF

Post by *tuska »

2Horst.Epp
Mmh, in my opinion it would have been worth a try. :roll:

A change back to version 1.3 has the following disadvantage:
TCSumatraPDF 1.3 overwrites my own settings.

For me wlx_TCSumatraPDF_1.5b3 is currently the most stable version.
x64: Perfect
x86: Basically ok and just not suitable for testing yet.
User avatar
tuska
Power Member
Power Member
Posts: 3785
Joined: 2007-05-21, 12:17 UTC

Re: TCSumatraPDF Plugin <-> sLister Plugin | SumatraPDF

Post by *tuska »

Horst.Epp wrote: 2023-07-14, 22:05 UTC Version 1.3 of the plugin works with my default SumatraPDF settings
and the newest x64 SumatraPDF 3.5.15481
The SumatraPDF pre-release build version 15481, built on 2023-04-18
is still too immature in the context of F3 Lister - for me: hands off.
AkulaBig
Senior Member
Senior Member
Posts: 377
Joined: 2021-09-09, 17:28 UTC

Re: TCSumatraPDF Plugin <-> sLister Plugin | SumatraPDF

Post by *AkulaBig »

tuska wrote: 2023-07-15, 09:56 UTC A change back to version 1.3 has the following disadvantage:
TCSumatraPDF 1.3 overwrites my own settings.
I'll redo this if it doesn't work. The main difference is that 1.3 perceives it as a separate program, about which the plugin knows nothing. Therefore, the TC Lister hotkeys take precedence and this preference cannot be changed. 1.4 understands what exactly SumatraPDF is launching. And the SumatraPDF hotkeys are the main ones. All you need is-only to make using the keys '4', 'N', 'P' worked more conveniently. It seems that this is not so difficult to do, but for some reason the rework is unstable. I already wanted to post an update again. Everything worked fine, but once and again 'N' and 'P' stopped working. I hope I will solve this problem, but I need to figure it out.
Post Reply