BUG: TC Viewer called from button with Minimize doesn't start minimized

Bug reports will be moved here when the described bug has been fixed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
Helix751
Senior Member
Senior Member
Posts: 228
Joined: 2004-06-16, 21:16 UTC

BUG: TC Viewer called from button with Minimize doesn't start minimized

Post by *Helix751 »

Hi. This happens in 10.52 but also in every 10.x and also in pre-10.x versions as well.

I have a command for a button set like the following, that plays a specified playlist with the Internal Lister when clicked:

Code: Select all

TOTALCMD#BAR#DATA
%COMMANDER_PATH%\totalcmd.exe /S=L:T4 "%USERPROFILE%\playlist.m3u"

Minimized = True
Maximized = False
The issue is that the Lister instance that opens upon clicking isn't starting in a minimized state (nor does TC, the actual program invoked, although it is expected behavior due to the fact it's interacting with the user upon button clicking).

Is this Ok or could TC intercept the "Minimize" (and maybe also the "Maximize") flag to make its internal Lister go into the chosen state when the /S=L switch is used?
Regards,
Sergio

TCmd license #12059
TC11.00x86/x64 | Win11 Pro
User avatar
Sir_SiLvA
Power Member
Power Member
Posts: 3278
Joined: 2003-05-06, 11:46 UTC

Re: BUG: TC Viewer called from button with Minimize doesn't start minimized

Post by *Sir_SiLvA »

I dont know where you got "Minimized = True" and "Maximized = False" from but TC doesnt have those parameters?
Hoecker sie sind raus!
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: BUG: TC Viewer called from button with Minimize doesn't start minimized

Post by *petermad »

Helix751 wrote: 2022-12-21, 01:37 UTC Hi. This happens in 10.52 but also in every 10.x and also in pre-10.x versions as well.

I have a command for a button set like the following, that plays a specified playlist with the Internal Lister when clicked:

Code: Select all

TOTALCMD#BAR#DATA
%COMMANDER_PATH%\totalcmd.exe /S=L:T4 "%USERPROFILE%\playlist.m3u"

Minimized = True
Maximized = False
Your syntax for the button it not correct - it should look like:

Code: Select all

TOTALCMD#BAR#DATA
%COMMANDER_PATH%\totalcmd.exe /S=L:T4 "%USERPROFILE%\playlist.m3u"

wcmicons.dll,22


1
the 1 in th 7th line sets the program to run minimized (-1 for maximized).

But even using the right syntax, for some reason the parameter for minimized is not used when opening a new instance of TC with the /S=L parameter (it does work when opening a second instance of TC without the parameter).

I have filed a bug report about the missing functionality for buttons when starting separate instances of TC with the /S= parameter and using "Run minimized" or "Run maximized" in the button configuration: viewtopic.php?t=78157

BTW - it is easier to use %COMMANDER_EXE% than using %COMMANDER_PATH%\totalcmd.exe (and %COMMANDER_EXE% will work for both 32bit and 64bit TC).
Last edited by petermad on 2022-12-21, 10:46 UTC, edited 1 time in total.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
nsp
Power Member
Power Member
Posts: 1803
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Re: BUG: TC Viewer called from button with Minimize doesn't start minimized

Post by *nsp »

In fact the window you want to minimize is not %commander_exe% but the lister one. The standard command to not take into account any secondary windows. In your case it could be better to create a script to minimize latest TLister class windows opened.
the script could launch itself TC or aggregated with a user command similar to your button
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: BUG: TC Viewer called from button with Minimize doesn't start minimized

Post by *petermad »

2nsp
The standard command to not take into account any secondary windows

It is not as simple as that - see: viewtopic.php?t=78157
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: BUG: TC Viewer called from button with Minimize doesn't start minimized

Post by *ghisler(Author) »

This should be fixed in TC 11 beta, please test it.
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: BUG: TC Viewer called from button with Minimize doesn't start minimized

Post by *petermad »

Confirmed fixed for TC 11.00b1 in this thread: viewtopic.php?p=430074#p430074
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Post Reply