cm_CloseAllTabs without confirmation ?

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
Horst.Epp
Power Member
Power Member
Posts: 7012
Joined: 2003-02-06, 17:36 UTC
Location: Germany

cm_CloseAllTabs without confirmation ?

Post by *Horst.Epp »

I have a button for the internal command cm_CloseAllTabs
but this asks for confirmation which I find useless as I would not press this button by accident.
Windows 11 Home, Version 24H2 (OS Build 26100.4351)
TC 11.55 RC7 x64 / x86
Everything 1.5.0.1396a (x64), Everything Toolbar 1.5.5.0, Listary Pro 6.3.2.88
QAP 11.9.0.4 x64
User avatar
tuska
Power Member
Power Member
Posts: 4114
Joined: 2007-05-21, 12:17 UTC

Re: cm_CloseAllTabs without confirmation ?

Post by *tuska »

Code: Select all

cm_VisDirTabs	2916	Show/hide folder tabs
:?:

EDIT:
There are examples where no confirmation is required.
(In this case, only the tab for drive C: remains in the left and right TC window).
User avatar
Horst.Epp
Power Member
Power Member
Posts: 7012
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: cm_CloseAllTabs without confirmation ?

Post by *Horst.Epp »

tuska wrote: 2022-02-11, 17:55 UTC

Code: Select all

cm_VisDirTabs	2916	Show/hide folder tabs
:?:

EDIT:
There are examples where no confirmation is required.
(In this case, only the tab for drive C: remains in the left and right TC window).
cm_VisDirTabs its not a solution as it only toggles the visbility of tabs.
So when I use that once, tabs are no longer shown at all.
Windows 11 Home, Version 24H2 (OS Build 26100.4351)
TC 11.55 RC7 x64 / x86
Everything 1.5.0.1396a (x64), Everything Toolbar 1.5.5.0, Listary Pro 6.3.2.88
QAP 11.9.0.4 x64
User avatar
tuska
Power Member
Power Member
Posts: 4114
Joined: 2007-05-21, 12:17 UTC

Re: cm_CloseAllTabs without confirmation ?

Post by *tuska »

With cm_VisDirTabs -> ALL tabs can be hidden and shown again.
Horst.Epp wrote: 2022-02-12, 10:12 UTC ... So when I use that once, tabs are no longer shown at all.
So I don't understand this statement.

It's not clear to me what goal you actually want to achieve.

I currently only know of these two options:
1. Show/hide all tabs -> cm_VisDirTabs
2. Close all tabs except 1 tab (including "locked Tabs" and "Tabs, locked, but directory changes allowed")

With both options, no confirmations are required.

Code: Select all

cm_CloseAllTabs	3008	Close all
... can NOT close
- "locked tabs" AND
- "Tabs, locked but directory change allowed"

With cm_CloseAllTabs you don't want to have a confirmation query.
- What do you think should happen to the locked tabs?
- In your opinion, should a tab still be visible, eg C: or should no tab be visible at all?
User avatar
nsp
Power Member
Power Member
Posts: 1949
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Re: cm_CloseAllTabs without confirmation ?

Post by *nsp »

If you accept to use nircmdc tool, my "no wait" solution is the following using 3 user commands.

Code: Select all

em_Ydown : 
cmd:<Path_to>\nircmdc
parameter: sendkey Y down

em_Yup : 
cmd:<Path_to>\nircmdc
parameter: sendkey Y up

em_closeAllTabs_noWait:
cmd:em_Ydown,cm_CloseAllTabs,em_Yup
On my machine nircmd/nircmdc are on the path so no need to prefix by <Path_to>\ !
User avatar
Horst.Epp
Power Member
Power Member
Posts: 7012
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: cm_CloseAllTabs without confirmation ?

Post by *Horst.Epp »

tuska wrote: 2022-02-12, 11:13 UTC With both options, no confirmations are required.
Thats wrong.
Only cm_VisDirTabs doesn't require a confirmation
but this only hides all tabs which is not what I requested.

cm_CloseAllTabs requires a confirmation at least on my TC.
Windows 11 Home, Version 24H2 (OS Build 26100.4351)
TC 11.55 RC7 x64 / x86
Everything 1.5.0.1396a (x64), Everything Toolbar 1.5.5.0, Listary Pro 6.3.2.88
QAP 11.9.0.4 x64
User avatar
tuska
Power Member
Power Member
Posts: 4114
Joined: 2007-05-21, 12:17 UTC

Re: cm_CloseAllTabs without confirmation ?

Post by *tuska »

Horst.Epp wrote: 2022-02-12, 12:28 UTC
tuska wrote: 2022-02-12, 11:13 UTC With both options, no confirmations are required.
Thats wrong.
No confirmation is required for the solutions given here.

Since I don't know what your end result should look like and I didn't get an answer to my questions,
I think it's better for me if I get off topic.
No offense.
User avatar
Horst.Epp
Power Member
Power Member
Posts: 7012
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: cm_CloseAllTabs without confirmation ?

Post by *Horst.Epp »

nsp wrote: 2022-02-12, 11:23 UTC If you accept to use nircmdc tool, my "no wait" solution is the following using 3 user commands.
I use NirCmd a lot but this doesn't work.
cm_CloseAllTabs waits until userinput and the next command is not send in this case.
The solution would be an Autohotkey script.
Windows 11 Home, Version 24H2 (OS Build 26100.4351)
TC 11.55 RC7 x64 / x86
Everything 1.5.0.1396a (x64), Everything Toolbar 1.5.5.0, Listary Pro 6.3.2.88
QAP 11.9.0.4 x64
User avatar
Horst.Epp
Power Member
Power Member
Posts: 7012
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: cm_CloseAllTabs without confirmation ?

Post by *Horst.Epp »

tuska wrote: 2022-02-12, 12:45 UTC
Horst.Epp wrote: 2022-02-12, 12:28 UTC
tuska wrote: 2022-02-12, 11:13 UTC With both options, no confirmations are required.
Thats wrong.
No confirmation is required for the solutions given here.
Petermads last solution in this thread works and preserves the displayed tabs on both sides :)
Windows 11 Home, Version 24H2 (OS Build 26100.4351)
TC 11.55 RC7 x64 / x86
Everything 1.5.0.1396a (x64), Everything Toolbar 1.5.5.0, Listary Pro 6.3.2.88
QAP 11.9.0.4 x64
User avatar
nsp
Power Member
Power Member
Posts: 1949
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Re: cm_CloseAllTabs without confirmation ?

Post by *nsp »

Horst.Epp wrote: 2022-02-12, 13:00 UTC
nsp wrote: 2022-02-12, 11:23 UTC If you accept to use nircmdc tool, my "no wait" solution is the following using 3 user commands.
I use NirCmd a lot but this doesn't work.
cm_CloseAllTabs waits until userinput and the next command is not send in this case.
The solution would be an Autohotkey script.
Have you made a test in this order, [Y down, cm_CloseAllTabs, Y up ] using a button ?
The Y key down (before dialog), the TC dialog intercept it and close, Y up key !

But anyway the solution with a tab file is even better...
User avatar
Horst.Epp
Power Member
Power Member
Posts: 7012
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: cm_CloseAllTabs without confirmation ?

Post by *Horst.Epp »

nsp wrote: 2022-02-12, 14:22 UTC
Horst.Epp wrote: 2022-02-12, 13:00 UTC
nsp wrote: 2022-02-12, 11:23 UTC If you accept to use nircmdc tool, my "no wait" solution is the following using 3 user commands.
I use NirCmd a lot but this doesn't work.
cm_CloseAllTabs waits until userinput and the next command is not send in this case.
The solution would be an Autohotkey script.
Have you made a test in this order, [Y down, cm_CloseAllTabs, Y up ] using a button ?
The Y key down (before dialog), the TC dialog intercept it and close, Y up key !

But anyway the solution with a tab file is even better...
Yes, I tried it with this sequence but it didn't work.
The tab file solution is a clever idea.
Windows 11 Home, Version 24H2 (OS Build 26100.4351)
TC 11.55 RC7 x64 / x86
Everything 1.5.0.1396a (x64), Everything Toolbar 1.5.5.0, Listary Pro 6.3.2.88
QAP 11.9.0.4 x64
Post Reply