Updated QuickSwitch [AutoHotkey]

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

Re: Updated QuickSwitch [AutoHotkey]

Post by Raf »

Menu may not be displayed if the target app with file dialog is launched as an administrator. To fix these problem, you should run QuickSwitch as admin or restart the target application without admin permission. This is also true for file managers. The details are explained here and here.

I won't add additional checks: is the QuickSwitch, file dialog or any file manager is running as administrator? I also won't add a check to see if the path is valid or virtual. The check must be performed anew each time for each application that QuickSwitch interacts with. It kills performance. If you know a fast algorithm without adding hwnds to the array of checked windows, please open the PR or "code review" issue.

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

Re: Updated QuickSwitch [AutoHotkey]

Post by Raf »

QuickSwitch v1.5

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
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.gif

Menu settings
  • Always Auto Switch: always changes the path. But you can disable this mode for specific windows using "auto switch" Menu option (#64).
    autoswitch.gif
  • 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
    settings.gif


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).
To see the attached files, you need to log into the forum.

Filehero
Posts: 2734
Joined: 27 Feb 2012 18:50
Location: Windows 11@100%

Re: Updated QuickSwitch [AutoHotkey]

Post by Filehero »

I'm already running 1.4.12. So for, so good. And a nice new icon. :-)

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

Re: Updated QuickSwitch [AutoHotkey]

Post by Raf »

Filehero wrote: ↑30 Apr 2025 20:25 Many thanks, Raf! :D
Its wonderful! If you can, please try the βeta v1.4.11
I've added ability to restart all Explorer windows on system error and 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.

Filehero
Posts: 2734
Joined: 27 Feb 2012 18:50
Location: Windows 11@100%

Re: Updated QuickSwitch [AutoHotkey]

Post by Filehero »

Finally got around to install it and got it working (an early version didn't work, but I didn't spent more time on it).

And finally something bringing back some file-ex (no https/TLS url!) vibes! Great! :tup:

Many thanks, Raf! :D

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

Re: Updated QuickSwitch [AutoHotkey]

Post by Raf »

βeta v1.4.9
  • Improved Auto Switch and path selection speed.
  • Improved logging messages.
  • Improved file dialog errors displaying.
  • Improved code readability.
  • Fixed menu re-appear after disabling Auto Switch.

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

Re: Updated QuickSwitch [AutoHotkey]

Post by Raf »

βeta v1.4.8
  • Added dialog name to the "Debug" window.
  • You can export dialog info and read internal and visible dialog name in the exported file.
  • Added .ahk source code archives for all stable βeta versions. Now you can choose any version and run/compile it manually.
  • Reduced the timeout of waiting for XYplorer paths (now empty menu appears faster so you can quickly open XY again and switch back to the dialog).
  • Fixed checking for dialog buttons.

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

Re: Updated QuickSwitch [AutoHotkey]

Post by Raf »

xy123 wrote: ↑25 Apr 2025 18:35 Maybe IDM?
It have hidden Edit fields, buttons and tree so QuickSwitch treats it as dialog :D
Sad, but that's not even ListView...

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

Re: Updated QuickSwitch [AutoHotkey]

Post by Raf »

βeta v1.4.7
Added "Show Menu always" and "Show menu after path selection" options in "Menu settings".

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

Re: Updated QuickSwitch [AutoHotkey]

Post by Raf »

xy123 wrote: ↑25 Apr 2025 18:35 When I open its interface, QuickSwitch shows the menu.
Thank you, I'll take a look!

xy123
Posts: 217
Joined: 17 Sep 2017 11:46
Location: Win10 64-bit, @100%

Re: Updated QuickSwitch [AutoHotkey]

Post by xy123 »

Maybe IDM? https://www.internetdownloadmanager.com/download.html

When I open its interface, QuickSwitch shows the menu.

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

Re: Updated QuickSwitch [AutoHotkey]

Post by Raf »

I've changed some code for ListView dialogs. But I cant test it. Can you recommend some apps with ListView file dialog?

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

Re: Updated QuickSwitch [AutoHotkey]

Post by Raf »

βeta v1.4.6
Added "Close old dialog" option in "Menu settings". Some old dialogs are immediately closed after changing the path.

Fixed regressions:
  • General (common dialog) closed immediately after opening if “Auto Switch” was enabled.
  • The menu did not open after closing the settings.

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

Re: Updated QuickSwitch [AutoHotkey]

Post by Raf »

xy123 wrote: ↑23 Apr 2025 21:18 Did you try it with https://www.softpedia.com/get/System/Fi ... Sync.shtml?
I can't add it because there's no Edit field.
error0.png
error.png
And I cant send full path to the tree. It ignores any messages.
To see the attached files, you need to log into the forum.

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

Re: Updated QuickSwitch [AutoHotkey]

Post by Raf »

βeta v1.4.5
  • Added "always Auto Switch" setting
  • Changed "Show menu..." and "Open menu..." ini param names (please change them again in settings)
  • Simplified determining file dialog type
  • Fixed switching between Menu options

Post Reply