QuickSwitch

General discussion related to "Everything".
NotNull
Posts: 5961
Joined: Wed May 24, 2017 9:22 pm

Re: QuickSwitch

Post by NotNull »

You guys have been busy ... :)
autocart wrote: Wed Apr 13, 2022 1:38 pm I found a solution:

Code: Select all

WinGet, name, ProcessPath , ahk_pid %p_pid%
Nice, well done! Very strange that the original function did not return the path...
So I'll replace the original to the one you posted for the next version.
(I use processpath in other places too. Without issues, so should be stable)
EDIT: Missed @horst's reply .. Extra certainty that this is the right way. Thanks!

autocart wrote: Wed Apr 13, 2022 2:34 pm If you need a sparing partner as to how to talk to XY in a "better" way than via the clipboard ... maybe I can help a bit.
autocart wrote: Wed Apr 13, 2022 1:54 pm Over and over again, it happens sometimes, that QS only shows the path from the hidden XY pane.
I did play around with it, based on some suggestions from user highend on the XYplorer forums (link). But all suggestions are welcome!

I 'suspect' that using this alternative method might help with this annoying issue too.

autocart wrote: Wed Apr 13, 2022 4:03 pm And since I am already thinking about it:
If I understood the tool correctly, it would be more correct / understandable if "Settings for this dialog" was called "Settings for this application"?
It is both. It is the application-dialog combination.
You can have the Notepad=>Open dialog trigger a different response than Notepad=>Save or Excel=>Open.
So technically it should say something like "Settings for this specific dialog"



autocart wrote: Wed Apr 13, 2022 4:03 pm In the "Settings for this dialog" section, I would call the "Not now" option differently
I don't like this 'Not now' either. It is the "Show Menu" option, but as that is (currently) already the default, that would leave the menu without a visible clue to exit the dialog.
I miss a setting for a menu-default too (choose between Never, Show Menu and AutoSwitch). But that requires a GUI to make that setting. GUI's are a lot of work (never realized that before I wrote my first (simple) GUI; I now respect @void even more!)
Writing a nice GUI for QuickSwitch will take some time. In the meantime: would an INI-entry to configure a default action help?


autocart wrote: Wed Apr 13, 2022 4:03 pm As of now, in such a case I have to alt-tab back to the file manager again before proceeding - with caution - to the file dialog. Or is this a copyright / trademark thing?
Definitely not a copyright thing :) This was by far the easiest method to implement "quickswitching".

BTW: Instead of using 'ALT + TAB' multiple times, you can also:
  • Press down the ALT key; press TAB multiple times until you reach the right program; release the TAB key
  • Click on the icons in the taskbar (assuming the taskbar is visible)
  • Use 'WIN + TAB' and use the cursor keys to select
autocart wrote: Wed Apr 13, 2022 4:03 pm is there a way to undo the autoswitch and go back to the originally displayed location?
Good question! Will add the following to the 'documentation'
Windows itself provides some methods for that:
- press 'ALT + cursor left'
-
2022-04-13 21_21_00-Window.png
2022-04-13 21_21_00-Window.png (14.39 KiB) Viewed 355008 times
Should the original dialog path be added to the folder list? (not in my opinion, btw)

autocart wrote: Wed Apr 13, 2022 7:02 pm The Suggestion:
Would it not be nice, if the QS dialog would include an item that - by clicking it - would bring the file manager of one's choice to the foreground? Then I could navigate to the target folder in my familiar environment (in that file manager) and then alt-tab back to the file dialog. QS could then automatically switch to that location in the file dialog.

The item could be called something like "Fetch location from [TC|XY|WE|DO]" depending on which file manager one wants. Maybe it would be best to define only one favorite file manager as the one to fetch locations from in this way, if that feature was a good idea anyway?
I like that idea! Brainstorming: I would make cursor right on a [TC|XY|WE|DO] folder open the matching file manager. For GUI use, a[>] button per folder entry. Or SHIFT-clicking a folder, or ...


I'm not sure if I addressed all points, but this should be enough to keep me off the streets this weekend :)

Thank you all !
autocart
Posts: 16
Joined: Fri Apr 01, 2022 11:59 pm

Re: QuickSwitch

Post by autocart »

@tuska
Thx for your reply. Unfortunately, I am not sure what you are trying to tell me.

@NotNull
Besides all the above mentioned suggestions, I now have one more:

The Situation:
I just found myself in the situation that I opened a file dialog and the paths from XY did not include the location that I wanted.

The Suggestion:
Would it not be nice, if the QS dialog would include an item that - by clicking it - would bring the file manager of one's choice to the foreground? Then I could navigate to the target folder in my familiar environment (in that file manager) and then alt-tab back to the file dialog. QS could then automatically switch to that location in the file dialog.

The item could be called something like "Fetch location from [TC|XY|WE|DO]" depending on which file manager one wants. Maybe it would be best to define only one favorite file manager as the one to fetch locations from in this way, if that feature was a good idea anyway?
tuska
Posts: 1369
Joined: Thu Jul 13, 2017 9:14 am

Re: QuickSwitch

Post by tuska »

2autocart
My opinion on the subject of "AutoSwitch" is as follows:
Ideally, one does not need the "QuickSwitch Menu" and the correct path is automatically shown in the open/save dialogue -> A.

But this cannot always be achieved automatically.
Only in this case the "QuickSwitch Menu" with Ctrl-Q is required, and in this menu all accessible paths,
both from Windows Explorer and the file manager, are displayed and can be selected with a click.

Have you seen my tests?
  • A   = The first time the dialogue is called up (open/save), the correct path from file manager or File Explorer is already displayed!
  • B   = When the dialogue is called up for the first time (open/save), the path of file manager or File Explorer is NOT automatically displayed,
            although the menu item "Allow AutoSwitch" has already been selected in the "QuickSwitch Menu"!
  • AB = The result was A once and B the other time.
  • Q =   The path in the dialogue can only be selected via Ctrl-Q
  • teilw = partial; A teilw = usually the path is automatically available, but sometimes the menu must be used to call up the desired path.
I have not needed the option "Not now" in any of the tests - which I have carried out several times over the course of time -
and I personally see no reason to change this designation. But it's up to NotNull.
autocart
Posts: 16
Joined: Fri Apr 01, 2022 11:59 pm

Re: QuickSwitch

Post by autocart »

horst.epp wrote: Wed Apr 13, 2022 5:31 pm With your modification it still works fine in TC and XY.
Thank you for the confirmation.
horst.epp
Posts: 1640
Joined: Fri Apr 04, 2014 3:24 pm

Re: QuickSwitch

Post by horst.epp »

autocart wrote: Wed Apr 13, 2022 1:38 pm I found a solution:
I added the four lines that I marked with ";<<<<<<<<<<<<<<<<<<<" on their right to this function:

No idea, why your original function won't work with the Dopus process, since it works fine with the XY process (and obviously also with TC?).
However, the AHK built-in command seems to work ok.
With your modification it still works fine in TC and XY.
autocart
Posts: 16
Joined: Fri Apr 01, 2022 11:59 pm

Re: QuickSwitch

Post by autocart »

tuska wrote: Wed Apr 13, 2022 2:51 pm By the way, I'm just the hobby user who kept NotNull happy for a bit. ;)
Aren't we all like that ... :)
NotNull wrote: Mon Mar 22, 2021 8:05 pm
  • A better user interface. There will be a simplified menu with less 'technical' entries.
    Suggestions are welcome.
One simple suggestion:
In the "Settings for this dialog" section, I would call the "Not now" option differently, namely something like "Ask for manual switch (Default)" in comparision to "Allow AutoSwitch".

And since I am already thinking about it:
If I understood the tool correctly, it would be more correct / understandable if "Settings for this dialog" was called "Settings for this application"?

Then, it might also be a good idea to allow changing the default behavior of the tool as a whole to autoswitch.

Also, in case of autswitching, I know that other similar tools autoswitch to the location of the last active file manager, regardless of how many windows it is "away". Then it would not just make the autoswitch exception unnecessary, it would also help in cases when I alt-tab from the file manager to the dialog and accidently select a different application first. As of now, in such a case I have to alt-tab back to the file manager again before proceeding - with caution - to the file dialog. Or is this a copyright / trademark thing?

And finally (but only for this post), also in case of autoswitching, when the tool switches immediately upon opening a file dialog and I realize that the location suggested by the application itself would have been fine/better, is there a way to undo the autoswitch and go back to the originally displayed location? Not a big need for that atm - I like the manual switching better anyway -, but I just thought that someone might have a need for it sometimes.
tuska
Posts: 1369
Joined: Thu Jul 13, 2017 9:14 am

Re: QuickSwitch

Post by tuska »

autocart wrote: Wed Apr 13, 2022 2:20 pm
NotNull wrote: Mon Mar 22, 2021 8:05 pm I even wanted to call it TuskaTool, but "someone" had strong objections against that. I can't tell you who, as I respect tuska's privacy :lol:
So, if you like it, say thanks to @tuska!
:lol: :mrgreen: :D 8-) (Happy that I could laugh again heartily.)

THANK YOU, TUSKA!
You are welcome.

By the way, I'm just the hobby user who kept NotNull happy for a bit. ;)

______________________________________
Total Commander (x64) 10.50b1 - 12.4.2022
Everything 1.5.0.1309a (x64)
autocart
Posts: 16
Joined: Fri Apr 01, 2022 11:59 pm

Re: QuickSwitch

Post by autocart »

NotNull wrote: Wed Apr 13, 2022 12:30 pm
QuickSwitch is not finished yet.
On the To-Do list for the near future are:
  • ...
  • A different way to 'talk with' [...] XYplorer
  • ...
If you need a sparing partner as to how to talk to XY in a "better" way than via the clipboard ... maybe I can help a bit.
You already found out that you can send XY a message. Well, probably you already know that, but in the same way you can make XY send a message back to your script. Probably you are just trying to find the time for implementing it ... all the best with that.
autocart
Posts: 16
Joined: Fri Apr 01, 2022 11:59 pm

Re: QuickSwitch

Post by autocart »

NotNull wrote: Mon Mar 22, 2021 8:05 pm I even wanted to call it TuskaTool, but "someone" had strong objections against that. I can't tell you who, as I respect tuska's privacy :lol:
So, if you like it, say thanks to @tuska!
:lol: :mrgreen: :D 8-) (Happy that I could laugh again heartily.)

THANK YOU, TUSKA!
autocart
Posts: 16
Joined: Fri Apr 01, 2022 11:59 pm

Re: QuickSwitch

Post by autocart »

One more thing, though:
I mostly am running onyl XY with one pane hidden.
Over and over again, it happens sometimes, that QS only shows the path from the hidden XY pane.
If that happens I have to trigger it once or twice more until it shows the paths from both panes.
Not sure, though, what the exact circumstances are of when this happens or even whether there are traceable/noticeable repeating circumstances.

This is not a big deal atm or in any way urgent, I am primarily wondering why or if it was easy to fix this.
On the long run (weeks, months) it probably would get annoying.
autocart
Posts: 16
Joined: Fri Apr 01, 2022 11:59 pm

Re: QuickSwitch

Post by autocart »

I found a solution:
I added the four lines that I marked with ";<<<<<<<<<<<<<<<<<<<" on their right to this function:

Code: Select all

;_____________________________________________________________________________
;
				GetModuleFileNameEx( p_pid )
;_____________________________________________________________________________
;
;	From: https://autohotkey.com/board/topic/32965-getting-file-path-of-a-running-process/
;	NotNull: changed "GetModuleFileNameExA" to "GetModuleFileNameExW""

{
	
	h_process := DllCall( "OpenProcess", "uint", 0x10|0x400, "int", false, "uint", p_pid )
	if ( ErrorLevel or h_process = 0 )
	  return

	name_size = 255
	VarSetCapacity( name, name_size )

	result := DllCall( "psapi.dll\GetModuleFileNameExW", "uint", h_process, "uint", 0, "str", name, "uint", name_size )
	
	DllCall( "CloseHandle", h_process )

	if ( not name )						;<<<<<<<<<<<<<<<<<<<
	{							;<<<<<<<<<<<<<<<<<<<
		WinGet, name, ProcessPath , ahk_pid %p_pid%	;<<<<<<<<<<<<<<<<<<<
	}							;<<<<<<<<<<<<<<<<<<<

	return, name
}
No idea, why your original function won't work with the Dopus process, since it works fine with the XY process (and obviously also with TC?).
However, the AHK built-in command seems to work ok.
autocart
Posts: 16
Joined: Fri Apr 01, 2022 11:59 pm

Re: QuickSwitch

Post by autocart »

NotNull wrote: Wed Apr 13, 2022 12:30 pm Thank you for taking the time to test Dopus/QuickSwitch, @autocart!
You are extremely welcome. Thank YOU for wanting to continue developing that tool.
NotNull wrote: Wed Apr 13, 2022 12:30 pm - Does the pre-compiled version behave the same? (Not that I doubt your compiling skills ... just to exclude causes)
:D In general, yes, but the error message looks a bit different because of the uncompiled ahk code, I assume:

QSv0.5 ahk uncompiled - error msg with Dopus.PNG
QSv0.5 ahk uncompiled - error msg with Dopus.PNG (24.14 KiB) Viewed 355046 times
NotNull wrote: Wed Apr 13, 2022 12:30 pm - Does dopusrt.exe exist in the same folder as dopus.exe?
Yes.
NotNull wrote: Wed Apr 13, 2022 12:30 pm Regarding the Reload option, that will be part of the systray menu at some point
That will be nice. But again, in realitly it is no problem to add it on oneself.
horst.epp
Posts: 1640
Joined: Fri Apr 04, 2014 3:24 pm

Re: QuickSwitch

Post by horst.epp »

autocart wrote: Wed Apr 13, 2022 11:28 am
horst.epp wrote: Wed Apr 13, 2022 7:58 am For the compiled one there isn't any script which may have changed in the background.
Compiling and replacing the exe while it is running also isn't a good idea.
I assume you don't understand.
I mean, adding lines like these to the code:

Code: Select all

Menu, Tray, Add, Reload, _Reload
_Reload()
{
	Reload
}
As I already indicated, mainly for debugging purposes, or, if you will, as a faster work-around than manually exiting and then locating that exe again to restart it in case that the script/exe gets stuck.

Anyway, it's not a big deal. I can always add the lines myself. I am just so glad, that this tool exists! Thanx again, NotNull!!
Ok, I understand now.
If you had said adding some code to get a reload
I would have understand it from the beginning :)
Nevertheless a good idea.
NotNull
Posts: 5961
Joined: Wed May 24, 2017 9:22 pm

Re: QuickSwitch

Post by NotNull »

Thank you for taking the time to test Dopus/QuickSwitch, @autocart!

Based on the error message, it looks like the %dopus_exe% variable was not set.
Will look at it tonight (European timezone), but in the meantime:
- Does the pre-compiled version behave the same? (Not that I doubt your compiling skills ... just to exclude causes)
- Does dopusrt.exe exist in the same folder as dopus.exe?



Regarding the Reload option, that will be part of the systray menu at some point:
QuickSwitch is not finished yet.
On the To-Do list for the near future are:
  • Support for long paths ( longer than 259 characters)
  • A better user interface. There will be a simplified menu with less 'technical' entries.
    Suggestions are welcome.
  • A different way to 'talk with' Total Commander an XYplorer
  • A notification area (/system tray) menu, including icon
  • Option to load at startup
Thanks for the suggestion!
autocart
Posts: 16
Joined: Fri Apr 01, 2022 11:59 pm

Re: QuickSwitch

Post by autocart »

horst.epp wrote: Wed Apr 13, 2022 7:58 am For the compiled one there isn't any script which may have changed in the background.
Compiling and replacing the exe while it is running also isn't a good idea.
I assume you don't understand.
I mean, adding lines like these to the code:

Code: Select all

Menu, Tray, Add, Reload, _Reload
_Reload()
{
	Reload
}
As I already indicated, mainly for debugging purposes, or, if you will, as a faster work-around than manually exiting and then locating that exe again to restart it in case that the script/exe gets stuck.

Anyway, it's not a big deal. I can always add the lines myself. I am just so glad, that this tool exists! Thanx again, NotNull!!
horst.epp
Posts: 1640
Joined: Fri Apr 04, 2014 3:24 pm

Re: QuickSwitch

Post by horst.epp »

autocart wrote: Wed Apr 13, 2022 1:07 am BTW, it would be nice, if the compiled exe would also have a "reload that script" tray menu item.

Because the script does not work anymore after the above error, until I exit and restart.
That makes no sense for me.
For the compiled one there isn't any script which may have changed in the background.
Compiling and replacing the exe while it is running also isn't a good idea.
autocart
Posts: 16
Joined: Fri Apr 01, 2022 11:59 pm

Re: QuickSwitch

Post by autocart »

BTW, it would be nice, if the compiled exe would also have a "reload that script" tray menu item.

Because the script does not work anymore after the above error, until I exit and restart.
autocart
Posts: 16
Joined: Fri Apr 01, 2022 11:59 pm

Re: QuickSwitch

Post by autocart »

Thank you for the continuous work!
I now realized that I did not have the notifications activated for this thread. Should be ok from now on.

"Bad" news from me: v0.5 (self-compiled with icon) does not work with Dopus.
See image for error-message. If you should need more/other info, please let me know.
QSv0.5 - error msg with Dopus.png
QSv0.5 - error msg with Dopus.png (9.89 KiB) Viewed 355108 times
EricB
Posts: 53
Joined: Wed Jun 26, 2013 8:56 am

Re: QuickSwitch

Post by EricB »

NotNull wrote: Thu Apr 07, 2022 6:15 pm Here you go ...
Thanks a ton!
NotNull wrote: Thu Apr 07, 2022 6:15 pm Menu in the attached version will use the same dark/light scheme as Windows. Requires Win10 at least (Win8 might work too)
Briefly tested ...
Well, seems to work fine here. And I know now how to create executables from AHK scripts. I even added some "white Q on black background" icon, so it looks nicely in the tray. I'll continue testing it the coming days.
NotNull wrote: Thu Apr 07, 2022 6:15 pm In the "old" menu, only changing the backgroud colour would be simple. But as the fontcolour needs to change to, it got a bit more complicated, so no DIY solution this time. Sorry ..
I can definitively live with this ;-)
NotNull wrote: Thu Apr 07, 2022 6:15 pm (You forced me to test the Windows light theme ... it was like coming out of a bar at 8 AM ... You owe me one! ;))
Being a fellow countryman, I'd offer you a beer when we meet.... to bring upon you the horror of the light theme should be redeemed in a fitting way!
NotNull
Posts: 5961
Joined: Wed May 24, 2017 9:22 pm

Re: QuickSwitch

Post by NotNull »

horst.epp wrote: Thu Apr 07, 2022 5:52 pm Please don't make it only dependend on the Windows setting.
A setting to choose between dark/light/follow Windows then?

FYI: New version will take a while, so a lot of time to think about refinements.


BTW: there are 2 registry settings relevant here under HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize:

SystemUsesLightTheme and AppsUseLightTheme. Do you have AppsUseLightTheme=0 (for dark apps)?

That could be a trigger too .. (trying to keep things as simple as possible)
NotNull
Posts: 5961
Joined: Wed May 24, 2017 9:22 pm

Re: QuickSwitch

Post by NotNull »

Here you go ...
Menu in the attached version will use the same dark/light scheme as Windows. Requires Win10 at least (Win8 might work too)
Briefly tested ...

In the "old" menu, only changing the backgroud colour would be simple. But as the fontcolour needs to change to, it got a bit more complicated, so no DIY solution this time. Sorry ..

(You forced me to test the Windows light theme ... it was like coming out of a bar at 8 AM ... You owe me one! ;))
Attachments
QuickSwitch_EricB.7z
(7.18 KiB) Downloaded 5980 times
horst.epp
Posts: 1640
Joined: Fri Apr 04, 2014 3:24 pm

Re: QuickSwitch

Post by horst.epp »

NotNull wrote: Thu Apr 07, 2022 3:12 pm in a future version there will be an entirely different menu. I will add a dark- as well as a light version to that (probably chosen based on your Windows settings)
Please don't make it only dependend on the Windows setting.
I don't run Windows in dark mode but many tools with their own dark mode functions.
EricB
Posts: 53
Joined: Wed Jun 26, 2013 8:56 am

Re: QuickSwitch

Post by EricB »

NotNull wrote: Thu Apr 07, 2022 3:12 pm If i bothers you a lot, i can write a custom version or provide instructions on how to change it yourself.
No great bother, but it still attracts my attention. Would be nice to have a go at it myself, so some directions where to make changes would be awesome. I think I can handle compiling myself, I dabble with some development at times.
Mosed
Posts: 13
Joined: Mon Mar 21, 2022 7:31 pm

Re: QuickSwitch

Post by Mosed »

NotNull wrote: Thu Apr 07, 2022 3:12 pm I will add a dark- as well as a light version to that (probably chosen based on your Windows settings)
In my opinion that would be the smartest version. Background color depending on Windows setting. Another possibility is to offer a background color setting.
PS: I did not try QuickSwitch yet - so just a general remark. :)
NotNull
Posts: 5961
Joined: Wed May 24, 2017 9:22 pm

Re: QuickSwitch

Post by NotNull »

Yes, that should be easy.
The current colour was chosen because it would be clearly visible in dark mode as well as light mode.
Tbh, I didn't give it much thought beyond that, because you would only see it for 1 or 2 seconds.
If i bothers you a lot, i can write a custom version or provide instructions on how to change it yourself.

in a future version there will be an entirely different menu. I will add a dark- as well as a light version to that (probably chosen based on your Windows settings)
EricB
Posts: 53
Joined: Wed Jun 26, 2013 8:56 am

Re: QuickSwitch

Post by EricB »

I really like Quickswitch, providing me more flexibility in Open/Save dialogs.

The only thing that I would stil wish for is a "dark mode" coloring style for the dialog. Is this something that is easy to achieve?
NotNull
Posts: 5961
Joined: Wed May 24, 2017 9:22 pm

Re: QuickSwitch

Post by NotNull »

horst.epp wrote: Mon Apr 04, 2022 4:46 pm I'm impressed :D
You have spend a lot of time.
And that is only the tip of the iceberg ...
I wasn't kidding when I said that QuickSwitch would not exist without @tuska.
For the previous version we exchanged a lot of ideas and testresults (all behind the scenes). That took a lot of time.
I almost gave up a couple of times, but he kept me on track. And now we have QuickSwitch ...


But it wasn't just @tuska ...
(something I wanted to say for a long time and this seems like a good moment)

The *entire* Everything 'community' is full of friendly, helpful people. Good people that help with solutions, suggestions, trying, testing or simply encouragement (and will let you know when something is a bad idea). Not just in this case, but in general.
That is quite exceptional when compared to the average forum. And I love it!
tuska
Posts: 1369
Joined: Thu Jul 13, 2017 9:14 am

Re: QuickSwitch

Post by tuska »

horst.epp wrote: Mon Apr 04, 2022 4:46 pm 2Tuska
I'm impressed :D
You have spend a lot of time.
I just can't do otherwise :)
horst.epp
Posts: 1640
Joined: Fri Apr 04, 2014 3:24 pm

Re: QuickSwitch

Post by horst.epp »

2Tuska
I'm impressed :D
You have spend a lot of time.
tuska
Posts: 1369
Joined: Thu Jul 13, 2017 9:14 am

Re: QuickSwitch

Post by tuska »

2NotNull
Below are my test results for QuickSwitch Version 0.5 from April 3rd, 2022 => all test results are fine for me!
There were even some improvements compared to the test results of March 11th, 2022.

Code: Select all

For better readability, it is advisable to view the text in an editor.
Zwecks besserer Lesbarkeit empfiehlt es sich den Text in einem Editor anzusehen.
***************************************************************************************************************************************************************************************
STRG-Q_QuickSwitch_2022-04-03_v05_x64.exe  Tests vom 4.4.2022
Testversion:  QuickSwitch.exe v05 x64      Download vom 3.4.2022 ......................	 https://www.voidtools.com/forum/viewtopic.php?p=35818#p35818
;					   ............................................  https://github.com/gepruts/QuickSwitch
;			 		   ............................................  https://github.com/gepruts/QuickSwitch/archive/main.zip
;					   "QuickSwitch" - Forum + Downloads  .........  https://www.voidtools.com/forum/viewtopic.php?f=2&t=9881 (v05: Veröffentlichung vom 3.4.2022)

***************************************************************************************************************************************************************************************
Testergebnisse unter Verwendung von:
- STRG-Q_QuickSwitch_2022-04-03_v05_x64.exe (nach Umbenennung) ....................... 	https://autohotkey.com/download/ AutoHotkey v1.1.33.10 - 29.8.2021
- Windows 10 Pro (x64) Version 21H2 (OS build 19044.1620) - 22.3.2022 ................	https://aka.ms/Windows/ReleaseInfo
- Total Commander 10.00 (x64, x86) ...................................................	https://www.ghisler.com/index.htm
***************************************************************************************************************************************************************************************

Anmerkungen zu den Testfällen:
          OK	OK; Testfall in Ordnung
         NOK	NOK (not OK); Funktion (derzeit) nicht verfügbar oder Fehler;
           !	in Spalte: Es wird angenommen, dass sich in dieser Spalte der Fehler befindet! (--> bzw. ist ohnehin ein Hinweis in den Anmerkungen vorhanden!)
           -	in Spalte: Nicht verfügbar/relevant (bzw. Blank <Leerzeichen> in Spalte)
           *	in Spalte: Diese Funktion wird vom AutoHotkey (AHK) - Skript [derzeit] nicht unterstützt!
           ?	zu prüfen...
           A 	Beim ersten Aufruf des Dialogs (open/save) wird bereits der richtige Pfad von TC oder Windows Explorer angezeigt!   | A = Pfad zum Ordner AUTOMATISCH ..... vorhanden |
           B	Beim ersten Aufruf des Dialogs (open/save) wird NICHT automatisch der Pfad von TC oder Windows Explorer angezeigt,  | B = Pfad zum Ordner NICHT automatisch vorhanden |
                obwohl bereits im "QuickSwitch Menu" der Menüpunkt "Allow AutoSwitch" ausgewählt wurde!
                Die Auswahl des Pfades ist somit durch anklicken eines Pfades im "QuickSwitch Menu" bzw. durch drücken von ALT-TAB (und nicht automatisch) möglich!
           Q    nur Strg+Q für "QuickSwitch Menu", d.h. Pfadauswahl möglich!
           x	Funktion vorhanden/geprüft!
         teilw  teilweise; A teilw = im Regelfall ist der Pfad automatisch vorhanden, manchmal muß jedoch das Menü benutzt werden, um den gewünschten Pfad aufzurufen.

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
! Nr. ! OK/NOK ! Titel			    ! Anmerkung	  (Datei öffnen/Datei speichern unter; File open/File save as /Ctrl-Q)	! Open ! ^-Q ! Save ! ^-Q ! ALT-TAB  ! Explorer ! Nr. !
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
!  1  !   OK   ! Editor - Notepad   	    ! Versions-Nr.: Windows 10 Pro (x64) Version 21H2 (OS build 19044.1620) - 22.3.2022	!   A  !  x  !  A   !  x  !    x     !    A     !  1  !
!     !        ! 			    ! C:\Windows\notepad.exe - Version: 10.0.19041.1566 Änderungsdatum: 17.02.2022 ‏‎15:25! teilw!  x  !teilw !  x  !    x     !  teilw   !     !
!     !        !          Info ...          ! Notepad2 oder 3 kann notepad.exe im Wege der Installation systemweit ersetzen!	!      !     !      !     !          !          !     !
!     !        !                            ! Notepad2 or 3 can replace notepad.exe system-wide by way of the installation!     !      !     !      !     !          !          !     !
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
!  2  !   OK   ! Editor - Notepad2  (64-bit)! https://xhmikosr.github.io/notepad2-mod/  Notepad2-mod 4.2.25 r998 (62db550)	!  A   !  x  !  A   !  x  !    x     !    A     !  2  !
!  3  !   OK   ! Editor - Notepad3  (64-bit)! https://www.rizonesoft.com/downloads/notepad3/ v5.21.1129.1 (ba6de2c2) - 29.11.21 !  A   !  x  !  A   !  x  !    x     !    A     !  3  !
!  4  !   OK   ! Editor - Notepad++ (64-bit)! https://notepad-plus-plus.org/  v8.3.3  (Build time: Mar 13 2022 - 17:20:02)	!  A   !  x  !  A   !  x  !    x     !    A     !  4  !
!  5  !   OK   ! Editor - PSPad     (64-bit)! http://www.pspad.com/de/ Version 5.0.6 (589) - 08/04/2021 05:46:38		!  B   !  x  !  B   !  x  !    x     !    B     !  5  !
!  6  !	  OK   ! Editor - EmEditor Pro (x64)! https://www.emeditor.com/	 v 21.6.906 v. 4.4.2022, Parameter: EmEditor.exe /cd	!  A   !  x  !  A   !  x  !    x     !    A     !  6  !
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
!  7  !   OK   ! Adobe Acrobat XI Pro	    ! Version 11.0.23 - 32-Bit	C:\Program Files (x86)\Adobe\Acrobat 11.0\Acrobat\	!  A   !  x  !  A   !  x  !    x     !    A     !  7  !
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
!  8  !	  OK   ! Outlook 2013       (32-Bit)! Microsoft® Outlook® 2013 (15.0.5399.1000)  MSO (15.0.5431.1000) 32-Bit - 4.4.2022 !  B   !  x  !  B   !  x  !    x     !    B     !  8  !
!     !        !			    ! Bestandteil von Microsoft Office Professional 2013 / [Bsp.: Kalender öffnen]	!      !     !      !     ! 	     !          !     !
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
!  9  !   OK   ! Word 2013	*)  (32-Bit)! Microsoft® Word 2013 (15.0.5431.1000)  MSO (15.0.5431.1000)   32-Bit - 4.4.2022	!  A   !  x  !  A   !  x  !    x     !    A     !  9  !
!     !        ! Excel 2013	*)  (32-Bit)! Microsoft® Excel® 2013 (15.0.5423.1000)  MSO (15.0.5431.1000) 32-Bit - 4.4.2022	!  A   !  x  !  A   !  x  !    x     !    A     !
!     !        ! 			    ! *) Bestandteil von Microsoft Office Professional 2013				!      !     !      !     !          !          !     !
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
! 10  !   OK   ! Microsoft Edge 	    ! "Save as..." | Edge auf Chromium-Basis - Stand: 4.4.2022				!  -   !  -  !  Q   !  x  !    Q     !    Q     ! 10  !
!     !        !                            ! 		   | Version 100.0.1185.29 (Offizielles Build) (64-Bit) 		!      !     !      !     !   	     !          !     !
!     !        ! 			    ! 		   | EDGE merkt sich den zuletzt aufgerufenen Download-Pfad!								!     !
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
! 11  !   OK   ! Mozilla Firefox 	    ! "Save as..." | Firefox Browser 98.0.2 (32-Bit)   - Stand: 4.4.2022	 	!  -   !  -  !  B   !  x  !    x     !    B     ! 11  !
!     !        !    Portable Edition        ! ALT-TAB: OK  | https://portableapps.com/apps/internet/firefox_portable 		!      !     !      !     !          !          !     !
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
!     !        ! 'Everything'	 	    ! Everything 1.5.0.1305a (x64) - 18.3.2022					 	!      !     !      !     !  	     !          !     !
! 12  !   OK   ! 			    ! - Datei-Dateiliste öffnen	<STRG+O> .............................................. !  B   !  x  !  -   !  -  !    x     !    B     ! 12  !
!     !   OK   ! 			    ! - Datei exportieren...    <STRG+S> ..............................................	!  -   !  -  !  B   !  x  !    x     !    B     !     !
!     !   OK   ! 			    ! - Dateilisten-Editor: Datei öffnen <STRG+O> .....................................	!  B   !  x  !  -   !  -  !    x     !    B     !     !
!     !   OK   ! 			    ! - Dateilisten-Editor: Datei speichern unter... ..................................	!  -   !  -  !  B   !  X  !    x     !    B     !     !
! 13  !   OK   ! 			    ! - Lesezeichen verwalten... -> Importieren... 					!  B   !  x  !  -   !  -  !    x     !    B     ! 13  !
! 14  !   OK   ! 			    ! - Lesezeichen verwalten... -> Exportieren...					!  -   !  -  !  B   !  x  !    x     !    B     ! 14  !
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
! 15  !   OK   ! C:\Users\<USER>\Desktop\   ! Desktop User | cd %$DESKTOP% | cd "%UserProfile%\Desktop"				!  AB  !  x  !  AB  !  x  !    x     !    AB    ! 15  !
! 16  !   OK   ! C:\Users\Public\Desktop\   ! Desktop Public | Öffentl. Desktop | cd %$COMMON_DESKTOPDIRECTORY% | cd C:\Users\..!  AB  !  x  !  AB  !  x  !    x     !    AB    ! 16  !
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
! 17  !   OK   ! Ctrl-Q --> ICONS	    ! Anzeige von ICONS im Ctrl-Q "QuickSwitch Menu": TC (x86, x64), Windows Explorer 	!  -   !  -  !  -   !  -  !    -     !    -     ! 17  !
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
! 18  !   OK   ! Ctrl-Q Menu order 	    ! "QuickSwitch Menu": TC/Explorer - REIHENFOLGE bei der Anzeige nach Ctrl-Q		!  x   !  x  !  x   !  x  !    x     !    x     ! 18  !
! 181 !   OK   ! - Total Commander	    ! Nach ALT-Tab wird das zuletzt aktive Verzeichnis immer OBEN angezeigt, d.h.	!      !     !      !     !   	     !          ! 181 !
! 182 !   OK   ! - Windows Explorer	    ! dieses Verzeichnis kann vom TC oder Windows Explorer stammen!			!      !     !      !     !   	     !          ! 182 !
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
! 19  !   OK   ! Mehrfachinstanzen          ! Mehrere Instanzen v. TC und Windows Explorer (TC x86, TC x64, TC-Admin, Explorer)	!  AB  !  x  !  AB  !  x  !    x     !    AB    ! 19  !
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
! 20  !   OK   ! Rootverzeichnisse 	    ! zB C:\, D:\, I:\,... 								!  -   !  -  !  -   !  -  !    -     !    -     ! 20  !
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
! 21  !   OK   ! Netzwerk-Verzeichnisse     ! Netzwerkpfade, Netzwerkverzeichnisse, zB \\Mein-pc\D\Daten\			!  -   !  -  !  -   !  -  !    -     !    -     ! 21  !
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
! 22  !   OK   ! Programminstallation(en)   ! Installation(en) durchführen - AHK-Skript kann Pfad ermitteln! 			!  -   !  -  !  -   !  -  !    -     !    -     ! 22  !
!     !        ! z.B. TeraCopy 3.9 	    ! https://blog.codesector.com/category/teracopy/ January 2, 2022		 	!      !     !      !     !          !          !     !
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
***************************************************************************************************************************************************************************************
Thank you very much for your efforts!

Regards,
Karl
NotNull
Posts: 5961
Joined: Wed May 24, 2017 9:22 pm

Re: QuickSwitch

Post by NotNull »

As this part is new too, I was curious if that would work outside of my setup. Glad it does.
So: Thanks for testing again!


(and of course there is no real copyright involved in QuickSwitch ; It comes with a "Have fun with it" lifetime license )
horst.epp
Posts: 1640
Joined: Fri Apr 04, 2014 3:24 pm

Re: QuickSwitch

Post by horst.epp »

Yes
Screenshot - 04.04.2022 , 10_30_33.png
Screenshot - 04.04.2022 , 10_30_33.png (15.95 KiB) Viewed 359619 times
NotNull
Posts: 5961
Joined: Wed May 24, 2017 9:22 pm

Re: QuickSwitch

Post by NotNull »

horst.epp wrote: Mon Apr 04, 2022 7:44 am Downloaded compiled and basic checks made with
Total Commander, XYplorer, Explorer
using Open dialogs in Akelpad and WinRAR.
No problems so far :)
:thumbsup:

Just curious: Were the file properties set after you compiled it yourself?
QuickSwich properties.png
QuickSwich properties.png (11.8 KiB) Viewed 360096 times
horst.epp
Posts: 1640
Joined: Fri Apr 04, 2014 3:24 pm

Re: QuickSwitch

Post by horst.epp »

Downloaded compiled and basic checks made with
Total Commander, XYplorer, Explorer
using Open dialogs in Akelpad and WinRAR.
No problems so far :)
NotNull
Posts: 5961
Joined: Wed May 24, 2017 9:22 pm

Re: QuickSwitch

Post by NotNull »

QuickSwitch 0.5 has been released.

Changes:
  • added support for Directory Opus
  • Windows version 7 and up are supported (was: only Win10).
    Win7 is not tested yet, btw. But should work.

Download link to the compiled versions ( :o ) and new installation instructions are in the opening post.
AutoSwitch exception has been described in that post too as that wasn't obvious to everyone (or anyone?).
NotNull
Posts: 5961
Joined: Wed May 24, 2017 9:22 pm

Re: QuickSwitch

Post by NotNull »

Posted a long story, thinking this was about JumpToFolder ... Deleted.
autocart wrote: Sat Apr 02, 2022 8:21 pm BTW, QAP does work with Dopus out of the box and is open source AHK code. So, if you need even more inspiration, it might be another source for that.
Wasn't that pay-ware? Would not expect it to be open source. Will check it out anyway. Thanks for the suggestion!
IIRC, it's predecessor - PopupFolders (?) - was opensource and free. I did check that out in the past.

EDIT: You are right! The sources are on GitHub...

autocart wrote: Sat Apr 02, 2022 8:26 pm I agree to everything.
The date of the "runtime" version inside the 7z says: June 17, 2020
And I agree too :)
But in my opinion for a compiled version a systray menu, an icon and lots more are needed as it keeps "running" in the background.
Just need some time to spend on that so I can confidently publish it as a ready-to-run program.

autocart wrote: Sat Apr 02, 2022 8:29 pm I own a copy of Dopus, so if you need one more tester, I can make myself available.
Thanks for your offer, I'll keep that in mind!
This morning I finished a new version. The Dopus part is all working now.
The code was also rewritten so exceptions to support DOpus 'Explorer Replacement' are no longer needed. Taht interfered massively with Explorer calls.Now It will work with simple, straightforward code.


Will post an new version tomorrow (if the last tests go well). Maybe even a compiled version ;)



Really helpful feedback. Thank you!
autocart
Posts: 16
Joined: Fri Apr 01, 2022 11:59 pm

Re: QuickSwitch

Post by autocart »

One more BTW,
I own a copy of Dopus, so if you need one more tester, I can make myself available.
autocart
Posts: 16
Joined: Fri Apr 01, 2022 11:59 pm

Re: QuickSwitch

Post by autocart »

horst.epp wrote: Fri Mar 11, 2022 7:14 pm The Runtime link in the first post contains a very old version.
It should contain the actual version and the name not be runtime
but rather Executable_Version.
I agree to everything.
The date of the "runtime" version inside the 7z says: June 17, 2020
autocart
Posts: 16
Joined: Fri Apr 01, 2022 11:59 pm

Re: QuickSwitch

Post by autocart »

NotNull wrote: Sat Apr 02, 2022 12:18 am you are using XYplorer, right? Will post about it on the XYplorer forums too
Yes, it is really hard to find a quick switch tool for the open/save dialogs working with XY. There are a few out there but none works well with XY. I adapted QuickAccessPopup - another AHK tool in that area - to work also with XY but something never work perfectly with my adaptions.

BTW, QAP does work with Dopus out of the box and is open source AHK code. So, if you need even more inspiration, it might be another source for that.
NotNull
Posts: 5961
Joined: Wed May 24, 2017 9:22 pm

Re: QuickSwitch

Post by NotNull »

Indeed! :thumbsup:

That saves me the posting on their forums in the short term :)
horst.epp
Posts: 1640
Joined: Fri Apr 04, 2014 3:24 pm

Re: QuickSwitch

Post by horst.epp »

I made some advertising of QuickSwitch in the XY forum.
Looks like with success :)
NotNull
Posts: 5961
Joined: Wed May 24, 2017 9:22 pm

Re: QuickSwitch

Post by NotNull »

autocart wrote: Sat Apr 02, 2022 12:05 am Now, since I am already registerd, I also have a question:
What is wrong with, e.g. Win 8.1?
I commented the Win 10 query out in the code and it seems to work just fine on Win 8.1.
Just to be on the safe side. I was unable to test it on older Windows versions and as I assumed most people would be using Win10 anyways, I simply set that as the lower limit.

But good to know that it works on Win8.1 too!
An update will follow soon (added Directory Opus support and support for Win11), so I will include support for Win8.1 too.
( you are using XYplorer, right? Will post about it on the XYplorer forums too)

Thanks for letting me know you like it! That made my day (admitted: the day is only 2 hours old, but still ... :D )
autocart
Posts: 16
Joined: Fri Apr 01, 2022 11:59 pm

Re: QuickSwitch

Post by autocart »

Hello NotNull,

I just registered to be able to say: "Thank you for this amazing tool!!!!! You made the world a bit a better place by developing and sharing this!!!! THANK YOU :!: :!: :!: " I was desperately looking for a replacement for Listary since I stopped using it a while ago.

Now, since I am already registerd, I also have a question:
What is wrong with, e.g. Win 8.1?
I commented the Win 10 query out in the code and it seems to work just fine on Win 8.1.
NotNull
Posts: 5961
Joined: Wed May 24, 2017 9:22 pm

Re: QuickSwitch

Post by NotNull »

I removed the code again, as I found a bug:
Directory Opus has an "Explorer Replacement" mode, where all calls to File Explorer are intercepted and passed to Opus.
When that mode is enabled, it interfered heavily with my code to get the active folder from Explorer, causing QuickSwitch to stop working.

Working on a solution (will be *very* hard)

If that works, I will upload a compiled version (= runtime + ahk code combined). Much easier ...


Nevertheless, thanks for testing :D


BTW: the runtime is nothing more than a renamed autohotkeyu64.exe
horst.epp
Posts: 1640
Joined: Fri Apr 04, 2014 3:24 pm

Re: QuickSwitch

Post by horst.epp »

Downloaded and succesfully tested the new version.

A few comments:
In the introduction you say its working only for Windows 10.
Its working fine also in Windows 11 of course :)

The Runtime link in the first post contains a very old version.
It should contain the actual version and the name not be runtime
but rather Executable_Version.
NotNull
Posts: 5961
Joined: Wed May 24, 2017 9:22 pm

Re: QuickSwitch

Post by NotNull »

I tried to reproduce this, but didn't succeed.
Which steps did you take that led to QuickSwitch being activated?
arsh999cg
Posts: 1
Joined: Sun Nov 07, 2021 8:00 pm

Re: QuickSwitch

Post by arsh999cg »

Can we ignore applications all dialogs like 7-zip, when extracting by drag and drop the popup opens for each archive, if i click never, then it is appearing for another archive every time.
NotNull
Posts: 5961
Joined: Wed May 24, 2017 9:22 pm

Re: QuickSwitch

Post by NotNull »

wontell wrote: Mon Jan 24, 2022 9:01 am I want to request something, is there any possibility to support this type of dialog (Listary worked there so I'm guessing it is possible?):
(It's used by PowerDVD)
Good suggestion, @wontell!

I did research that (long time ago) and it turned out to be possible, but extremely hard as it is basically some sort of menu structure.
Worse: the menu-entries are named different, depending on your locale.

Microsoft has declared this type of dialogs deprecated after WinXP (15 years ago ..), but you can still find them in some places, like you already found out. Even Windows itself still uses it in Win10! (create a new shortcut > Browse).


I'll see what I can do, but don't hold your breath; it may take me so long that all those legacy dialogs are already phased out :D
NotNull
Posts: 5961
Joined: Wed May 24, 2017 9:22 pm

Re: QuickSwitch

Post by NotNull »

ollehi wrote: Mon Jan 24, 2022 12:10 pm here another link this the best, support for DOpus.
Oh, thanks a lot you for that!!!
I recently contacted Directory Opus and they can give me one extra trial period, which is generous in itself, but will not be enough to implement Dopus support. And buying a license specifically for that .. I'm not sure about that.

Anyway, with the code you linked, I can try to do it "blindfolded" ( without any possibility to test).


I'm positive about my - and your! - chances. Thanks again!
ollehi
Posts: 2
Joined: Fri Jan 14, 2022 11:57 am

Re: QuickSwitch

Post by ollehi »

here another link this the best, support for DOpus.
hope will help you
https://github.com/JnLlnd/FoldersPopup/ ... sPopup.ahk
Post Reply