2 parallel lister windows and ctrl+c

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
ManniS
Junior Member
Junior Member
Posts: 3
Joined: 2015-03-15, 12:52 UTC
Location: Fürth, Germany

2 parallel lister windows and ctrl+c

Post by *ManniS »

Hello

I encountered the following reproducible problem with
TC 8.51a(x64) under Win7 SP1 64bit
and
TC 8.51a(32bit) under Win7 SP1 32bit

- open lister window with an ascii text file
- search for text which can NOT be found => not-found-msgbox appears
- do NOT close this lister window and the displayed msgbox
- open a second lister window with an ascii text file
- select (highlight) text
now comes the problem:
- press ctrl+c (using the keyboard) => not the selected text is copied into clipboard but the msgbox from the other lister window
whereas copying the selected text with right-mouse-click - "Copy as text" works fine

I think this is a bug, similar to the former (meanwhile fixed) problem in older tc-versions, that esc in lister window was not working while a msgbox was displayed in another lister window
Regards, Manfred
#293213
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50550
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Unfortunately this cannot be avoided. A MessageBox or other modal dialog has its own message loop, and blocks the TC loop. The only way to avoid it is to start Lister always as a separate program. For this, go to Configuration - Options - Viewer/Editor, and change F3 to external viewer. Then set external viewer to:
c:\totalcmd\totalcmd.exe /S=L "%1"
Author of Total Commander
https://www.ghisler.com
User avatar
ManniS
Junior Member
Junior Member
Posts: 3
Joined: 2015-03-15, 12:52 UTC
Location: Fürth, Germany

Post by *ManniS »

Ok, thanks, the solution with the external viewer works.
(of course it's a bit slower due to starting a second TC-instance).

But why works right-click "Copy as text" with the internal viewer?
Regards, Manfred
#293213
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50550
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Ctrl+C is intercepted by the message queue of the message box before TC can see it. Right click menu is displayed by Lister and handled internally by Lister.
Author of Total Commander
https://www.ghisler.com
User avatar
wanderer
Power Member
Power Member
Posts: 1640
Joined: 2003-03-28, 14:35 UTC
Location: Sol

Post by *wanderer »

ManniS wrote:(of course it's a bit slower due to starting a second TC-instance)
Can't really search right now, but i think there is/was an external lister.exe somewhere, isn't it?
- Wanderer -

¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3 (very rarely nowadays).
x64: Clients/Servers - Win10/Win11 and Win2K16 to Win2K22, mainly Win10 though.
User avatar
Ovg
Power Member
Power Member
Posts: 755
Joined: 2014-01-06, 16:26 UTC

Post by *Ovg »

It's impossible to lead us astray for we don't care even to choose the way.
#259941, TC 11.01 x64, Windows 7 SP1 x64
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6976
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Post by *Horst.Epp »

wanderer wrote:
ManniS wrote:(of course it's a bit slower due to starting a second TC-instance)
Can't really search right now, but i think there is/was an external lister.exe somewhere, isn't it?
What should be the benefit compared to the TC integrated version ?
Also the much older external one will not have the same plugins.
There is no significant load time for a 2nd TC copy on adequate hardware.
User avatar
ManniS
Junior Member
Junior Member
Posts: 3
Joined: 2015-03-15, 12:52 UTC
Location: Fürth, Germany

Post by *ManniS »

2 Author:
Thanks for the explanation.

2 Ovg:
Thanks for the links.
I have 64bit Win7 (at home), so i cannot use the 16bit lister version. Perhaps on my 32bit Win7 at work.
The 32bit lister is as fast as the internal lister, but like Horst.Epp said, has less plugins (e.g. jpg).

2 Horst.Epp:
In this context "a bit" means to me less than 1 second.
On my hardware (i7@3.7GHz 16GB Win7 Pro 64bit) i can see the difference: external lister (totalcmd64.exe /S=L) ~ 0.6 sec, internal lister not measurable (with an ascii text file < 512 byte).
One of the great advantages of the TC-lister to me is that it's much faster than any editor, e.g. when you want to take a quick look into an ascii text file. But 0.6 sec vs. 0.0 sec is no serious problem for me.

Thanks to all members for support
Regards, Manfred
#293213
Post Reply