Use a single command to switch between two views?

English support forum

Moderators: white, Hacker, petermad, Stefan2

Fla$her
Power Member
Power Member
Posts: 2244
Joined: 2020-01-18, 04:03 UTC

Re: Use a single command to switch between two views?

Post by *Fla$her »

tuska wrote: 2023-01-27, 14:38 UTCI hope I can implement this, because in the meantime I have installed the plugin "Autorun 2.1.1".
The current version now is 2.2.10.
tuska wrote: 2023-01-27, 14:38 UTCNorton 360 has irretrievably deleted the file "C:\totalcmd\Plugins\wdx\Autorun\Plugins\Autorun_Sysinfo.dll".
Add the file to the exceptions. He will still come in handy if you use the plugin more fully.
tuska wrote: 2023-01-27, 14:38 UTC I created the file "Autorun.cfg" with the following content:

Code: Select all

LoadLibrary "C:\totalcmd\Tools\TCFS2Tools\TCFS2Tools.dll"
Plugins are located in the Plugins subfolder. An absolute path is not required here. It is enough to write relative:

Code: Select all

LoadLibrary Plugins\TCFS2Tools.dll
tuska wrote: 2023-01-27, 14:38 UTC I then removed the Autorun plugin.
---
However, I have made one piece of progress, and that is
It's a pointless replacement. And why delete the plugin? Perhaps you installed it incorrectly?
Overquoting is evil! 👎
User avatar
tuska
Power Member
Power Member
Posts: 3741
Joined: 2007-05-21, 12:17 UTC

Re: Use a single command to switch between two views?

Post by *tuska »

sa16 wrote: 2023-01-27, 16:37 UTC 2tuska
I have this implemented:
/ef "run_item(locktc,1) if(isVerticalPanels, tcm(909), tcm(910)) tcm(305) run_item(locktc,0) redraw"
Thank you.

Just used it, but I can't see any difference.
Can you please explain the advantage of this variant?
(I am only a hobby user...)
Fla$her
Power Member
Power Member
Posts: 2244
Joined: 2020-01-18, 04:03 UTC

Re: Use a single command to switch between two views?

Post by *Fla$her »

Horst.Epp wrote: 2023-01-27, 15:46 UTC For me there is no need for registering any wdx to use the button from Fla$her above.
Apparently, because you already have this registration. :?:
Horst.Epp wrote: 2023-01-27, 15:46 UTC My Autorun.cfg looks like this

Code: Select all

if "%AUTORUN_TCARCH%" = "64" then
LoadLibrary "c:\Tools\Wincmd\PLUGINS\TCFS2\TCFS2Tools64.dll"
else
LoadLibrary "c:\Tools\Wincmd\PLUGINS\TCFS2\TCFS2Tools.dll"
endIf
I have given you a quote from the help why this is not required. Forgot?
Horst.Epp wrote: 2023-01-27, 15:46 UTCThe TCFS2.ini is as follows
My button will work without TCFS2.Core.ini, because the functions are unnamed.

tuska wrote: 2023-01-27, 16:56 UTC Just used it, but I can't see any difference.
Can you please explain the advantage of this variant?
Freezing is used here, and then redrawing the entire window, which in this case is redundant and adds only an extra twitching effect in other panels, so I didn't see the point in adding this, since everything happens unnoticeably.
Overquoting is evil! 👎
User avatar
tuska
Power Member
Power Member
Posts: 3741
Joined: 2007-05-21, 12:17 UTC

Re: Use a single command to switch between two views?

Post by *tuska »

2Fla$her
Thanks for your hints!

Norton 360 doesn't like the website for downloading this plugin (Autorun) at all and is CURRENTLY at the point again
in which it irretrievably deletes files without giving me the chance to add them to an exception list.

I think I'll also be saying goodbye to this product for good in the near future.

Once I've solved that, I'll reinstall the Autorun plugin properly.
Fla$her
Power Member
Power Member
Posts: 2244
Joined: 2020-01-18, 04:03 UTC

Re: Use a single command to switch between two views?

Post by *Fla$her »

2tuska
Good. You're welcome.
Many people don't like Norton. There are too many false positives. I advise you to familiarize yourself with the last 4-5 tests on the topic of protection. I would look towards Eset or Kaspersky.
Overquoting is evil! 👎
User avatar
tuska
Power Member
Power Member
Posts: 3741
Joined: 2007-05-21, 12:17 UTC

Re: Use a single command to switch between two views?

Post by *tuska »

Fla$her wrote: 2023-01-27, 17:46 UTC 2tuska
Good. You're welcome.

Many people don't like Norton. There are too many false positives.
I advise you to familiarize yourself with the last 4-5 tests on the topic of protection.
I would look towards Eset or Kaspersky.
Thank you, I will work my way through that. :)
User avatar
tuska
Power Member
Power Member
Posts: 3741
Joined: 2007-05-21, 12:17 UTC

Re: Use a single command to switch between two views?

Post by *tuska »

tuska wrote: 2023-01-27, 17:11 UTC ... I'll reinstall the Autorun plugin properly.
I have now found that the installation of the "Autorun" plugin is required after all, for this button to work (pls see also below).
Configuration > Options... > Plugins > Content plugins (.WDX) > Button "Configure" shows:

Code: Select all

C:\totalcmd\Tools\TCFS2Tools\TCFS2Tools.wdx
C:\totalcmd\Plugins\wdx\Autorun\Autorun.wdx64
Autorun.cfg   (file created by me with an editor)

Code: Select all

LoadLibrary "%COMMANDER_PATH%\Tools\TCFS2Tools\TCFS2Tools.dll"
Button

Code: Select all

TOTALCMD#BAR#DATA
%COMMANDER_PATH%\Tools\TCFS2\TCFS2.exe
/ef tcm(305) if(tcm(65555),tcm(910),tcm(909))
wciconex.dll,37
Switch between one horizontal and two vertical panels|https://ghisler.ch/board/viewtopic.php?t=78338|%COMMANDER_PATH%\Tools\TCFS2\TCFS2.exe|Parameters: /ef tcm(305) if(tcm(65555),tcm(910),tcm(909))


-1
Create a Button in the Buttonbar (copy/paste CODE)
  1. Click on "SELECT ALL" (to the right of CODE:), then press CTRL+C (copy to clipboard).
  2. Right-click on any place in the button bar, then click on "Paste".
     ⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺
  3. Option1: Point to the new button (slightly longer): 'Tooltip' is shown (-> description to the button).
                  A maximum of 259 characters is allowed for the tooltip. | = create line break, || = create | as separator character.
  4. Option2: Button bar - "Tooltip" field: A single space deactivates the display of the tooltip.
                  If the "Tooltip" field is empty, the content of the "Command" field is displayed.
  5. Option3: See FAQs and explanation: Button-code (TOTALCMD#BAR#DATA)  <-- <Ctrl+click on the link...>
Fla$her
Power Member
Power Member
Posts: 2244
Joined: 2020-01-18, 04:03 UTC

Re: Use a single command to switch between two views?

Post by *Fla$her »

tuska wrote: 2023-01-28, 00:38 UTCConfiguration > Options... > Plugins > Content plugins (.WDX) > Button "Configure" shows:
This is not necessary if the installation is performed using Autorun. You need to move TCFS2Tools.dll go to the %COMMANDER_PATH%\Plugins\wdx\Autorun\Plugins\ folder and write LoadLibrary Plugins\TCFS2Tools.dll to autorun.cfg.
Overquoting is evil! 👎
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6450
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: Use a single command to switch between two views?

Post by *Horst.Epp »

2tuska
For x64 TC you should load TCFS2Tools64.dll
Windows 11 Home x64 Version 23H2 (OS Build 22631.3374)
TC 11.03 x64 / x86
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.69
QAP 11.6.3.2 x64
User avatar
tuska
Power Member
Power Member
Posts: 3741
Joined: 2007-05-21, 12:17 UTC

Re: Use a single command to switch between two views?

Post by *tuska »

2Fla$her
2Horst.Epp

Thank you for your advice.

My current status is as follows:
  1. As already mentioned, I could not perform a complete installation of Plugin "Autorun" due to Norton 360 Internet Security,
    i.e. various files are missing which Norton 360 has irretrievably deleted.
  2. LoadLibrary Plugins\TCFS2Tools.dll ... did not work for me - maybe due to partial plugin installation.
    Error message wrote:Error in file: C:\totalcmd\Plugins\wdx\Autorun\Autorun.cfg
    [1] LoadLibrary Plugins\TCFS2Tools.dll
    Can't find the file: Plugins\TCFS2Tools.dll
  3. x64 TC - TCFS2Tools.dll64: ... TCFS2Tools.dll has also worked for me, but I changed it to
    LoadLibrary %COMMANDER_PATH%\Tools\TCFS2Tools\TCFS2Tools.dll64 in file "Autorun.cfg" now
  4. In addition, I have now tested this variant, described by Stefan2 - at first with success ...
  5. After setting it up as described above, I was able to successfully run the button umpteen times(!) ...
  6. After a task change or TC restart, I get this error message after executing the button:
    error message wrote:Function not implemented!
    65555
So my next step is to look for another internet security software,
so that I can install various plugins, etc. in the future without files being lost due to "false positive" assessments
automatically and irrevocably deleted by Norton 360 Internet Security.

I therefore ask you not to give me any further instructions/tips/feedback on this topic until further notice.
In the meantime I use another button solution.
Last edited by tuska on 2023-01-28, 17:24 UTC, edited 1 time in total.
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6450
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: Use a single command to switch between two views?

Post by *Horst.Epp »

2Tuska
So my next step is to look for another internet security software,
so that I can install various plugins, etc. in the future without files being lost due to "false positive" assessments
automatically and irrevocably deleted by Norton 360 Internet Security.
Even I have a vaild Kaspersky license I use Windows Defender now since 2 years without any problems.
Additionally I run a tool named DefenderGUI which makes it easier to configure some settings.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3374)
TC 11.03 x64 / x86
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.69
QAP 11.6.3.2 x64
User avatar
tuska
Power Member
Power Member
Posts: 3741
Joined: 2007-05-21, 12:17 UTC

Re: Use a single command to switch between two views?

Post by *tuska »

Horst.Epp wrote: 2023-01-28, 16:18 UTC Even I have a vaild Kaspersky license I use Windows Defender now since 2 years without any problems.
Additionally I run a tool named DefenderGUI which makes it easier to configure some settings.
Thanks for the tip! :)
I will now switch to Microsoft Windows Defender for the time being.

Compared to other Internet security software, it lags behind (source: CHIP_2023-03),
but if I'm not satisfied, I can look for another software later.
("lags behind": This also applies to ESET Internet Security, by the way).
User avatar
tuska
Power Member
Power Member
Posts: 3741
Joined: 2007-05-21, 12:17 UTC

Re: Use a single command to switch between two views?

Post by *tuska »

tuska wrote: 2023-01-26, 13:20 UTC I have a similar solution for this topic.

It must be mentioned, however, that this method has an impact on the subsequent View mode with Auto Switch Mode.
However, the View mode with Auto Switch Mode can be restored with the command: cm_RereadSource 2 by button-click.
Interestingly, this side effect no longer occurs in my version.
At the time, something seems to have snagged.
View_100pct_50pct_VerticalPanel-on-off

Code: Select all

TOTALCMD#BAR#DATA
cm_SrcViewModeList View_100pct_50pct_VerticalPanel-on-off

wciconex.dll,86
cm_SrcViewModeList View_100pct_50pct_VerticalPanel-on/off|Auto-run commands: cm_VerticalPanels,cm_100Percent||em_Width_50Percent,cm_RereadSource 2|em_Width_50Percent: cmd=cm_VerticalPanels,cm_50Percent|https://www.ghisler.ch/board/viewtopic.php?t=78338||C+S+9


-1
With TCFS2Tools, however, the view changeover runs much more smoothly.
Fla$her
Power Member
Power Member
Posts: 2244
Joined: 2020-01-18, 04:03 UTC

Re: Use a single command to switch between two views?

Post by *Fla$her »

tuska wrote: 2023-01-28, 14:18 UTC i.e. various files are missing which Norton 360 has irretrievably deleted.
Which ones exactly? And are we talking about version 2.2.10?
tuska wrote: 2023-01-28, 14:18 UTC
Error message wrote:Error in file: C:\totalcmd\Plugins\wdx\Autorun\Autorun.cfg
[1] LoadLibrary Plugins\TCFS2Tools.dll
Can't find the file: Plugins\TCFS2Tools.dll
It was necessary to move TCFS2Tools.dll and TCFS2Tools.dll64 on the path I specified, then there would be no such error.
Overquoting is evil! 👎
User avatar
tuska
Power Member
Power Member
Posts: 3741
Joined: 2007-05-21, 12:17 UTC

Re: Use a single command to switch between two views?

Post by *tuska »

Fla$her wrote: 2023-01-28, 18:31 UTC
tuska wrote: 2023-01-28, 14:18 UTC i.e. various files are missing which Norton 360 has irretrievably deleted.
Which ones exactly? And are we talking about version 2.2.10?
wdx_autorun_2.2.10_beta - The following files were deleted and therefore not installed in C:\totalcmd\Plugins\wdx\Autorun\ ...
C:\totalcmd\Plugins\wdx\Autorun\Downloads\wdx_autorun_2.2.10_beta.zip\Autorun.wdx
C:\totalcmd\Plugins\wdx\Autorun\Downloads\wdx_autorun_2.2.10_beta.zip\Plugins\Autorun_ModifyDialogs.dll
C:\totalcmd\Plugins\wdx\Autorun\Downloads\wdx_autorun_2.2.10_beta.zip\Plugins\Autorun_ModifyDialogs.dll64
C:\totalcmd\Plugins\wdx\Autorun\Downloads\wdx_autorun_2.2.10_beta.zip\Plugins\Autorun_Runtime.dll
C:\totalcmd\Plugins\wdx\Autorun\Downloads\wdx_autorun_2.2.10_beta.zip\Plugins\Autorun_Runtime.dll64
C:\totalcmd\Plugins\wdx\Autorun\Downloads\wdx_autorun_2.2.10_beta.zip\Plugins\Autorun_Sysinfo.dll
C:\totalcmd\Plugins\wdx\Autorun\Downloads\wdx_autorun_2.2.10_beta.zip\Plugins\Autorun_Sysinfo.dll64
C:\totalcmd\Plugins\wdx\Autorun\Downloads\wdx_autorun_2.2.10_beta.zip\Plugins\Autorun_Tweaks.dll
C:\totalcmd\Plugins\wdx\Autorun\Downloads\wdx_autorun_2.2.10_beta.zip\Plugins\Autorun_Tweaks.dll64

- Norton 360 uninstallation (Microsoft Windows Defender is now running)
- Autorun Plugin reinstallation: All files were installed properly!
Fla$her wrote: 2023-01-28, 18:31 UTC
tuska wrote: 2023-01-28, 14:18 UTC
Error message wrote:Error in file: C:\totalcmd\Plugins\wdx\Autorun\Autorun.cfg
[1] LoadLibrary Plugins\TCFS2Tools.dll
Can't find the file: Plugins\TCFS2Tools.dll
It was necessary to move TCFS2Tools.dll and TCFS2Tools.dll64 on the path I specified, then there would be no such error.
I think I last made a mistake with "Define colours by file type..." and this caused the error message(s).

After correction, these two variants now work for me (I was about to give up):
  1. C:\totalcmd\Plugins\wdx\Autorun\Autorun.cfg
    LoadLibrary Plugins\TCFS2Tools.dll64

    C:\totalcmd\Plugins\wdx\Autorun\TCFS2Tools.dll
    C:\totalcmd\Plugins\wdx\Autorun\TCFS2Tools.dll64
     
    - OR -
     
  2. C:\totalcmd\Plugins\wdx\Autorun\Autorun.cfg
    LoadLibrary %COMMANDER_PATH%\Tools\TCFS2Tools\TCFS2Tools.dll64

    C:\totalcmd\Tools\TCFS2Tools\TCFS2Tools.dll
    C:\totalcmd\Tools\TCFS2Tools\TCFS2Tools.dll64
Thanks again to all for your support!
Post Reply