Open Everything GUI results with TC LOADLIST

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
tuska
Power Member
Power Member
Posts: 3741
Joined: 2007-05-21, 12:17 UTC

Re: Open Everything GUI results with TC LOADLIST

Post by *tuska »

Thanks!
I have now tested this with your settings as follows:
  1. Total Commander (x64) 10.52RC1, Everything 1.5.0.1321a (x64),
    AHK-Skript - 04.10.2022 - Line 164: Run %TotalCmd% /O /T /S LOADLIST:%DestinationFile%
  2. View mode: <Default>
    - Columns view: Full
    - Sort order: Unchanged
  3. View mode: Branch View
    - Columns view: Full
    - Sort order: Unchanged
    - Auto-run commands: *|cm_SrcViewMode0
  4. Auto Switch Mode
    - ✅ Automatically switch view mode on directory change:
    - Rule: +: Must match ... Directory: %COMMANDER_PATH%\EV-Results\
    - Set this mode: Branch View
A few comments on this:
  1. When I run the AHK script (Auto Switch Mode *ON*) I get the search result of Everything in Total Commander
    on the tab "Search result:". Both folders and files are listed. Please also see the next point...
  2. By "Branch View" I understand the following:
    cm_DirBranch 2026 Show all files in current dir and all subdirs
    cm_DirBranchSel 2046 Show selected files, and all in selected subdirs
    For a long time I was confused by your use of the term "Branch view", because I expected the search result in TC
    to contain only files and not folders.
  3. View Mode - Parameter: |cm_SrcViewMode0
    I am not a big fan of this parameter, because an "Auto Switch Mode" ends by itself.
    Furthermore, this parameter can possibly override the next "Auto Switch Mode".
  4. The most important point for me is this:
    When the AHK script - 04.10.2022 - Line 164: Run %TotalCmd% /O /T /S LOADLIST:%DestinationFile% is executed with this command,
    I get the same search result as executed under point 1., and that too WITHOUT using View mode and Auto Switch Mode!
    The Auto Switch Mode does not interfere, but in my opinion it is NOT necessary.
  5. For test purposes, please switch the Auto Switch Mode *OFF* by unchecking this option:
    ⏹ Automatically switch view mode on directory change: ... Then run the AHK script again.
  6. In my opinion, the View mode with Auto Switch Mode is only necessary if you are using the AHK script dated 21.10.2021
    with Line 164: Run %TotalCmd% /O /T /S %DestinationDir% (without LOADLIST:).
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6450
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: Open Everything GUI results with TC LOADLIST

Post by *Horst.Epp »

Not for me !
When I switch off the Auto Switch mode and the results are loaded
they are displayed as a simple list and not like branch view or search results.
This is what we expect.
Why should the Loadlist make any formatting it just displays the entries in the file
like the results of a simple search.
Only by switching the view (manual or by Auto switch) we get the desired display.
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: Open Everything GUI results with TC LOADLIST

Post by *tuska »

Do you have a picture for me of what the search result in TC looks like after transfer on your PC?
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6450
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: Open Everything GUI results with TC LOADLIST

Post by *Horst.Epp »

tuska wrote: 2022-10-07, 18:24 UTC Do you have a picture for me of what the search result in TC looks like after transfer on your PC?
Try this OneDrive link
https://1drv.ms/u/s!Al7u1rclQAWIgpQ4_rD1FIa9_RrnDA?e=gkiEpN
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: Open Everything GUI results with TC LOADLIST

Post by *tuska »

Thank you for the image! :)

I think you used a 'Custom columns view' in the View mode (-> Columns view: # xxx) and an Auto Switch Mode.
I tried it briefly, but unfortunately I did not succeed in creating the view like yours (I will try again occasionally).

Here is my video, which also shows the error with EV 1.5: Mix Files and Folders <=> TC cm_ExchangeSelBoth.
- File: _2022-10-07_23.28.55_Video_30.000_1920x1140_00.03.52.wmv
- File size: ~17 MB
- Duration: Approx. 4 minutes
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6450
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: Open Everything GUI results with TC LOADLIST

Post by *Horst.Epp »

Yes, Search Results is a custom view.
In addition to Name and Ext fields It contains

Widths5=130,20,135,-47,60,22
Headers5=Path\nSize\nDate\nTag
Contents5=[=tc.path]\n[=tc.size.bkMG2]\n[=tc.writedate]\n[=ntfs_diz.Tag]
Options5=-1|1|96

The ntfs_diz.Tag field is derived from the Everything indexed NTFS ADS stream.
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
Horst.Epp
Power Member
Power Member
Posts: 6450
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: Open Everything GUI results with TC LOADLIST

Post by *Horst.Epp »

tuska wrote: 2022-10-07, 17:27 UTC [*]View Mode - Parameter: |cm_SrcViewMode0
I am not a big fan of this parameter, because an "Auto Switch Mode" ends by itself.
Furthermore, this parameter can possibly override the next "Auto Switch Mode".
Removing the *|cm_SrcViewMode0 has no effect on the display of Branch view
so it can be omitted.
My config gets even simpler :)
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: Open Everything GUI results with TC LOADLIST

Post by *tuska »

Can you please also post me your AHK script (.ahk) here.
I still have a problem with the implementation of the new AHK script regarding a custom columns view.
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6450
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: Open Everything GUI results with TC LOADLIST

Post by *Horst.Epp »

tuska wrote: 2022-10-08, 16:40 UTC Can you please also post me your AHK script (.ahk) here.
I still have a problem with the implementation of the new AHK script regarding a custom columns view.
My version is exactly what I have updated in the first page of this thread.
https://www.ghisler.ch/board/viewtopic.php?p=406127#p406127
The script itself has no influence on the display of the results.
The display is controlled by the Auto Switch Mode which sets Branch View.
Even using later a button which runs a Loadlist of the Results
the display is the same as after running the AHK script.
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: Open Everything GUI results with TC LOADLIST

Post by *tuska »

2Horst.Epp

OK, thanks.

Unfortunately, with the information you have provided so far, I have not been able to display a 'custom columns view'
in the tab "Search result:" after calling the AHK script.

In the meantime, however, I have succeeded in creating a View mode with integrated 'custom columns view'
for both the AHK script of 21.10.2021 and 4.10.2022. *)

Thank you for giving me this idea in the first place.


*) Example settings for: View mode with integrated 'custom columns view' for AHK script of 4.10.2022.
User avatar
tuska
Power Member
Power Member
Posts: 3741
Joined: 2007-05-21, 12:17 UTC

Re: Open Everything GUI results with TC LOADLIST

Post by *tuska »

2Horst.Epp

Thanks for the addition of detailed information in the first post.
Basically it works as you described and I was surprised that |cm_SrcViewMode0 did not get in the way. :)

Unfortunately the interaction between AHK script and Auto Switch Mode with View mode - field: "Columns view" does not work,
i.e. this field has no effect in this case.

I have another solution for such a case:
BUTTON, e.g. with command: em_EV-results_TC-LOADLIST,CM_WAIT 750,cm_ExchangeSelBoth ... -OR- ...

Code: Select all

em_EV-results_TC-LOADLIST,CM_WAIT 750,cm_SrcCustomView37,cm_SrcSortByCol6,cm_ExchangeSelBoth
Details:
- em_EV-results_TC-LOADLIST: %COMMANDER_PATH%\Tools\AutoHotkey\Skripte\EV_SearchResults_to_TC-panel\Compiled_AHK_Script_04-10-2022.exe
- Compiled_AHK_Script_04-10-2022.exe --> Run %TotalCmd% /O /T /S LOADLIST:%DestinationFile%

The control of the optional 'Custom columns view' including optional sorting is done via commands to the BUTTON!
In this case NO View mode and Auto Switch Mode is needed.
User avatar
tuska
Power Member
Power Member
Posts: 3741
Joined: 2007-05-21, 12:17 UTC

Re: Open Everything GUI results with TC LOADLIST

Post by *tuska »

AutoHotkey v2 wrote: AutoHotkey v2 aims to improve the usability and convenience of the language and command set by sacrificing backward compatibility.
As such, scripts written for v1 generally will not work without changes on v2.
Can AutoHotkey v2 cause a problem when executing the script?
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6450
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: Open Everything GUI results with TC LOADLIST

Post by *Horst.Epp »

tuska wrote: 2022-10-21, 11:14 UTC
AutoHotkey v2 wrote: AutoHotkey v2 aims to improve the usability and convenience of the language and command set by sacrificing backward compatibility.
As such, scripts written for v1 generally will not work without changes on v2.
Can AutoHotkey v2 cause a problem when executing the script?
Last time I looked into the v2 description there where many things to adapt.
I'll wait some more time before trying to adapt existing scripts
and the Everything GUI result script will not be the first.
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: Open Everything GUI results with TC LOADLIST

Post by *tuska »

Horst.Epp wrote: 2022-10-21, 12:17 UTC
tuska wrote: 2022-10-21, 11:14 UTC
AutoHotkey v2 wrote: AutoHotkey v2 aims to improve the usability and convenience of the language and command set by sacrificing backward compatibility.
As such, scripts written for v1 generally will not work without changes on v2.
Can AutoHotkey v2 cause a problem when executing the script?
Last time I looked into the v2 description there where many things to adapt.
I'll wait some more time before trying to adapt existing scripts
and the Everything GUI result script will not be the first.
Thanks for the info!
yanch
Junior Member
Junior Member
Posts: 30
Joined: 2015-06-06, 21:17 UTC

Re: Open Everything GUI results with TC LOADLIST

Post by *yanch »

Can not force this script to work. Copied code from the first message of the topic. Modified paths etc.

Everything v.1.5.0.1331a x64
TC v.10.52 x64
Windows 8.1 x64

I created test file for searching. It is placed as C:\test.bat.
When I run compiled script by hotkey from Everything search window, it:
1. writes path and filename in result file. (\Scripts\Results\Everything.txt)
Image: https://i.imgur.com/rmdZ255.jpg
2. focuses Total Commander window
3. creates a tab named "Total", with empty result
Image: https://i.imgur.com/wDLs64V.jpg
Post Reply