QuickSwitch and JumpToFolder AHK scripts

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
User avatar
Horst.Epp
Power Member
Power Member
Posts: 7007
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: QuickSwitch and JumpToFolder AHK scripts

Post by *Horst.Epp »

There is only one startup link for QuickSwitch
which points to C:\Tools\QuickSwitch\QuickSwitch.exe.
There is only one version of QuickSwitch running after system startup and login.
While the problem occurred, I tried a precompiled version from you with no success.

For the admin tests, I have to wait for a startup which shows the problem.
Windows 11 Home, Version 24H2 (OS Build 26100.4351)
TC 11.55 RC6 x64 / x86
Everything 1.5.0.1395a (x64), Everything Toolbar 1.5.5.0, Listary Pro 6.3.2.88
QAP 11.9.0.3 x64
Rafaello
Junior Member
Junior Member
Posts: 72
Joined: 2025-04-01, 17:48 UTC

Re: QuickSwitch and JumpToFolder AHK scripts

Post by *Rafaello »

Horst.Epp wrote: 2025-04-29, 11:44 UTC I have to wait for a startup which shows the problem.
You're waiting for the launch of QuickSwitch, XY or TC? Is there some kind of delay or hang when starting from the admin?
User avatar
Horst.Epp
Power Member
Power Member
Posts: 7007
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: QuickSwitch and JumpToFolder AHK scripts

Post by *Horst.Epp »

Rafaello wrote: 2025-04-29, 12:14 UTC
Horst.Epp wrote: 2025-04-29, 11:44 UTC I have to wait for a startup which shows the problem.
You're waiting for the launch of QuickSwitch, XY or TC? Is there some kind of delay or hang when starting from the admin?
No, I don't wait for QuickSwitch as it's allready started in the background.
I never use Admin mode for normal usage.
There is never any delay starting TC, XY or QS.
Windows 11 Home, Version 24H2 (OS Build 26100.4351)
TC 11.55 RC6 x64 / x86
Everything 1.5.0.1395a (x64), Everything Toolbar 1.5.5.0, Listary Pro 6.3.2.88
QAP 11.9.0.3 x64
Rafaello
Junior Member
Junior Member
Posts: 72
Joined: 2025-04-01, 17:48 UTC

Re: QuickSwitch and JumpToFolder AHK scripts

Post by *Rafaello »

Please record a .gif and attach it to the new bug report. We will continue the discussion there. At this point, I need to see what's going on during the path display problem. I am currently preparing a separate version with additional logging of system actions.
User avatar
Horst.Epp
Power Member
Power Member
Posts: 7007
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: QuickSwitch and JumpToFolder AHK scripts

Post by *Horst.Epp »

Rafaello wrote: 2025-04-29, 15:27 UTC Please record a .gif and attach it to the new bug report. We will continue the discussion there. At this point, I need to see what's going on during the path display problem. I am currently preparing a separate version with additional logging of system actions.
I see no value in a GIF or video.
The menu is opened, and it doesn't show and TC path to select from.
I will test when you have the new version available.
Windows 11 Home, Version 24H2 (OS Build 26100.4351)
TC 11.55 RC6 x64 / x86
Everything 1.5.0.1395a (x64), Everything Toolbar 1.5.5.0, Listary Pro 6.3.2.88
QAP 11.9.0.3 x64
Rafaello
Junior Member
Junior Member
Posts: 72
Joined: 2025-04-01, 17:48 UTC

Re: QuickSwitch and JumpToFolder AHK scripts

Post by *Rafaello »

βeta v1.4.9.
Reduced disk usage (reduced amount of read / write to config operations).
Fixed regressions:
  • "Always Auto Switch" was disabled in dialog where it was enabled
  • Errors after enabling "Auto Switch" and "Close old dialog".
  • "Show short path" settings options name.
  • Duplicating path in dialog.
Rafaello
Junior Member
Junior Member
Posts: 72
Joined: 2025-04-01, 17:48 UTC

Re: QuickSwitch and JumpToFolder AHK scripts

Post by *Rafaello »

Horst.Epp wrote: 2025-04-29, 15:32 UTC I will test when you have the new version available.
Please delete QuickSwitch command from usercmd.ini and try v1.4.4.1. After testing attach ErrorsLog here / on GitHub. When the menu appears, the log writes two lines: "Rebuild menu..." and "Received ... paths"
User avatar
Horst.Epp
Power Member
Power Member
Posts: 7007
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: QuickSwitch and JumpToFolder AHK scripts

Post by *Horst.Epp »

Rafaello wrote: 2025-04-29, 19:39 UTC
Horst.Epp wrote: 2025-04-29, 15:32 UTC I will test when you have the new version available.
Please delete QuickSwitch command from usercmd.ini and try v1.4.4.1. After testing attach ErrorsLog here / on GitHub. When the menu appears, the log writes two lines: "Rebuild menu..." and "Received ... paths"
I will send the log when the error next time occurs.
Currently, the log is ok.

Code: Select all

Report about error: https://github.com/JoyHak/QuickSwitch/issues/new?template=bug-report.yaml
AHK 1.1.37.02
Windows 10 Home 24H2 | 26100 de-DE

Script is compiled. Version: 0.0.0.0
64-bit script for 64-bit system 

29.04 10:12:55    Watch for process: 5445097
29.04 10:12:55    Watch for process: 80284613
29.04 10:12:55    Found TotalCmd, current paths count: 0
29.04 10:12:55    Send TotalCmd command EM_ScriptCommand_QuickSwitch_SaveAllTabs
29.04 10:12:55    Parse TotalCmd tabs: C:\Users\horst\AppData\Local\Temp\TotalTabs.tab
29.04 10:12:55    Active tab: 0 Previous active: 0
29.04 10:12:55    Active tab: 0 Previous active: 0
29.04 10:12:55    Found tabs: 3
29.04 10:12:55    Push active tab: C:\Temp\Test Remained: 2
29.04 10:12:55    New paths count: 3
29.04 10:12:57    Rebuild menu, paths: 3
29.04 10:12:57    Recieved 3 paths, last index: 3
Windows 11 Home, Version 24H2 (OS Build 26100.4351)
TC 11.55 RC6 x64 / x86
Everything 1.5.0.1395a (x64), Everything Toolbar 1.5.5.0, Listary Pro 6.3.2.88
QAP 11.9.0.3 x64
Rafaello
Junior Member
Junior Member
Posts: 72
Joined: 2025-04-01, 17:48 UTC

Re: QuickSwitch and JumpToFolder AHK scripts

Post by *Rafaello »

βeta v1.4.11
Added ability to restart all Explorer windows on system error. Improved performance by reducing disk access.

Improved
  • Read / Write operations to reduce disk usage and improve performance.
  • Values validation performance.
  • Performance if the main ini configuration could not be accessed.
  • Speed of changing path in file dialog.
  • Logging about files QuickSwitch couldn't access (including ini and TotalCmd tabbs file.)
  • Logging for specific actions like deleting configuration.
  • "Menu" tab options naming in "Menu settings".
  • Code readability.
Fixed regressions
  • Turning off "close old dialog" option after opening General dialog.
  • Instant file dialog closing if Auto Switch is enabled.
  • Usage of wrong values entered by user in settings.
Rafaello
Junior Member
Junior Member
Posts: 72
Joined: 2025-04-01, 17:48 UTC

Re: QuickSwitch and JumpToFolder AHK scripts

Post by *Rafaello »

Horst.Epp wrote: 2025-04-29, 15:32 UTC The menu is opened, and it doesn't show and TC path to select from.
Reproduced. Launch QuickSwitch as admin or dont run TC as admin.
User avatar
Horst.Epp
Power Member
Power Member
Posts: 7007
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: QuickSwitch and JumpToFolder AHK scripts

Post by *Horst.Epp »

Rafaello wrote: 2025-05-03, 07:33 UTC
Horst.Epp wrote: 2025-04-29, 15:32 UTC The menu is opened, and it doesn't show and TC path to select from.
Reproduced. Launch QuickSwitch as admin or dont run TC as admin.
My tests are never run TC as admin.
Nevertheless, I now run 1.4.11 and didn't have any problems so far.
Windows 11 Home, Version 24H2 (OS Build 26100.4351)
TC 11.55 RC6 x64 / x86
Everything 1.5.0.1395a (x64), Everything Toolbar 1.5.5.0, Listary Pro 6.3.2.88
QAP 11.9.0.3 x64
Rafaello
Junior Member
Junior Member
Posts: 72
Joined: 2025-04-01, 17:48 UTC

Re: QuickSwitch and JumpToFolder AHK scripts

Post by *Rafaello »

QuickSwitch v1.5

New Total Commander core (#33)
Now the Menu displays all the paths from Total Commander without errors! Thank you Dalai for the config search algorithm and Horst for long and patient testing. For the most accurate results, please do not run TotalCmd as administrator or run QuickSwitch as admin.

Details
Spoiler
After a series of my unsuccessful attempts to add this feature, I finally succeeded! Now QuickSwitch searches for your config directory (regardless of its name) and creates a usercmd.ini in it with the custom EM_ command, which invokes the internal SaveTabs2 command.
This amazing update is aimed at improving performance and it was prepared thanks to the incredibly valuable testing by Arsiendle and CennoxX! Some settings have been changed, please set them again in "Menu settings".

I really need your feedback! If something is not working for you, please let me know. If you think that app can be improved, write to me.

Changelog
Spoiler
Menu options
  • Black list option: if a menu appears where you don't want it to, you can add that window to the black list. The Menu can still be opened with the main key which can be changed in "Menu settings" > "App".
  • Only Auto Switch: removed "not now", "never here" options. Now there is a single "auto switch" option.
  • Keyboard support: now you need fewer keys to interact with the Menu:
    • Path: 0-9.
    • Auto switch: A
    • Black list: B
    • Settings: S
    • Hide menu: Esc / click anywhere
      Each option and button in the settings has a corresponding key. Press the u̲n̲d̲e̲r̲l̲i̲n̲e̲d̲ l̲e̲t̲t̲e̲r̲ on the keyboard for quick focus:
      C̲ancel – C; Path s̲eparator – S.
Menu settings
  • Always Auto Switch: always changes the path. But you can disable this mode for specific windows using "auto switch" Menu option (#64).
  • Close old-style file dialog: enable this option if you want to close old-style file dialogs immediately after selecting a path a don't want to wait (#78).
  • Nuke button: sets the default settings and puts the current configuration in the Recycle Bin. Use this option to remove all window settings and force "always Auto Switch" mode. The button is hidden for safety reasons. It can be found after clicking "Reset" or "Debug" buttons.
  • Show menu:
    • If all Menu options disabled (e.g. disable "Auto Switch" to show, enable to hide).
    • After selecting path.
    • Always hide only after losing focus


Features
  • Empty menu: if no paths could be found or supported file managers are closed, the menu will display "no available paths".
  • More file dialogs: added support for old-style TreeView dialog with Edit field and simple tree (XY forum); added support for some archivers dialogs including BandiZip, PeaZip, 7-zip and WinRar (#43).
  • Performance: the speed of the following actions has been improved:
    • Auto switch.
    • Navigating the selected path.
    • Determining the type of dialog.
    • Getting paths from file managers.
    • Getting the Directory Opus active tab.
    • Saving and reading the configuration.


Refactored
  • All dialogs now uses same fast function which uses the Edit field instead of the address bar (XY forum).
  • Reduced disk usage (reduced amount of I/O operations).
  • Improved Menu settings and ini options readability (#84).
  • Added retries to fill the path in the dialog (#81).
  • Added check for buttons in the dialog.
  • Added arrows in "Menu settings" numeric fields and added validation of integers on input.
  • Added dialog name to the "Debug" window. Also you can export dialog info and read internal and visible dialog name in the exported file.
  • Reduced the number of iterations when parsing the dialog controls, file manager classes, xyplorer child windows.
  • 0/1 values replaced with true/false (ini still uses integers for reliability).
  • Improved documentation of code and libraries including comments and readme.
  • Complex files are organized into separate libraries.
  • Improved display of notifications and errors.
  • Added logging about files QuickSwitch couldn't access (including main configuration ini and TotalCmd tabbs file.)


Fixed
  • The Menu:
    • Remained permanently open after opening the settings.
    • Didn't disappear after closing the dailog.
    • Showed the various XYplorer variables (XY forum).
  • Slowdown if child window is open in XYplorer.
  • Auto Switch didn't work the first time the dialog was opened.
  • The colour field did not allow a HEX number to be entered in free format: #111111, 0x111111 . . .
  • Errors appeared when the dialog was immediately closed after opening (#82).
  • Rare system error appeared after opening many Explorer windows; added the ability to restart Explorer (#82).
Last edited by Rafaello on 2025-05-03, 14:23 UTC, edited 1 time in total.
User avatar
Horst.Epp
Power Member
Power Member
Posts: 7007
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: QuickSwitch and JumpToFolder AHK scripts

Post by *Horst.Epp »

2Rafaello
Tested 1.5 ok
Thanks for your work.

One suggestion for next versions.
The original Quick Switch also shows up to 10 paths from Windows Recent.
Very helpful a lot of times.
Windows 11 Home, Version 24H2 (OS Build 26100.4351)
TC 11.55 RC6 x64 / x86
Everything 1.5.0.1395a (x64), Everything Toolbar 1.5.5.0, Listary Pro 6.3.2.88
QAP 11.9.0.3 x64
User avatar
AntonyD
Power Member
Power Member
Posts: 1660
Joined: 2006-11-04, 15:30 UTC
Location: Russian Federation

Re: QuickSwitch and JumpToFolder AHK scripts

Post by *AntonyD »

2Rafaello
Welcome!
Perhaps, since you have done so well in this direction of development, you should pay attention
to the possibility of having a full-fledged supported script for switching from the Everything program
with its search results to Total?
Now such a script already exists. BUT at the moment it is a very straightforward and unsupported set of code.
And if something does not work, you have to figure it out by yourself.
#146217 personal license
User avatar
Horst.Epp
Power Member
Power Member
Posts: 7007
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: QuickSwitch and JumpToFolder AHK scripts

Post by *Horst.Epp »

AntonyD wrote: 2025-05-03, 19:51 UTC 2Rafaello
Welcome!
Perhaps, since you have done so well in this direction of development, you should pay attention
to the possibility of having a full-fledged supported script for switching from the Everything program
with its search results to Total?
Now such a script already exists. BUT at the moment it is a very straightforward and unsupported set of code.
And if something does not work, you have to figure it out by yourself.
There are several scripts which all use Everything in the background.
The AHK script "Jump to folder" allows searching in Everything and feet the results into the TC path.
It also works in Open/Save dialogs.
https://www.voidtools.com/forum/viewtopic.php?f=2&t=11194
https://github.com/gepruts/JumpToFolder

The classic Quick Switch also supports calling Jump to folder from a dialog.
I don't see any benefit for making a new one.
Windows 11 Home, Version 24H2 (OS Build 26100.4351)
TC 11.55 RC6 x64 / x86
Everything 1.5.0.1395a (x64), Everything Toolbar 1.5.5.0, Listary Pro 6.3.2.88
QAP 11.9.0.3 x64
Post Reply