Updated QuickSwitch [AutoHotkey]

Discuss and share scripts and script files...
Post Reply
FoxWMulder
Posts: 28
Joined: 29 Sep 2023 03:33

Re: Updated QuickSwitch [AutoHotkey]

Post by FoxWMulder »

1.8.6 no bug! :)
Great job!

And I will also make a suggestion: setting the shift of the menu along the X axis relative to the dialog box. Because if the menu is large in width, it closes the list of files.

Another suggestion: the ability to hide the "AutoSwitch" and "Blacklist" items from the menu.

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

Re: Updated QuickSwitch [AutoHotkey]

Post by Raf »

QuickSwitch βeta 1.8.6
Fixed regressions
  • Fixed Menu Settings window positioning.
  • Fixed Menu positioning after pressing Ctrl+Shift+Win+0.
  • After enabling "AutoSwitch" option, the file dialog may have closed (#77).
Fixed bugs
  • The Menu displayed incorrect paths from Xyplorer after disabling the (show) locked tabs option on Settings > Theme tab.
  • The Menu displayed system and special directories (e.g. Recycle Bin) that did not work.
  • Some localized paths (depending on the system language) did not work (e.g. C:\Benutzer, C:\Användare, ...) (#98).

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

Re: Updated QuickSwitch [AutoHotkey]

Post by Raf »

FoxWMulder wrote: ↑02 Dec 2025 11:23 I found the condition under which this bug appears and does not appear. IF I have XYplorer open with the "This PC" tab PINNED, then when the save dialog opens, it closes saving a file named "This PC". If the tab with "This PC" is not fixed or the tab with the name "This PC" is not open, then there is no bug!
I tried to fix this issue in version 1.4.6. You can also change the tab number that AutoSwitchwill activate. Open Settings > Menu tab.

FoxWMulder
Posts: 28
Joined: 29 Sep 2023 03:33

Re: Updated QuickSwitch [AutoHotkey]

Post by FoxWMulder »

Raf wrote: ↑02 Dec 2025 11:51 What version of XYplorer are you using?
27.00.01.00
Raf wrote: ↑02 Dec 2025 11:51 Instead, open Settings > Theme tab, find Show sections in Menu text and uncheck locked tabs below it.
This option is disabled by default and I have not enabled it.

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

Re: Updated QuickSwitch [AutoHotkey]

Post by Raf »

FoxWMulder wrote: ↑02 Dec 2025 11:23 IF I have XYplorer open with the "This PC" tab PINNED, then when the save dialog opens, it closes saving a file named "This PC".
Very interesting... What version of XYplorer are you using?

I recommend not changing the source code. Instead, open Settings > Theme tab, find Show sections in Menu text and uncheck locked tabs below it.

FoxWMulder
Posts: 28
Joined: 29 Sep 2023 03:33

Re: Updated QuickSwitch [AutoHotkey]

Post by FoxWMulder »

Can you select path from the Menu?
Yes, I do.

I do not know exactly how it works, but I found the condition under which this bug appears and does not appear. Everything works with Windows Explorer. IF I have XYplorer open with the "This PC" tab PINNED, then when the save dialog opens, it closes saving a file named "This PC". If the tab with "This PC" is not fixed or the tab with the name "This PC" is not open, then there is no bug! Try opening "This PC" in XYplorer and reproduce the bug. And one more condition: The "This PC" tab should be on the far left. And the focus in XYplorer is on the panel where this tab is open.

https://jumpshare.com/s/NFKtYoZueJbwF0WJmD1e

if change the code:

Code: Select all

    if (_path = path) {
        ; Successfully changed

        ControlSend,, % "{Enter}", % "ahk_id " editId

        ; Restore filename
        ControlFocus,, % "ahk_id " editId
        ControlSetText,, % _fileName, % "ahk_id " editId
        return true
    }
to:

Code: Select all

if (_path = path) && (path != "This PC") {
        ; Successfully changed

        ControlSend,, % "{Enter}", % "ahk_id " editId

        ; Restore filename
        ControlFocus,, % "ahk_id " editId
        ControlSetText,, % _fileName, % "ahk_id " editId
        return true
    }
    return false
}
then the "save" button is not pressed automatically, but AutoSwitch stops working (at least with XYplorer open).

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

Re: Updated QuickSwitch [AutoHotkey]

Post by Raf »

FoxWMulder wrote: ↑01 Dec 2025 17:11done
I don't see any internal diffs between stock and modified dialogs... Can you select path from the Menu?

AutoSwitch internally works the same way as selecting a path from the Menu: the contents of the Edit1 control (the field to the right of filename) is replaced with the path. If the contents of Edit1 is the same as the path (the contents have been successfully replaced), the Enter key is sent to this control, causing the path in the dialog to change.

In your case, the Enter activates Button2 (Save as) instead of Edit1... This should be fixed in 1.8.5 but idk why it doesn't work for you.
To see the attached files, you need to log into the forum.

FoxWMulder
Posts: 28
Joined: 29 Sep 2023 03:33

Re: Updated QuickSwitch [AutoHotkey]

Post by FoxWMulder »

done
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 »

FoxWMulder wrote: ↑01 Dec 2025 00:02 I have a modified file save dialog.
Interesting. Please disable AutoSwitch (or set AutoSwitch param in the QuickSwitch.INI to 0 or remove [Dialogs] section), open modified file dialog, open the Menu, then Menu settings. Press Debug button at the top of the settings and then press Export button.

In your QuickSwitch directory .csv file will appear. Find it and attach here please. Or press Add files here and paste path to the .csv in the appeared dialog near the filename field (it's already in the clipboard) then press Open.

FoxWMulder
Posts: 28
Joined: 29 Sep 2023 03:33

Re: Updated QuickSwitch [AutoHotkey]

Post by FoxWMulder »

I tried version 1.8.5
With no changes. In all programs, if AutoSwitch is enabled, the "save" button is pressed automatically a second after opening the dialog box. I guess that's the case. I have a modified file save dialog. Below are screenshots of my version and the stock version. Pay attention to the left side of the save dialog. I haven't looked at the source code, but I assume the program is based on the elements in the dialog box. From their class handle etc. And since I have a modified dialog, the logic of the program breaks down.

Windows 11

I have this dialog:
https://jumpshare.com/embed/Ygx6YqQy62o9cISWAS7j

It stock windows dialog:
https://jumpshare.com/embed/VVkLvc5CJzYYrG4JEnMh

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

Re: Updated QuickSwitch [AutoHotkey]

Post by Raf »

FoxWMulder wrote: ↑27 Nov 2025 02:07 Why if turn on "always auto switch" when the save dialog opens, the "Save" button is automatically clicked?
Should be fixed in version 1.8.5, please try it. Always AutoSwitch option should enable AutoSwitch for all file dialogs. You can disable/enable AutoSwitch in specific file dialogs if you want: open File Dialog, open Menu and select AutoSwitch item. It will enable/disable AutoSwitch for current File Dialog and Always AutoSwitch option wouldn't affect it.

FoxWMulder
Posts: 28
Joined: 29 Sep 2023 03:33

Re: Updated QuickSwitch [AutoHotkey]

Post by FoxWMulder »

Raf wrote: ↑28 Nov 2025 12:37In which application did you open Save As file dialog?
Vivaldi Browser

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

Re: Updated QuickSwitch [AutoHotkey]

Post by Raf »

FoxWMulder wrote: ↑27 Nov 2025 02:07 Why if turn on "always auto switch" when the save dialog opens, the "Save" button is automatically clicked?
Sounds like a bug. In which application did you open Save As file dialog?

FoxWMulder
Posts: 28
Joined: 29 Sep 2023 03:33

Re: Updated QuickSwitch [AutoHotkey]

Post by FoxWMulder »

I tried 1.8.4
I don't understand two things, I'm comparing it with version 1.4.:
1) Why if turn on "always auto switch" when the save dialog opens, the "Save" button is automatically clicked?
2) At the same time, if earlier the path in the address bar of the dialog box changed depending on which folder is open in XYplorer, now it does not work. Why?

Maybe I didn't understand how to configure it to work this way?

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

Re: Updated QuickSwitch [AutoHotkey]

Post by Raf »

QuickSwitch βeta 1.8.3: changelog since release

Features
Total Commander speed up
  • Increased the speed of receiving and analyzing tabs
  • Increased the speed of creating the user-defined command required for QuickSwitch (in usercmd.ini).
  • Reduced disk load.
File dialogs speed up
  • Increased the speed of determining the type of file dialog and Menu display.
  • Reduced the number of menu appearances in incorrect applications (false-positives). To do this, the old SysListView dialog was deleted.
Change AutoSwitch target
  • You can choose which path AutoSwitch should switch to: pinned, favorite, ... (see details about the special paths here). You can enable Always AutoSwitch option and select "PinnedPaths" as the target. Then AutoSwitch will always open the pinned path.
Menu display speed up after:
  • pressing main hotkey (Ctrl+Q by default);
  • selecting any item or option (path, AutoSwitch, ...);
  • performing AutoSwitch.

Other features
  • After enabling ShortPath > Show short path... option, 1st letter in the will be underlined. Press this letter on your keyboard to activate this path in the menu (see more about keys here). For example: S̲ystem32\Resources – press S to activate this path.
  • Open "Menu settings" and press Debug button to see all controls of the active window. Press Export to save this data to the readable file.

Fixed bugs
  • After turning on (always) AutoSwitch, the menu appeared twice.
  • After disabling the option Theme > File manager paths > (Show) locked tabs, the active Total Commander tab was displayed.
  • The inability to unpin a path (see pinned paths).
Fixed annoyances
  • After enabling "AutoSwitch" option, the file dialog may have closed (#77).
  • The Menu might not close and stay above all windows after pressing Esc or clicking anywhere (#88, #94).
  • The Menu sometimes didn't appear when the file dialog was opened.

Post Reply