topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Sunday April 5, 2020, 2:20 am
  • Proudly celebrating 15 years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: A similar function to Listary's Quick Switch function?  (Read 1182 times)

About:blank

  • Supporting Member
  • Joined in 2012
  • **
  • default avatar
  • Posts: 6
    • View Profile
    • Donate to Member
A similar function to Listary's Quick Switch function?
« on: March 03, 2020, 03:31 AM »
A while ago I've discovered Listary's Quick Switch function, and it became indispensable in my workflow ever since.
I like FARR better overall but I'm greatly missing this functionality. I was wondering if there might be a way to add this functionality to FARR natively or using a plugin/clever hack.

I'm aware that one can mimic this functionality using an AHK script, but would prefer not to have to run another program in the background just to achieve this.


BGM

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 438
    • View Profile
    • bgmCoder DC
    • Read more about this member.
    • Donate to Member
Re: A similar function to Listary's Quick Switch function?
« Reply #1 on: March 03, 2020, 08:48 AM »
I've used Listary for a long time - and it's exactly this feature that I love the most.  There are some others, but this is the best.  It works with my file manager, FreeCommander, too, without flaw.

Listary does run ListaryService.exe along with ListaryHookHelper32.exe and ListaryHookHelper64.exe to hook application windows.

Screenshot_012.pngA similar function to Listary's Quick Switch function?

About:blank

  • Supporting Member
  • Joined in 2012
  • **
  • default avatar
  • Posts: 6
    • View Profile
    • Donate to Member
Re: A similar function to Listary's Quick Switch function?
« Reply #2 on: March 03, 2020, 09:18 AM »
Yes, I've also noticed that Listary spins up a couple of processes to achieve this. I guess there's no way around it and wouldn't mind FARR doing the same if need be.
I've gotten so used to this feature that I honestly struggle to go back.

skajfes

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 259
    • View Profile
    • Donate to Member
Re: A similar function to Listary's Quick Switch function?
« Reply #3 on: March 03, 2020, 10:00 AM »
Honestly, I don't see how this should be a FARR feature. I know FARR is awesome, but IMHO it is awesome precisely because it does one thing and does it well.
It is impossible to make anything foolproof because fools are so ingenious.

About:blank

  • Supporting Member
  • Joined in 2012
  • **
  • default avatar
  • Posts: 6
    • View Profile
    • Donate to Member
Re: A similar function to Listary's Quick Switch function?
« Reply #4 on: March 03, 2020, 10:07 AM »
Fair enough. You make a valid point.
To me, however, FARR is more than a program launcher. It's more of a platform for getting around the system and performing quick actions that would otherwise be less convenient.

Nod5

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,019
    • View Profile
    • Donate to Member
Re: A similar function to Listary's Quick Switch function?
« Reply #5 on: March 03, 2020, 11:34 AM »
I'm with Skajfes. This task (changing the folder in a save file... window) seems like a job for a windowless hotkey tool, not a GUI based file launcher like FARR.

I'm aware that one can mimic this functionality using an AHK script, but would prefer not to have to run another program in the background just to achieve this.

If there already is an AutoHotkey script that does what you want (link?) then why not use that? What is the downside in your view?
« Last Edit: March 03, 2020, 12:55 PM by Nod5 »

About:blank

  • Supporting Member
  • Joined in 2012
  • **
  • default avatar
  • Posts: 6
    • View Profile
    • Donate to Member
Re: A similar function to Listary's Quick Switch function?
« Reply #6 on: March 03, 2020, 02:01 PM »
There are several scripts, such as this one but it's not working that reliability in my experience.

There are also scripts that allow to select a currently opened folder from a list, which is more convenient than nothing, but it's still not as efficient.

Nod5

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,019
    • View Profile
    • Donate to Member
Re: A similar function to Listary's Quick Switch function?
« Reply #7 on: March 04, 2020, 11:03 AM »
There are several scripts, such as this one but it's not working that reliability in my experience.
There are also scripts that allow to select a currently opened folder from a list, which is more convenient than nothing, but it's still not as efficient.
In what way is it unreliable on your computer? I made an AutoHotkey script for the Ctrl+G feature and it seems to run without any issues on my PC. Will test it some more and post somewhere later on if I don't experience any problems with it.

rjbull

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 3,077
    • View Profile
    • Donate to Member
Re: A similar function to Listary's Quick Switch function?
« Reply #8 on: March 04, 2020, 03:25 PM »
I'm a long-term big fan of Listary...  When at my PC, I more or less 'live' within my favourite file manager, Total Commander. Listary's ability to steer the dialog box to whatever is the active directory in TC is invaluable.  Listary supports several other file managers etc. too.

Suggestion - from a non-programmer...  I don't know how Listary acquires the active directory from the file managers.  If FARR can offer the same information (ask Mouser), maybe you could persuade Channing to add it to Listary?

DC has older discussions on dialog box extenders, but I believe they mostly offer favourite and recent directories, not the switching feature that's so useful that for me, it's more less worth the modest asking cost of Listary on its own.

MilesAhead

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 7,604
    • View Profile
    • Miles Ahead Software
    • Donate to Member
Re: A similar function to Listary's Quick Switch function?
« Reply #9 on: March 04, 2020, 03:58 PM »
There are several scripts, such as this one but it's not working that reliability in my experience.

There are also scripts that allow to select a currently opened folder from a list, which is more convenient than nothing, but it's still not as efficient.

Some time ago I was trying to create a similar AHK Tray program to paste the last active Explorer Window path into the active window, such as a save or open dialog.  It works after a fashion using the file folder caption to get the folder path.  It does not work with shell objects or library locations such as This PC or Documents because searching through all the open windows is very slow.  As a speed trade off I used the stipulation that the Windows folder settings must have "Display full path in Title Bar" enabled.

It would be great if we could figure out a way to have it work for all folders.  I have attached a Zip with source I will upload to my site soon.  If anyone finds any errors or has suggestions to make it work without relying on the window caption I would welcome them.


Nod5

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,019
    • View Profile
    • Donate to Member
Re: A similar function to Listary's Quick Switch function?
« Reply #10 on: March 04, 2020, 05:46 PM »
Maybe this should be moved to the Coding Snacks section?

I more or less 'live' within my favourite file manager, Total Commander. Listary's ability to steer the dialog box to whatever is the active directory in TC is invaluable.  Listary supports several other file managers etc. too.

Do you with "steer" mean one of these or something else?
1. when in the Save As window, the user presses a hotkey to make Listary change the Save As window path to the last active Explorer window's path
2. when a Save As window opens, Listary automatically and immediately changes the Save As window path to the last active Explorer window's path

Feature 1 seems pretty simple to clone, 2 more complex.

... the Windows folder settings must have "Display full path in Title Bar" enabled.  ...
I'm probably missing something here, but why not get the Explorer window paths via ComObj?

Nod5

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,019
    • View Profile
    • Donate to Member
Re: A similar function to Listary's Quick Switch function?
« Reply #11 on: March 04, 2020, 06:00 PM »
Here's my first AutoHotkey attempt at some of these features. Probably has some issues. But works ok in some tests on my Win 10 x64 PC at least. Only works with File Explorer.

SaveAsPathHelper.ahk
https://gist.github....7ab6762833d5442fef5d

rjbull

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 3,077
    • View Profile
    • Donate to Member
Re: A similar function to Listary's Quick Switch function?
« Reply #12 on: March 05, 2020, 04:50 PM »
I more or less 'live' within my favourite file manager, Total Commander. Listary's ability to steer the dialog box to whatever is the active directory in TC is invaluable.  Listary supports several other file managers etc. too.

Do you with "steer" mean one of these or something else? [...]

Something else. Suppose you have one of Listary's supported file managers in one window, and you are currently at the File Open/Close dialog of any arbitrary program in another window.  Alt+Tab to the file manager, Alt+Tab back to the dialog, and Listary will point the dialog to the active directory in the file manager.  I had even more fun testing this with two supported file managers  :)  The Web site currently lists:

Listary supports most of the popular 3rd-party file managers:

    Directory Opus
    Total Commander
    XYplorer
    xplorer2
    FreeCommander XE
    SpeedCommander
    One Commander

The Options screen lists several others.

Nod5

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,019
    • View Profile
    • Donate to Member
Re: A similar function to Listary's Quick Switch function?
« Reply #13 on: March 06, 2020, 04:50 AM »
Alt+Tab to the file manager, Alt+Tab back to the dialog

Ok, I added a similar feature to SaveAsPathHelper.ahk just now.
Alt+Tab from file dialogue window to Explorer window and back within 5 seconds: update file dialogue window with Explorer path

Listary supports most of the popular 3rd-party file managers

Doable, but would for each such file manager need this pair of information:
- how to detect the window (what AutoHotkey's Window Spy utility shows as ahk_exe and ahk_class when the file manager is active)
- how to get the current folder path from the window (I guess this varies, but whatever Listary is doing this script could probably also do if the method is public e.g. getting path from window title, control text, DDE, windows message, keyboard shortcut, ...)

I don't use any of the listed file managers but if anyone who does gives me the above info pair I might add support for it.

MilesAhead

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 7,604
    • View Profile
    • Miles Ahead Software
    • Donate to Member
Re: A similar function to Listary's Quick Switch function?
« Reply #14 on: March 06, 2020, 07:18 AM »

... the Windows folder settings must have "Display full path in Title Bar" enabled.  ...
-MilesAhead (March 04, 2020, 03:58 PM)
I'm probably missing something here, but why not get the Explorer window paths via ComObj?


I did an explorer folder watcher utility(FolderCache) and looping through all windows for a match bogged things.  If in response to a hotkey press it should be fine though.  It is informative watching how you approach the features.  I may end up using yours rather than my own at some point.   :Thmbsup:

Nod5

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,019
    • View Profile
    • Donate to Member
Re: A similar function to Listary's Quick Switch function?
« Reply #15 on: March 10, 2020, 02:34 PM »
I updated SaveAsPathHelper.ahk to fix an issue that can make the path change fail in some cases (due to a quirk in how AutoHotkey's ControlClick command works)
https://gist.github....7ab6762833d5442fef5d

I think the scripts is very useful! If I may say so :) Feedback welcome, especially from those who have used Listary's Quick Switch feature a lot and can tell me what my scripts is still lacking (apart from support for other file managers than File Explorer).