QuickSwitch

General discussion related to "Everything".
DaWolfi
Posts: 31
Joined: Fri Jul 22, 2022 3:08 pm

Re: QuickSwitch

Post by DaWolfi »

horst.epp wrote: Sat Jul 23, 2022 11:38 am Nice enhancement.
Thank you!
The only thing I had to change was the logic to find JumpToFolder.
How did you solve that?
What I never would do is to hide the icon of QuickSwitch by default
as this will confuse a lot of users.
To be honest - I forgot to reacivate it before publishing...
(Personally I only use Icons while testing)
DaWolfi
Posts: 31
Joined: Fri Jul 22, 2022 3:08 pm

Re: QuickSwitch

Post by DaWolfi »

tuska wrote: Sat Jul 23, 2022 11:42 am Thanks for sharing! :)
You're welcome! :)
horst.epp
Posts: 1344
Joined: Fri Apr 04, 2014 3:24 pm

Re: QuickSwitch

Post by horst.epp »

DaWolfi wrote: Sat Jul 23, 2022 1:05 pm Thank you!
The only thing I had to change was the logic to find JumpToFolder.
How did you solve that?
I prefer not to install tools under program files but in a central c:\tools dir.
So I ask on the first run about the location of JumpToFolder.exe and store it in the ini file.
NotNull
Posts: 5260
Joined: Wed May 24, 2017 9:22 pm

Re: QuickSwitch

Post by NotNull »

DaWolfi wrote: Fri Jul 22, 2022 9:48 pm
  • Added new types of file dialogs
    (e.g. needed for some Autodesk products)
Have not looked at your code yet, but sounds good!
I might reach out to you regarding this, because that would mean JumpToFolder needs to be updated to support this type of dialogs too.
(and I don't have access to these AutoDesk applications myself at the moment).
DaWolfi
Posts: 31
Joined: Fri Jul 22, 2022 3:08 pm

Re: QuickSwitch

Post by DaWolfi »

horst.epp wrote: Sat Jul 23, 2022 8:04 pm So I ask on the first run about the location of JumpToFolder.exe and store it in the ini file.
😱 oops, that reminded me that compiled scripts have to be considered as well...

QuickSwitch-0.5dw2.zip
(27.19 KiB) Downloaded 1190 times
DaWolfi
Posts: 31
Joined: Fri Jul 22, 2022 3:08 pm

Re: QuickSwitch

Post by DaWolfi »

NotNull wrote: Sat Jul 23, 2022 8:41 pm I might reach out to you regarding this, because that would mean JumpToFolder needs to be updated to support this type of dialogs too.
(and I don't have access to these AutoDesk applications myself at the moment).
Today I added the necessary code to JumpToFolder
I tested it with different applications and it seems to work.
I'll upload the file to the JumpToFolder topic, so everybody can have a look and try it out.
horst.epp
Posts: 1344
Joined: Fri Apr 04, 2014 3:24 pm

Re: QuickSwitch

Post by horst.epp »

I like this new version of QuickSwitch. :D
As Listary has resumed to be updated.
I have now 3 options while in an Open/Save dialog.
- Listary shows the current file manager dir below the dialog and also allows any search.
- Ctrl-Q opens the QuickSwitch dialog with the 2 sides of Total Commander or XYplorer.
- Ctrl-J opens JumpToFolder and I can find the place to go with Everything.
tuska
Posts: 932
Joined: Thu Jul 13, 2017 9:14 am

Re: QuickSwitch

Post by tuska »

Hi,
I would like to point out that I have the following problem with version QuickSwitch-0.5dw2.
  1. Change to the desired directory in Total Commander (File manager)
  2. Press Alt+Tab to switch back to the FastStone Editor (FastStone Capture).
  3. Press Ctrl+S to save a .png file
  4. Cursor starts flickering (approx. 10 times or more)
  5. File name is suggested, e.g. 2022-08-09_165749.png => OK!
  6. Change back to Total Commander with ALT+Tab (e.g. to put the focus on the right window)
  7. Change back to FastStone Capture with ALT+TAB.
  8. In the "Save as..." dialogue the path is now suggested instead of the file name,
    e.g. C:\totalcmd\Tools\AutoHotkey\Scripts\QuickSwitch\Backup\
This problem does not occur with QuickSwitch_2022-04-03_v05_x64.exe.
DaWolfi
Posts: 31
Joined: Fri Jul 22, 2022 3:08 pm

Re: QuickSwitch

Post by DaWolfi »

tuska wrote: Tue Aug 09, 2022 3:20 pm Hi,
I would like to point out that I have the following problem with version QuickSwitch-0.5dw2.
  1. Change to the desired directory in Total Commander (File manager)
  2. Press Alt+Tab to switch back to the FastStone Editor (FastStone Capture).
  3. Press Ctrl+S to save a .png file
  4. Cursor starts flickering (approx. 10 times or more)
  5. File name is suggested, e.g. 2022-08-09_165749.png => OK!
  6. Change back to Total Commander with ALT+Tab (e.g. to put the focus on the right window)
  7. Change back to FastStone Capture with ALT+TAB.
  8. In the "Save as..." dialogue the path is now suggested instead of the file name,
    e.g. C:\totalcmd\Tools\AutoHotkey\Scripts\QuickSwitch\Backup\
This problem does not occur with QuickSwitch_2022-04-03_v05_x64.exe.
I've added a quick fix for this issue. Should work now, but has to be further investigated regarding other apps.
QuickSwitch-0.5dw3.zip
(27.03 KiB) Downloaded 1022 times
tuska
Posts: 932
Joined: Thu Jul 13, 2017 9:14 am

Re: QuickSwitch

Post by tuska »

DaWolfi wrote: Thu Aug 11, 2022 6:31 pm I've added a quick fix for this issue. Should work now, but has to be further investigated regarding other apps.
QuickSwitch-0.5dw3.zip
Thank you for the prompt bugfix for the savings dialog in FastStone Capture! :)

I have tested the following applications:
- FastStone Capture Version 9.7
- EmEditor Professional (64-bit) Version 21.9.0
Microsoft Office LTSC Professional Plus 2021:
- Microsoft® Outlook® LTSC MSO (16.0.14332.20358) 64-Bit
- Microsoft® Word       LTSC MSO (16.0.14332.20358) 64-Bit

I don't want to do such a large-scale test as announced here at the moment.
I use the script almost daily, so if I notice anything I would report it here.

Thank you for your efforts!

Regards,
Karl
_______________________________________________________________________________________
EDIT:
File Open Ctrl+O does NOT work as expected with FastStone Capture.
I.e. after ALT+TAB the path in the "File Open"-dialogue is not automatically adjusted, namely
by Total Commander and Windows Explorer.
Sometimes after multiple(!) ALT+TAB the path is shown which had the focus before but not anymore.

Please check.
Thanks!

________________________________________________
Windows 11 Pro (x64) Version 21H2 (OS build 22000.856)
DaWolfi
Posts: 31
Joined: Fri Jul 22, 2022 3:08 pm

Re: QuickSwitch

Post by DaWolfi »

tuska wrote: Thu Aug 11, 2022 10:05 pm Sometimes after multiple(!) ALT+TAB the path is shown which had the focus before but not anymore.

Please check.
Thanks!
I'll check and see if I can figure out why this is happening.

(btw, just out of personal interest: how many tries do you usually need to hit the right folder? :D )

EDIT:
Fortunately the cause was not so difficult to find:
It seems that this specific dialog needs an AutoSwitch Exception.
(Pls. see Exception dialog for more info and how to add an exception)
tuska
Posts: 932
Joined: Thu Jul 13, 2017 9:14 am

Re: QuickSwitch

Post by tuska »

DaWolfi wrote: Fri Aug 12, 2022 4:16 pm (btw, just out of personal interest: how many tries do you usually need to hit the right folder? :D )
It depends on how quickly I find the folder on my PC where I want to save the file :D
In Total Commander I use tabs, saved tab sets and have saved many paths in the 'directory hotlist (Ctrl+D)'.
I search for the remaining folders directly in Everything and a double-click on a folder opens this folder in Total Commander.
Only then does QuickSwitch.exe come into play in the "Save as..." or "Open file" dialog.
As a rule, this only takes a few keystrokes and the file is stored where it is supposed to be.
DaWolfi wrote: Fri Aug 12, 2022 4:16 pm Fortunately the cause was not so difficult to find:
It seems that this specific dialog needs an AutoSwitch Exception.
(Pls. see Exception dialog for more info and how to add an exception)
First of all, I must correct the following:
I didn't do any tests for "Open file" dialogues with the "FastStone Capture" tool with QuickSwitch_2022-04-03_v05_x64.exe. :shock:

2022-08-11_QuickSwitch-0.5dw3
Variant 1
In the present test I noticed that the "Open file" dialogue in FastStone Capture works properly,
if at least one hardcopy has already been created and is displayed in the FastStone Editor.

Variant 2
When FastStone Capture is started and after that the "Open File in Editor" button is clicked,
as well as clicking on the menu item "Open Ctrl+O", then the automatic directory entry lags
always one entry behind in the "Open file" dialog.

If I want to use this variant, then an AutoSwitch Exception is required:
QuickSwitch.ini

Code: Select all

[AutoSwitchException]
FSCapture.exe___Open=1
There are two ways to open a file in FastStone Capture via the "Open File" dialog.
I have chosen variant 1 and do not need the "AutoSwitch Exception" in this case.

Thanks for the prompt help!
DaWolfi
Posts: 31
Joined: Fri Jul 22, 2022 3:08 pm

Re: QuickSwitch

Post by DaWolfi »

tuska wrote: Fri Aug 12, 2022 10:16 pm Thanks for the prompt help!
Thank you for your excellent and accurate testing, I really appreciate this support!👍
Can you do me the favor of reviewing my latest changes as well?

I've added a little GUI and moved "Debug this dialog" and "Always open menu" to this dialog.
The AutoSwitch option I left in the menu, because it is probably used more frequently.

You can set the number of MRU folder entries in this dialog too, allowed values are between 0 and 10
If you want to change the background color of the menu or the dialog, you can specify a color value in hex format in the ini file.

Have a nice weekend!

QuickSwitch-0.5dw4.zip
(28.16 KiB) Downloaded 1009 times
tuska
Posts: 932
Joined: Thu Jul 13, 2017 9:14 am

Re: QuickSwitch

Post by tuska »

2DaWolfi
thanks for the new version!

Just a quick test...

When I click on "More Settings..." I get the settings menu.
If I click away this window and call up the settings menu immediately again, I get this error message:
QuickSwitch.exe
Error: The same variable cannot be used for more than one control.

Specifically: vOpenMenuGUI

Line#
---> 778: Gui,Add,CheckBox,x20 y50 w170 h25 gAlwaysOpenMenu vOpenMenuGUI,Always &open Menu

The current thread will exit.
A restart of QuickSwitch.exe is necessary if you want to execute the menu item "More Settings..." again.

Please check.
Thank you!

Have a nice weekend too!
tuska
Posts: 932
Joined: Thu Jul 13, 2017 9:14 am

Re: QuickSwitch

Post by tuska »

2DaWolfi

Ctrl-Q -> More Settings...

QuickSwitch Settings
MRU folder entries (0-10) -> default value: 5 -> new value: 6

Currently, another value can only be set manually, as the value '6' is not saved...
(Entered manually, the value 6 works as expected).

QuickSwitch.ini

Code: Select all

[MenuEntries]
NrOfMRUFolders=5
-------------

Question:
Ctrl+Q and pressing the down arrow key twice positions the cursor on the top entry in the "QuickSwitch Menu".

Can you automatically position the cursor on the top entry? :?:
Then it would be possible to select the path with Ctrl+Q and <ENTER> in a dialoque.
tuska
Posts: 932
Joined: Thu Jul 13, 2017 9:14 am

Re: QuickSwitch

Post by tuska »

DaWolfi wrote: Sun Aug 14, 2022 10:09 am If you want to change the background color of the menu or the dialog, you can specify a color value in hex format in the ini file.
QuickSwitch-0.5dw4.zip
QuickSwitch.ini - DEFAULT values

Code: Select all

[Colors]
GuiBGColor=0xF5F5F5
MenuBGColor=0xC0C59C
FastStone Capture has a "Screen Color Picker". I used this to determine the Hex value. (Hex values can also be determined in "Paint").
 
2022-08-14_FastStone Capture_Screen Color Picker.png
2022-08-14_FastStone Capture_Screen Color Picker.png (92.24 KiB) Viewed 190546 times
I have used the following Hex values:

Code: Select all

#FF2323  or  FF2323 ... red
#106EBE  or  106EBE ... blue
Here is a Table of color which also uses such values (#...).
None of my colors have changed after I changed the entries in QuickSwitch.ini and then restarted the QuickSwitch.exe.

EDIT:
Got it!
I have to put 0x in front of the hex value, e.g. FE6B00 ==> 0xFE6B00.

Code: Select all

[Colors]
GuiBGColor=0xFE6B00	;Ctrl+Q -> "More settings..." -> QuickSwitch Settings -> New background color available!
MenuBGColor=0x106EBE	;Ctrl+Q -> Here I only see a frame on the left and right and the horizontal line is coloured.
				   However, there is no background colour! <==
Please check -> MenuBGColor.

Thank you!
DaWolfi
Posts: 31
Joined: Fri Jul 22, 2022 3:08 pm

Re: QuickSwitch

Post by DaWolfi »

2tuska
Here we go:
tuska wrote: Sun Aug 14, 2022 12:41 pm When I click on "More Settings..." I get the settings menu.
If I click away this window and call up the settings menu immediately again, I get this error message:
fixed
Currently, another value can only be set manually, as the value '6' is not saved...
(Entered manually, the value 6 works as expected).
fixed
Question:
Can you automatically position the cursor on the top entry? :?:
Then it would be possible to select the path with Ctrl+Q and <ENTER> in a dialoque.
not done yet, seems to be not that easy...
Please check -> MenuBGColor.
fixed and added colors to settings dialog

added reset button to settings dialog

QuickSwitch.0.5dw5.zip
(28.73 KiB) Downloaded 972 times
tuska
Posts: 932
Joined: Thu Jul 13, 2017 9:14 am

Re: QuickSwitch

Post by tuska »

2DaWolfi
Thanks for the corrections and additions in QuickSwitch.0.5dw5 - I am still testing.

I am unsure about MenuBGColor -> QuickSwitch Menu.
Is this what you have in mind for the background colour? (I have used the default values).
... frame on the left and right and the horizontal line is coloured ...
 
2022-08-15_QuickSwitch.0.5dw5_Colors_DEFAULT.png
2022-08-15_QuickSwitch.0.5dw5_Colors_DEFAULT.png (44.05 KiB) Viewed 190443 times
tuska
Posts: 932
Joined: Thu Jul 13, 2017 9:14 am

Re: QuickSwitch

Post by tuska »

DaWolfi wrote: Mon Aug 15, 2022 10:08 am
tuska wrote: Sun Aug 14, 2022 12:41 pm When I click on "More Settings..." I get the settings menu.
If I click away this window and call up the settings menu immediately again, I get this error message:
fixed
Confirm fixed in 2022-08-15_QuickSwitch.0.5dw5 :)
DaWolfi wrote: Mon Aug 15, 2022 10:08 am
Currently, another value can only be set manually, as the value '6' is not saved...
(Entered manually, the value 6 works as expected).
fixed
Not confirmed.
QuickSwitch.ini
[Menu]
AlwaysUseMenu=Yes
NrOfMRUFolders=5
AlwaysOpenMenu=0

[MenuEntries]
AlwaysOpenMenu=1
NrOfMRUFolders=5 -> only manually changeable in 2022-08-15_QuickSwitch.0.5dw5

How could you change that?
I assume that you have tested this?


------------------------------
I have tested the buttons and the option box in the "QuickSwitch Settings" dialogue:
The buttons work and the option box for "Always open Menu" changes an entry in QuickSwitch.ini - whatever effect this has.
------------------------------
DaWolfi wrote: Mon Aug 15, 2022 10:08 am
Question:
Can you automatically position the cursor on the top entry? :?:
Then it would be possible to select the path with Ctrl+Q and <ENTER> in a dialoque.
not done yet, seems to be not that easy...
NotNull has already cut its teeth on this topic. :lol:
But I thought I would ask you anyway, as it would be a great relief for me in my daily work.
Last edited by tuska on Mon Aug 15, 2022 12:16 pm, edited 1 time in total.
horst.epp
Posts: 1344
Joined: Fri Apr 04, 2014 3:24 pm

Re: QuickSwitch

Post by horst.epp »

DaWolfi wrote: Mon Aug 15, 2022 10:08 am ...
QuickSwitch.0.5dw5.zip
Works fine here but the More settings screen needs an ok or apply button.
Currently one must enter a value and terminate it with enter to get the new value saved.
We see on Tuska's post that he doesn't know this ;)
DaWolfi
Posts: 31
Joined: Fri Jul 22, 2022 3:08 pm

Re: QuickSwitch

Post by DaWolfi »

tuska wrote: Mon Aug 15, 2022 10:42 am 2DaWolfi
I am unsure about MenuBGColor -> QuickSwitch Menu.
Is this what you have in mind for the background colour? (I have used the default values).
... frame on the left and right and the horizontal line is coloured ...
Basically yes, but I don't know yet why the MenuBGColor only applies to the borders and the horizontal line on your system :?
This is how it looks like on my system (win11 home 64bit)
Menu.png
Menu.png (14.5 KiB) Viewed 190428 times
GUI.png
GUI.png (9.49 KiB) Viewed 190428 times
DaWolfi
Posts: 31
Joined: Fri Jul 22, 2022 3:08 pm

Re: QuickSwitch

Post by DaWolfi »

horst.epp wrote: Mon Aug 15, 2022 12:14 pm Works fine here but the More settings screen needs an ok or apply button.
Currently one must enter a value and terminate it with enter to get the new value saved.
We see on Tuska's post that he doesn't know this ;)
Of course, sorry for that one.
As you can see I'm a bit lazy about adding descriptions sometimes... :lol:
DaWolfi
Posts: 31
Joined: Fri Jul 22, 2022 3:08 pm

Re: QuickSwitch

Post by DaWolfi »

tuska wrote: Mon Aug 15, 2022 12:13 pm Not confirmed.
QuickSwitch.ini
[Menu]
AlwaysUseMenu=Yes
NrOfMRUFolders=5
AlwaysOpenMenu=0

[MenuEntries]
AlwaysOpenMenu=1
NrOfMRUFolders=5 -> only manually changeable in 2022-08-15_QuickSwitch.0.5dw5

How could you change that?
I assume that you have tested this?
I forgot to reset the INI section "MenuEntries" back to "Menu" in V4.
The correct and testet INI structure is like in V5:

[Dialogs]
[Menu]
AlwaysOpenMenu=1 ; 0 or 1
NrOfMRUFolders=5
[Colors]
GuiBGColor=0xF5F5F5
MenuBGColor=0xC0C59C
[AutoSwitchException]
tuska
Posts: 932
Joined: Thu Jul 13, 2017 9:14 am

Re: QuickSwitch

Post by tuska »

2Horst.Epp
You cunning fox saw through that immediately, of course. :D

2DaWolfi
MenuBGColor

I have now tested the "QuickSwitch Menu" again with a different colour - no success.
In "QuickSwitch Settings" the colour can be changed successfully (as before).
________________________________________________
Windows 11 Pro (x64) Version 21H2 (OS build 22000.856)
Monitor 24", native resolution: 1920 x 1280 pixels | Scaling Settings: Scaling size 125%, 100%
 
DaWolfi wrote: Mon Aug 15, 2022 12:26 pm I forgot to reset the INI section "MenuEntries" back to "Menu" in V4.
The difference would have been my next question - but you were quicker with your answer. :)
DaWolfi
Posts: 31
Joined: Fri Jul 22, 2022 3:08 pm

Re: QuickSwitch

Post by DaWolfi »

tuska wrote: Mon Aug 15, 2022 12:13 pm
DaWolfi wrote: Mon Aug 15, 2022 10:08 am
Question:
Can you automatically position the cursor on the top entry? :?:
Then it would be possible to select the path with Ctrl+Q and <ENTER> in a dialoque.
not done yet, seems to be not that easy...
NotNull has already cut its teeth on this topic. :lol:
But I thought I would ask you anyway, as it would be a great relief for me in my daily work.
I guess I found a solution while playing around with underlined letters as shortcut keys.
Every folder entry in the menu gets its own number, marked as shortcut.
So one can select any entry simply by typing its number right after the menu is displayed:

Menu2.png
Menu2.png (24.42 KiB) Viewed 190382 times

This works not only for the menu entries, but also for the Settings window:

GUI2.png
GUI2.png (13.92 KiB) Viewed 190382 times

After typing ALT, one can select the items by the underlined letter, edit and leave with ENTER (edit fields), or simply leave by hitting ENTER (buttons).
All in all, you don't have to touch the mouse for the entire process!

QuickSwitch-0.5dw6.zip
(28.89 KiB) Downloaded 1013 times
tuska
Posts: 932
Joined: Thu Jul 13, 2017 9:14 am

Re: QuickSwitch

Post by tuska »

2DaWolfi
It would sound very good, because I am a shortcut fan, but...
DaWolfi wrote: Mon Aug 15, 2022 8:19 pm After typing ALT...
the QuickSwitch windows as shown by you are gone ... :?

If it is not possible to automatically select the first (top) entry in the 'QuickSwitch Menu', then I suggest the following:
- QuickSwitch Menu
  Remove the underscores and leave the digits.
- QuickSwitch Settings
  Remove the underscores

In the end, I can also live with the fact that I click on the top entry with the mouse. :)
Thanks for your efforts, anyway!
DaWolfi
Posts: 31
Joined: Fri Jul 22, 2022 3:08 pm

Re: QuickSwitch

Post by DaWolfi »

tuska wrote: Mon Aug 15, 2022 8:39 pm 2DaWolfi
It would sound very good, because I am a shortcut fan, but...
DaWolfi wrote: Mon Aug 15, 2022 8:19 pm After typing ALT...
the QuickSwitch windows as shown by you are gone ... :?
I am sorry if I have expressed myself in a misleading way.
You must not type ALT when the menu is displayed.
This is necessary only in the settings window, if the underscore is not displayed.
Sometimes this happens, I don't know why right now.

I also need to investigate further why the active Total Commander tab is not always found!
horst.epp
Posts: 1344
Joined: Fri Apr 04, 2014 3:24 pm

Re: QuickSwitch

Post by horst.epp »

In version dw6 the numbers in the menu doesn't work for me at all.
Not with Alt and not without it.
I personaly would remove that numbering and stay with version dw5 which works fine.
tuska
Posts: 932
Joined: Thu Jul 13, 2017 9:14 am

Re: QuickSwitch

Post by tuska »

DaWolfi wrote: Tue Aug 16, 2022 5:34 am You must not type ALT when the menu is displayed.
I tried this twice yesterday and it didn't work for some reason.

But today, just pressing the number works fine in the "QuickSwitch Menu". :)
Tested with dialogues from FastStone Capture, EmEditor Pro and Word 2021.

I would still remove the underscores in the "QuickSwitch Menu" as this can cause confusion.

ALT+letter works for me in the "QuickSwitch Settings" window (underscore is displayed).

For me, everything would be fine so far - only MenuBGColor is currently still open for me under Windows 10 Pro.

Thanks for your endeavours!

________________________________________________
Windows 11 Pro (x64) Version 21H2 (OS build 22000.856)
2022-08-15_QuickSwitch-0.5dw6
DaWolfi
Posts: 31
Joined: Fri Jul 22, 2022 3:08 pm

Re: QuickSwitch

Post by DaWolfi »

2horst.epp
horst.epp wrote: Tue Aug 16, 2022 7:04 am In version dw6 the numbers in the menu doesn't work for me at all.
Not with Alt and not without it.
I personaly would remove that numbering and stay with version dw5 which works fine.

Did you try with "AlwaysOpenMenu" enabled/disabled?
On my system the shortcuts are always working, but the underlines are not displayd with "AlwaysOpenMenu" enabled.
Maybe a system related problem?
Does anybody know a possible reason/solution for this behaviour?
DaWolfi
Posts: 31
Joined: Fri Jul 22, 2022 3:08 pm

Re: QuickSwitch

Post by DaWolfi »

2tuska
tuska wrote: Tue Aug 16, 2022 8:40 am I would still remove the underscores in the "QuickSwitch Menu" as this can cause confusion.
I can't remove the underscores, if you want to use the numers to navigate.
They're activating the shortcut (in fact the hidden '&' before the letter/character that should be shown as underscore...), no matter whether they are displayed or not!
For me, everything would be fine so far - only MenuBGColor is currently still open for me under Windows 10 Pro.
Sorry, I haven't found a possible reason for that, but I'll further investigate later on this week.
horst.epp
Posts: 1344
Joined: Fri Apr 04, 2014 3:24 pm

Re: QuickSwitch

Post by horst.epp »

DaWolfi wrote: Tue Aug 16, 2022 8:46 am 2horst.epp
horst.epp wrote: Tue Aug 16, 2022 7:04 am In version dw6 the numbers in the menu doesn't work for me at all.
Not with Alt and not without it.
I personaly would remove that numbering and stay with version dw5 which works fine.

Did you try with "AlwaysOpenMenu" enabled/disabled?
On my system the shortcuts are always working, but the underlines are not displayd with "AlwaysOpenMenu" enabled.
Maybe a system related problem?
Does anybody know a possible reason/solution for this behaviour?
AlwaysOpenMenu is disabled
as I most of the time use the Listary suggestion and Ctrl-Q if I need more.
tuska
Posts: 932
Joined: Thu Jul 13, 2017 9:14 am

Re: QuickSwitch

Post by tuska »

DaWolfi wrote: Tue Aug 16, 2022 8:46 am ... "AlwaysOpenMenu" enabled/disabled?
In the "QuickSwitch Menu" pressing the number works fine regardless of whether the option "Always open Menu" is ticked or not.
Windows 11 Pro (x64) Version 21H2 (OS build 22000.856) | 2022-08-15_QuickSwitch-0.5dw6

What exactly does the option "Always open Menu" do? I don't notice any difference whether I tick the option or not.
DaWolfi wrote: Tue Aug 16, 2022 8:46 am On my system the shortcuts are always working, but the underlines are not displayd with "AlwaysOpenMenu" enabled.
Maybe a system related problem?
Does anybody know a possible reason/solution for this behaviour?
Under Windows 11 Pro (x64) version 21H2 (OS build 22000.856) | 2022-08-15_QuickSwitch-0.5dw6 it is as follows for me:
1. The underscores are always present regardless of whether the option "Always open Menu" is ticked or not.
2. The underscores can be set in Windows 11 Pro as follows:
    Search for: "Underline access keys" -> On (default!) -> Underlining is visible in Total Commander, for example.
    [Total Commander may have to be restarted].
    However, this has no effect on the .AHK script - the underscores are ALWAYS displayed there (Win 11 Pro).

By the way, I don't have a problem with not removing the underscores.
I like this solution even better (press numbers) than the one I suggested (Ctrl+Q and ENTER).

MenuBGColor is also not a problem for me (even if it stays that way).
I am mainly concerned with the function of this tool.
DaWolfi
Posts: 31
Joined: Fri Jul 22, 2022 3:08 pm

Re: QuickSwitch

Post by DaWolfi »

tuska wrote: Tue Aug 16, 2022 10:58 am What exactly does the option "Always open Menu" do? I don't notice any difference whether I tick the option or not.
If this option is enabled, the menu is displayed automatically after a file dialog has opened.
Otherwise one has to use Ctrl+Q to open it manually if needed.
tuska
Posts: 932
Joined: Thu Jul 13, 2017 9:14 am

Re: QuickSwitch

Post by tuska »

DaWolfi wrote: Tue Aug 16, 2022 11:39 am
tuska wrote: Tue Aug 16, 2022 10:58 am What exactly does the option "Always open Menu" do?
I don't notice any difference whether I tick the option or not.
If this option is enabled, the menu is displayed automatically after a file dialog has opened.
Otherwise one has to use Ctrl+Q to open it manually if needed.
Thanks for the prompt info.

This is not happening with me at the moment.
Tested with Word 2021, Outlook 2021, EmEditor Pro, FS Capture, Everything 1.5.0.1315a (x64).
tuska
Posts: 932
Joined: Thu Jul 13, 2017 9:14 am

Re: QuickSwitch

Post by tuska »

DaWolfi wrote: Tue Aug 16, 2022 5:34 am I also need to investigate further why the active Total Commander tab is not always found!
Mmhh, I did a quick test with 3 Total Commander instances and could not find any error so far.
I work exclusively in Total Commander with "Tabs, locked, but directory changes allowed".
matsuru
Posts: 1
Joined: Sun Aug 21, 2022 10:48 am

Re: QuickSwitch

Post by matsuru »

@notnull,

Thank you for developing such a wonderful tool. I have just discover this recently and I am loving it.

I have 1 suggestion which might be useful.
Is it possible for the user to add in some custom folders, for example: desktop.
There are times I would like to save files to the desktop but it doesn't give me the option unless I open the desktop with explorer.
I it would be handy to have the option to add custom folders to the list.

Thank you.
tuska
Posts: 932
Joined: Thu Jul 13, 2017 9:14 am

Re: QuickSwitch

Post by tuska »

When using a file manager, e.g. Total Commander, it is possible to call up these paths to the desktop

Code: Select all

C:\Users\user\Desktop .........	= Desktop User      / user: Your username on your PC
C:\Users\Public\Desktop	.......	= Desktop Public
... and use QuickSwitch-0.5dw6 - 2022-08-15.

Code: Select all

\\Desktop\ .................... = Virtual folder
... cannot be used with QuickSwitch-0.5dw6 - 2022-08-15.
DaWolfi
Posts: 31
Joined: Fri Jul 22, 2022 3:08 pm

Re: QuickSwitch

Post by DaWolfi »

2horst.epp
I've added "OK" and "Cancel" buttons to the GUI as you suggested.

2tuska
Please check if MenuBGColor is set correctly now.

I've also added an option to the settings, that the menu should be opened again either when one is selecting an autoswitch option from the menu (except an autoswitch folder/action is active), or if one is returning from the settings window.

This can be turned on/off in the settings window: Show Menu after leaving settings
as well as in the INI: ReDisplayMenu=0 (or 1, section MENU)

QuickSwitch-0.5dw7.zip
(29.06 KiB) Downloaded 946 times
horst.epp
Posts: 1344
Joined: Fri Apr 04, 2014 3:24 pm

Re: QuickSwitch

Post by horst.epp »

DaWolfi wrote: Sun Aug 21, 2022 7:46 pm 2horst.epp
I've added "OK" and "Cancel" buttons to the GUI as you suggested.

2tuska
Please check if MenuBGColor is set correctly now.

I've also added an option to the settings, that the menu should be opened again either when one is selecting an autoswitch option from the menu (except an autoswitch folder/action is active), or if one is returning from the settings window.

This can be turned on/off in the settings window: Show Menu after leaving settings
as well as in the INI: ReDisplayMenu=0 (or 1, section MENU)


QuickSwitch-0.5dw7.zip
Thanks for the update, works fine here with the new Settings layout.
tuska
Posts: 932
Joined: Thu Jul 13, 2017 9:14 am

Re: QuickSwitch

Post by tuska »

DaWolfi wrote: Sun Aug 21, 2022 7:46 pm 2tuska
Please check if MenuBGColor is set correctly now.
The result for "MenuBGColor" is the same with version 2022-08-21_QuickSwitch-0.5dw7 as before.

Window "Quick Switch Menu":
Frame lines on the outside left and right and the dividing line are given the set color,
however, the window is not filled with color how this is possible in the window "QuickSwitch Settings".

The color for "QuickSwitch Menu" was changed both via "QuickSwitch Settings" and manually in "QuickSwitch.ini",
eg MenuBGColor=0x97FFFF. I have carried out tests with two colours.
DaWolfi wrote: Sun Aug 21, 2022 7:46 pm I've also added an option to the settings, that the menu should be opened again either when one is
selecting an autoswitch option from the menu (except an autoswitch folder/action is active),
or if one is returning from the settings window.
Example:
1. Ctrl+S "Save as..." dialogue opens
2. Ctrl+Q "QuickSwitch Menu" opens
3. Click on arrow-up -> Cursor is positioned on menu item "More Settings...
4. Press ENTER -> "QuickSwitch Settings" appears
5. Click on the button "Reset to defaults", then on "OK
6. Now I am back in the dialogue "Save as...
7. As I understand your text, the "QuickSwitch Menu" should now open again automatically - but this does not happen.

Please check.
Thank you!
____________________________
2022-08-21_QuickSwitch-0.5dw7
horst.epp
Posts: 1344
Joined: Fri Apr 04, 2014 3:24 pm

Re: QuickSwitch

Post by horst.epp »

tuska wrote: Mon Aug 22, 2022 2:29 pm Example:
1. Ctrl+S "Save as..." dialogue opens
2. Ctrl+Q "QuickSwitch Menu" opens
3. Click on arrow-up -> Cursor is positioned on menu item "More Settings...
4. Press ENTER -> "QuickSwitch Settings" appears
5. Click on the button "Reset to defaults", then on "OK
6. Now I am back in the dialogue "Save as...
7. As I understand your text, the "QuickSwitch Menu" should now open again automatically - but this does not happen.
Here It works as described.
You have to set the option "Show menu after leaving settings" under More Settings.
Screenshot - 22.08.2022 , 17_41_54.png
Screenshot - 22.08.2022 , 17_41_54.png (9.77 KiB) Viewed 189679 times
tuska
Posts: 932
Joined: Thu Jul 13, 2017 9:14 am

Re: QuickSwitch

Post by tuska »

horst.epp wrote: Mon Aug 22, 2022 3:42 pm You have to set the option "Show menu after leaving settings" under More Settings.
Yes, "Show Menu after leaving settings" was checked!
Interestingly, this time it worked and the "QuickSwitch Menu" reappeared.

Further tests have shown the following:

If I
- press the button "OK" without changing anything or "Cancel" in "QuickSwitch Settings" then the "QuickSwitch Menu" appears again
- change the color to MenuBGColor=0xC6E2FF press the button "OK" then the "QuickSwitch Menu" appears again
- change the color to GuiBGColor=0x97FFFF press the button "OK" then the "QuickSwitch Menu" no longer appears
- change the Menu backgroud color (0xHEX) to 0xC6E2FF, press "OK" then the "QuickSwitch Menu" appears again AND afterwords
  change the Dialogs background color (0xHEX) to 0xC6E2FF, press "OK" then the "QuickSwitch Menu" appears again
- press the button "Debug this dialog", "Cancel", then the "QuickSwitch Menu" appears again

So I can now also confirm that this function basically works. Exceptions confirm the rule. :)
____________________________
2022-08-21_QuickSwitch-0.5dw7
DaWolfi
Posts: 31
Joined: Fri Jul 22, 2022 3:08 pm

Re: QuickSwitch

Post by DaWolfi »

tuska wrote: Mon Aug 22, 2022 4:56 pm Further tests have shown the following:

If I
- press the button "OK" without changing anything or "Cancel" in "QuickSwitch Settings" then the "QuickSwitch Menu" appears again
- change the color to MenuBGColor=0xC6E2FF press the button "OK" then the "QuickSwitch Menu" appears again
- change the color to GuiBGColor=0x97FFFF press the button "OK" then the "QuickSwitch Menu" no longer appears
- change the Menu backgroud color (0xHEX) to 0xC6E2FF, press "OK" then the "QuickSwitch Menu" appears again AND afterwords
  change the Dialogs background color (0xHEX) to 0xC6E2FF, press "OK" then the "QuickSwitch Menu" appears again
- press the button "Debug this dialog", "Cancel", then the "QuickSwitch Menu" appears again

So I would say that this function basically works. Exceptions confirm the rule. :)
Thanks again for testing!
Please remember that the option "Allow Autoswitch" must not be activated if you want the menu to reappear!
(Thus, selecting a folder from the menu list will also notdisplay the menu again)
DaWolfi
Posts: 31
Joined: Fri Jul 22, 2022 3:08 pm

Re: QuickSwitch

Post by DaWolfi »

tuska wrote: Mon Aug 22, 2022 2:29 pm The result for "MenuBGColor" is the same with version 2022-08-21_QuickSwitch-0.5dw7 as before.

Window "Quick Switch Menu":
Frame lines on the outside left and right and the dividing line are given the set color,
however, the window is not filled with color how this is possible in the window "QuickSwitch Settings".

The color for "QuickSwitch Menu" was changed both via "QuickSwitch Settings" and manually in "QuickSwitch.ini",
eg MenuBGColor=0x97FFFF. I have carried out tests with two colours.
Very strange! tbh, I have no idea why this happens like that!
Do you have a special system display setting?
horst.epp
Posts: 1344
Joined: Fri Apr 04, 2014 3:24 pm

Re: QuickSwitch

Post by horst.epp »

I don't use them but the problem with the Menu Color is not only on Tuska's system.
Its the same here, only the divider lines are colored.
Looks like this:
Screenshot - 22.08.2022 , 19_59_43.png
Screenshot - 22.08.2022 , 19_59_43.png (26.17 KiB) Viewed 189641 times
DaWolfi
Posts: 31
Joined: Fri Jul 22, 2022 3:08 pm

Re: QuickSwitch

Post by DaWolfi »

horst.epp wrote: Mon Aug 22, 2022 6:02 pm I don't use them but the problem with the Menu Color is not only on Tuska's system.
Its the same here, only the divider lines are colored.
Looks like this:
Screenshot - 22.08.2022 , 19_59_43.png
And how does it look with the original QuickSwitch 0.5 version?
horst.epp
Posts: 1344
Joined: Fri Apr 04, 2014 3:24 pm

Re: QuickSwitch

Post by horst.epp »

DaWolfi wrote: Mon Aug 22, 2022 6:06 pm
horst.epp wrote: Mon Aug 22, 2022 6:02 pm I don't use them but the problem with the Menu Color is not only on Tuska's system.
Its the same here, only the divider lines are colored.
Looks like this:
Screenshot - 22.08.2022 , 19_59_43.png
And how does it look with the original QuickSwitch 0.5 version?
There was no color option in QuickSwitch 0.5
It looked like this
Screenshot - 22.08.2022 , 20_14_19.png
Screenshot - 22.08.2022 , 20_14_19.png (8.39 KiB) Viewed 189638 times
DaWolfi
Posts: 31
Joined: Fri Jul 22, 2022 3:08 pm

Re: QuickSwitch

Post by DaWolfi »

horst.epp wrote: Mon Aug 22, 2022 6:16 pm
DaWolfi wrote: Mon Aug 22, 2022 6:06 pm And how does it look with the original QuickSwitch 0.5 version?
There was no color option in QuickSwitch 0.5
It looked like this
Screenshot - 22.08.2022 , 20_14_19.png
Thank you!
DaWolfi
Posts: 31
Joined: Fri Jul 22, 2022 3:08 pm

Re: QuickSwitch

Post by DaWolfi »

DaWolfi wrote: Mon Aug 22, 2022 6:37 pm
horst.epp wrote: Mon Aug 22, 2022 6:16 pm
DaWolfi wrote: Mon Aug 22, 2022 6:06 pm And how does it look with the original QuickSwitch 0.5 version?
There was no color option in QuickSwitch 0.5
It looked like this
Screenshot - 22.08.2022 , 20_14_19.png
Thank you!
Oh man, I think I've got it - Hex isn't Hex (kinda stupid mistake... :oops:)
Interesting that it doesn't occur on every system, but anyway.
I think I can fix it, but it will take some time - so please be a little patient with me! ;)
Post Reply