TCFS2 + TCFS2Tools: Full-screen mode for TC etc

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
Fla$her
Power Member
Power Member
Posts: 2982
Joined: 2020-01-18, 04:03 UTC

Re: TCFS2 + TCFS2Tools: Full-screen mode for TC etc

Post by *Fla$her »

2MVV
Problem found: tt_LeftTabCount/tt_RightTabCount returns 0 if there are tabs. Check:
TCFS2.exe /ef tcm(-1,1) eval(settext_wait(msg(1074,tt_RightTabCount),findwnd(Static,,findwnd(#32770))))
Overquoting is evil! 👎
sa16
Senior Member
Senior Member
Posts: 324
Joined: 2021-09-10, 07:15 UTC

Re: TCFS2 + TCFS2Tools: Full-screen mode for TC etc

Post by *sa16 »

2Fla$her
msg(1075,tt_RightTabCount)
Fla$her
Power Member
Power Member
Posts: 2982
Joined: 2020-01-18, 04:03 UTC

Re: TCFS2 + TCFS2Tools: Full-screen mode for TC etc

Post by *Fla$her »

2sa16
Ah, I intuitively decided that 1075 is only needed to execute commands, not to receive data. Thanks.
It was worth doing right away using tcm(), as before.
Overquoting is evil! 👎
User avatar
yahuu
Member
Member
Posts: 122
Joined: 2015-01-15, 03:19 UTC

Re: TCFS2 + TCFS2Tools: Full-screen mode for TC etc

Post by *yahuu »

TCFS2 has some built-in macros for checking the existence of controls, such as hasButtonBar. So, can TCFS2 check if a specific control exists? For example, TMyListBox3.
License #301983 (2016)
TC 11.51 32+64bit on 10 (21H2) 64bit, 'Everything' 1.5.0.1388a
Autorun 2.2.18.1
Fla$her
Power Member
Power Member
Posts: 2982
Joined: 2020-01-18, 04:03 UTC

Re: TCFS2 + TCFS2Tools: Full-screen mode for TC etc

Post by *Fla$her »

yahuu wrote: 2024-09-22, 18:07 UTCFor example, TMyListBox3.
This is how you will know about the existence of a separate tree:
TCFS2.exe /ef if(msg(1074,18),<then>[,<else>])

msg(WM_USER+50,) gets a handle to control of the main window by . If it doesn't, it returns 0 for <else>.

With this approach, you don't depend on the difference between x32 and x64 classes.
What kind of command do you want to implement?
Overquoting is evil! 👎
User avatar
yahuu
Member
Member
Posts: 122
Joined: 2015-01-15, 03:19 UTC

Re: TCFS2 + TCFS2Tools: Full-screen mode for TC etc

Post by *yahuu »

I want to switch the interface by judging whether the tree exists.
Thank you for the method you provided, it works.
But how do you know that the message number is 18?
Fla$her wrote: 2024-09-22, 23:55 UTC
yahuu wrote: 2024-09-22, 18:07 UTCFor example, TMyListBox3.
This is how you will know about the existence of a separate tree:
TCFS2.exe /ef if(msg(1074,18),<then>[,<else>])

msg(WM_USER+50,) gets a handle to control of the main window by . If it doesn't, it returns 0 for <else>.

With this approach, you don't depend on the difference between x32 and x64 classes.
What kind of command do you want to implement?
License #301983 (2016)
TC 11.51 32+64bit on 10 (21H2) 64bit, 'Everything' 1.5.0.1388a
Autorun 2.2.18.1
Fla$her
Power Member
Power Member
Posts: 2982
Joined: 2020-01-18, 04:03 UTC

Re: TCFS2 + TCFS2Tools: Full-screen mode for TC etc

Post by *Fla$her »

yahuu wrote: 2024-09-23, 06:37 UTC I want to switch the interface by judging whether the tree exists.
What to switch to?
yahuu wrote: 2024-09-23, 06:37 UTC But how do you know that the message number is 18?
I gave you the link. There, the name of the control is indicated after each number.
Overquoting is evil! 👎
User avatar
yahuu
Member
Member
Posts: 122
Joined: 2015-01-15, 03:19 UTC

Re: TCFS2 + TCFS2Tools: Full-screen mode for TC etc

Post by *yahuu »

Fla$her wrote: 2024-09-23, 06:53 UTC What to switch to?

Code: Select all

single=tem(`cm_100Percent 100`,0) tem(`cm_VerticalPanels 1`,0) tem(`cm_VisTwoDriveButtons -1`,0)
double=tem(`cm_VerticalPanels -1`,0) tcm(909) tem(`cm_VisTwoDriveButtons 1`,0)

togglesd=if(isVerticalPanels, run_item(double), run_item(single))

ToggleSeparateSingleTree1=tcm(3200) run_item(double)
ToggleSeparateSingleTree2=run_item(single) tcm(3201)

TreeSingleWindow=if(msg(1074,18),run_item(ToggleSeparateSingleTree1),run_item(ToggleSeparateSingleTree2))
yahuu wrote: 2024-09-23, 06:37 UTC I gave you the link. There, the name of the control is indicated after each number.
I noticed it, thank you very much
License #301983 (2016)
TC 11.51 32+64bit on 10 (21H2) 64bit, 'Everything' 1.5.0.1388a
Autorun 2.2.18.1
Fla$her
Power Member
Power Member
Posts: 2982
Joined: 2020-01-18, 04:03 UTC

Re: TCFS2 + TCFS2Tools: Full-screen mode for TC etc

Post by *Fla$her »

2yahuu
You're welcome. The code can be written like this (with the window locked from below):

Code: Select all

single=tcm(910) tem(`cm_VerticalPanels 1`) tem(`cm_VisTwoDriveButtons -1`)
double=tem(`cm_VerticalPanels -1`) tcm(909) tem(`cm_VisTwoDriveButtons 1`)

togglesd=if(isVerticalPanels, run_item(double), run_item(single))
TreeSingleWindow=msg(11,0) if(msg(1074,18), tcm(3200)+run_item(double), run_item(single)+tcm(3201)) tcm(2918) msg(11,1) redraw()
Overquoting is evil! 👎
User avatar
yahuu
Member
Member
Posts: 122
Joined: 2015-01-15, 03:19 UTC

Re: TCFS2 + TCFS2Tools: Full-screen mode for TC etc

Post by *yahuu »

Thanks,I still need to ask: What is the function of msg(11, 0) and msg(11, 1)? What does 11 represent?"
11=leftinfo Is this the control?
Fla$her wrote: 2024-09-23, 12:25 UTC 2yahuu
You're welcome. The code can be written like this (with the window locked from below):

Code: Select all

single=tcm(910) tem(`cm_VerticalPanels 1`) tem(`cm_VisTwoDriveButtons -1`)
double=tem(`cm_VerticalPanels -1`) tcm(909) tem(`cm_VisTwoDriveButtons 1`)

togglesd=if(isVerticalPanels, run_item(double), run_item(single))
TreeSingleWindow=msg(11,0) if(msg(1074,18), tcm(3200)+run_item(double), run_item(single)+tcm(3201)) tcm(2918) msg(11,1) redraw()
License #301983 (2016)
TC 11.51 32+64bit on 10 (21H2) 64bit, 'Everything' 1.5.0.1388a
Autorun 2.2.18.1
Fla$her
Power Member
Power Member
Posts: 2982
Joined: 2020-01-18, 04:03 UTC

Re: TCFS2 + TCFS2Tools: Full-screen mode for TC etc

Post by *Fla$her »

No. This is a window lock and unlock. See locktc in TCFS2.Core.ini.
Don't confuse msg(1074,11) and msg(11,0/1).
Overquoting is evil! 👎
User avatar
yahuu
Member
Member
Posts: 122
Joined: 2015-01-15, 03:19 UTC

Re: TCFS2 + TCFS2Tools: Full-screen mode for TC etc

Post by *yahuu »

Fla$her wrote: 2024-09-24, 08:43 UTC No. This is a window lock and unlock. See locktc in TCFS2.Core.ini.
Don't confuse msg(1074,11) and msg(11,0/1).
Got it. Thank you very much.
License #301983 (2016)
TC 11.51 32+64bit on 10 (21H2) 64bit, 'Everything' 1.5.0.1388a
Autorun 2.2.18.1
LEENO
Junior Member
Junior Member
Posts: 4
Joined: 2024-09-28, 09:59 UTC

hide menu

Post by *LEENO »

hallo in total commander 11.03 is possible to hide main menu?

with command

Code: Select all

TCFS2.exe /ei mm0
i receive error "function not implemented 65538" as showed in attached picture

Image: https://i.ibb.co/9Yfkvk1/Screen-Shot0083.jpg
User avatar
white
Power Member
Power Member
Posts: 5744
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: hide menu

Post by *white »

Maybe because of this:
MVV wrote: 2011-06-19, 08:55 UTC You may use just TCFS2 w/o TCFS2Tools. However some features like show/hide main menu bar, detect panel view mode and move file panel separator won't work w/o TCFS2Tools. Please read Readme.txt file to know how to setup auto-loading of TCFS2Tools module with TC.
LEENO
Junior Member
Junior Member
Posts: 4
Joined: 2024-09-28, 09:59 UTC

Re: hide menu

Post by *LEENO »

white wrote: 2024-09-28, 10:16 UTC Maybe because of this:
MVV wrote: 2011-06-19, 08:55 UTC You may use just TCFS2 w/o TCFS2Tools. However some features like show/hide main menu bar, detect panel view mode and move file panel separator won't work w/o TCFS2Tools. Please read Readme.txt file to know how to setup auto-loading of TCFS2Tools module with TC.
hallo removed TCFS2Tools, in commandline entered:

Code: Select all

TCFS2.exe /ei mm0
result is the same

https://i.ibb.co/3fCLxqP/Screen-Shot0084.jpg
Post Reply