This is an improved version of the QuickSwitch script v0.5 from Gepruts. DaWolfi, NotNull and Tuska first improved it to v0.5dw9a, and I've now released v1.0, where I've made some really significant improvements!
Imagine you want to open/save a file. A dialog box appears, allowing you to manually select the directory on your system. QuickSwitch lets you automatically switch to the path you need if it's open in any of the supported file managers (File Explorer, Directory Opus, Total Commander, XYPlorer).
In short, this compact menu will display all suitable paths:
It has two modes:
-
Menu mode: displays a list of opened directories. Selecting one switches the file dialog to that path. The menu won't appear if no directories are open.
-
AutoSwitch mode: the file dialog automatically opens the last active directory in the file manager when you
Alt-Tab
between them. If the file manager was active before opening the dialog, it opens that directory immediately. You can still useCtr+Q
to access the menu if needed.
AutoSwitch can be disabled using the Never
option. There's also Never here
option to disable QuickSwitch for specific dialogs, like web browsers or backup applications.
And of course you can customize the display of paths in the menu to your liking:
The latest versions include the following features:
- Added application auto-startup at Windows log-on.
- The menu will display the paths from all open folders starting from the current one.
- The path can be displayed in a shortened form.
- Improved settings interface and additional customization options and features.
- Added minimalistic display of errors about incorrectly entered settings.
As an addition I recommend the BigSur or CakeOS themes from Niivu and XYplorer file manager:
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.
This version is aimed at high performance and is devoid of various checks. To ensure that the correct current paths always appear in the menu:
- Disable localized folder names (e.g. C:\Users, C:\Användare, ...).
- Periodically open the file manager you need (a big number of windows makes it difficult to find the last open manager).
- Do not keep virtual folders open (e.g. coll://, Desktop, Rapid Access, ...).
- Download the latest version.
Subscribe to releases so you don't miss critical updates!
-
Run
.exe
for your CPU architecture and check it's existence in the tray. -
Open different directories in a supported file manager.
E.g., open
C:\
inExplorer
.
- Open any application and try to open\save a file using it.
E.g., open
Notepad
thenFile - Open...
. Or try downloading any file.
-
Press
Ctrl+Q
and look at the paths in the menu that opens. All directories opened in supported file managers will be displayed here. -
Explore the available options in the menu, open the settings and experiment with them. Choose a convenient style and logic of the menu!
This script is written in the Autohotkey language.
- Download Autohotkey v1.1 and install it.
PLEASE KEEP IN MIND: Autohotkey v1 is an outdated version. If you want to start learning the language, install
v2
. Do not learn autohotkey v1 yourself and use it exclusively to run old scripts. This script needs to be updated fromv1
tov2
!
-
When the installation is complete, you are presented with another menu. Choose
Run AutoHotkey
. Once the AutoHotkey help file opens, you can read or close it now. -
Download the latest version of QuickSwitch.
-
Unpack
.zip
and runQuickSwitch.ahk
. Check it's existence in the tray.
QuickSwitch.ahk
can be automatically compiled using ahk2exe
which is here by default: C:\Program Files\AutoHotkey\Compiler\Ahk2Exe.exe
It can be downloaded from here: https://github.com/AutoHotkey/Ahk2Exe
Or installed from here: C:\Program Files\AutoHotkey\UX\install-ahk2exe.ahk
7-zip
is also needed to automatically create an archive with the required files:
"C:\Program Files\7-Zip\7zG.exe" a "%A_ScriptDir%\Releases\QuickSwitch 1.0".zip -tzip -sae -- "%A_ScriptDir%\QuickSwitch.ahk" "%A_ScriptDir%\Libs" "%A_ScriptDir%\QuickSwitch.ico"
For compilation, you need to select the .exe AHK v1.1.+ with Unicode support. They can be found here:
C:\Program Files\AutoHotkey\v1.1.37.02\AutoHotkeyU64.exe
C:\Program Files\AutoHotkey\v1.1.37.02\AutoHotkeyU32.exe
# version may vary
Directives are used for compilation, but it can be set manually at each compilation using the ahk2exe GUI
. But this is inconvenient because you will need to manually perform different actions each time you run it and you lose the benefits of directives:
Script compiler directives allow the user to specify details of how a script is to be compiled via Ahk2Exe. Some of the features are:
- Ability to change the version information (such as the name, description, version...).
- Ability to add resources to the compiled script.
- Ability to tweak several miscellaneous aspects of compilation.
- Ability to remove code sections from the compiled script and vice versa.
- Auto-check for update (lib and setting)
- AutoSwitch on clipboard change
- Drag and drop any file field
- Pin favourite paths
QTTabBar
(get all tabs)Autohotkey v2
port- New file managers support