Updated QuickSwitch [AutoHotkey]

Discuss and share scripts and script files...
Post Reply
Raf
Posts: 32
Joined: 31 Jul 2024 15:34

Updated QuickSwitch [AutoHotkey]

Post by Raf »

Have you ever wanted to integrate XYplorer into your system? Quickly Switch to the tabs open in XYplorer when you select files? Use the full potential of Rapid Access Folders and reduce the amount of information displayed?

I really wanted to add all this. I present to you a modification of the famous QuickSwitch with extended support for XYplorer:


https://github.com/JoyHak/QuickSwitch/releases


About
QuickSwitch allows you to switch file dialogs (like Save As or Open) to any folder opened in supported file managers (File Explorer, Directory Opus, Total Commander, XYPlorer).
menu.gif
menu.gif (2 MiB) Viewed 687 times
(3).png
(3).png (72.71 KiB) Viewed 810 times
It has two modes:

1. Menu mode: displays a list of opened folders. Selecting one switches the file dialog to that folder. The menu won't appear if no folders are open.

2. AutoSwitch mode: the file dialog automatically opens the last active folder in the file manager when you Alt-Tab between them. If the file manager was active before opening the dialog, it opens that folder immediately. You can still use Ctr+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, which manage their own folders.

Extended support for XYplorer

- If you open a Rapid Access Folder or a virtual path (Rapid/Music, Downloads), it can be displayed instead of the full path.
- The menu will display the paths from all open folders starting from the current one. Previously, only 1 path was displayed.

Installation

1. Download the latest version.
Subscribe to releases so you don't miss critical updates!
2. Run .exe for your CPU architecture and check it's existence in the tray.

3. Open different folders in a supported file manager.
E.g., open C:\ in Explorer.
4. Open any application and try to open\save a file using it.
E.g., open Notepad then File - Open.... Or try downloading any file.
5. Press Ctrl+Q and look at the paths in the menu that opens. All folders opened in supported file managers will be displayed here.
From any similar dialog box, from any application, you can quickly navigate to these folders using this menu and save\open a file from them.
6. Explore the available options in the menu, open the settings and experiment with them. Choose a convenient style and logic of the menu!
(4).png
(4).png (71.3 KiB) Viewed 810 times


To-Do
  • auto-check for update (lib and setting)
  • AutoSwitch on clipboard change
  • drag and drop any file field
  • change main hotkey in settings
  • Xyplorer history
  • Pin favourite paths
  • Explorer:
    • QTTabBar tabs
    • Win11 support
    • MRU
Need help with:
  • Autohotkey v2 port
  • File managers:
    • tabs from all panes
    • new commands to avoid using clipboard
    XYplorer receives a command using DllCall and sends the XYdata directly to RAM, from where Autohotkey reads it
Last edited by Raf on 03 Feb 2025 23:41, edited 2 times in total.

Raf
Posts: 32
Joined: 31 Jul 2024 15:34

Re: Updated QuickSwitch [AutoHotkey]

Post by Raf »

The script has been successfully finalised and compiled!
Attachments
settings.gif
settings.gif (1.64 MiB) Viewed 687 times

Horst
Posts: 1202
Joined: 24 Jan 2021 12:27
Location: Germany

Re: Updated QuickSwitch [AutoHotkey]

Post by Horst »

This script isn't ready for use.
1. It assumes that Autohotkey is installed under program files
My path is c:\Tools\Autohotkey
I changed the source and compiled it for AHK version 1
using the actual installed Autohotkey versions.
It compiled successfully but produces error message using it.
After this, it displays its selection screen in unreadable colors for my dark mode settings.
Also, it's a bad idea to make the file name version specific as this invalidates any start-up link.

No such problems with the official latest Quick Switch version.
Screenshot - 05.02.2025 , 14_46_55.png
Screenshot - 05.02.2025 , 14_46_55.png (7.26 KiB) Viewed 519 times
Screenshot - 05.02.2025 , 14_47_08.png
Screenshot - 05.02.2025 , 14_47_08.png (7.57 KiB) Viewed 519 times
Windows 11 Home, Version 24H2 (OS Build 26100.3037)
Portable XYplorer (Actual version, including betas)
Everything 1.5.0.1391a (x64), Everything Toolbar 1.5.1, Listary Pro 6.3.1.85

Raf
Posts: 32
Joined: 31 Jul 2024 15:34

Re: Updated QuickSwitch [AutoHotkey]

Post by Raf »

Horst wrote: 05 Feb 2025 15:00 It assumes that Autohotkey is installed under program files
My path is c:\Tools\Autohotkey
This is written in the Readme: https://github.com/JoyHak/QuickSwitch?t ... #compiling

It is better to use the AHK script to run it, as it automatically detects the AHK directory bc it is defined in the system registry.
After this, it displays its selection screen in unreadable colors for my dark mode settings.
Send a screenshot please. I plan to change the default colors to the system colors.
Also, it's a bad idea to make the file name version specific as this invalidates any start-up link.
I didn't understand the problem.
No such problems with the official latest Quick Switch version.
I forgot to add a variable. Added to To-do for correction. There will be a release tomorrow with additional improvements including dialog boxes.

Horst
Posts: 1202
Joined: 24 Jan 2021 12:27
Location: Germany

Re: Updated QuickSwitch [AutoHotkey]

Post by Horst »

Raf wrote: 05 Feb 2025 20:59
Horst wrote: 05 Feb 2025 15:00 It assumes that Autohotkey is installed under program files
My path is c:\Tools\Autohotkey
This is written in the Readme: https://github.com/JoyHak/QuickSwitch?t ... #compiling

It is better to use the AHK script to run it, as it automatically detects the AHK directory bc it is defined in the system registry.
After this, it displays its selection screen in unreadable colors for my dark mode settings.
Send a screenshot please. I plan to change the default colors to the system colors.
Also, it's a bad idea to make the file name version specific as this invalidates any start-up link.
I didn't understand the problem.
No such problems with the official latest Quick Switch version.
I forgot to add a variable. Added to To-do for correction. There will be a release tomorrow with additional improvements including dialog boxes.
My Autohotkey path is known by the system, using the official installer.
That doesn't help with your script when I use Compile script or Compile script (GUI)
on the context menu of the AHK source.
I always compile any AHK scripts for myself.

Your description says that file names must include the version
for which I don't see any technical reason.

I will check with your new version and also send a screenshot after testing it.
Windows 11 Home, Version 24H2 (OS Build 26100.3037)
Portable XYplorer (Actual version, including betas)
Everything 1.5.0.1391a (x64), Everything Toolbar 1.5.1, Listary Pro 6.3.1.85

Raf
Posts: 32
Joined: 31 Jul 2024 15:34

Re: Updated QuickSwitch [AutoHotkey]

Post by Raf »

I always compile any AHK scripts for myself.
Understood. I cannot simplify this process due to limitations in the capabilities of the Ahk2Exe-Base directive.
Your description says that file names must include the version
for which I don't see any technical reason.
This is done to simplify my development and compilation. The version is specified once only in the file name. The file name is then used as a universal variable in the compilation directives because it is the only suitable variable due to the limitations of the ahk2exe directives.

But it will be removed from the configuration name and .lnk file.
I will check with your new version and also send a screenshot after testing it.
Cool, I'm still working on various improvements!

Post Reply