F4MiniMenu (AHK): F4Menu w. Drag&Drop, filelist, cmdline

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: sheep, Hacker, Stefan2, white

Post Reply
User avatar
Ovg
Power Member
Power Member
Posts: 598
Joined: 2014-01-06, 16:26 UTC
Location: MOW

Re: F4MiniMenu (AHK): F4Menu w. Drag&Drop, filelist, cmdline

Post by *Ovg » 2019-06-07, 15:57 UTC

2lisabon
Small bug for compiled version and when AHK isn't installed
Last edited by Ovg on 2019-06-07, 16:19 UTC, edited 1 time in total.
It's impossible to lead us astray for we don't care even to choose the way.
#259941, TC 9.21a x64, Windows 7 SP1 x64

hi5
Member
Member
Posts: 175
Joined: 2012-11-03, 11:35 UTC
Contact:

Re: F4MiniMenu (AHK): F4Menu w. Drag&Drop, filelist, cmdline

Post by *hi5 » 2019-06-07, 16:17 UTC

@ovg thanks and you're welcome :)
@lisabon try:

v0.96.2 - Fix: adding Try to all Menu, tray, icons to avoid startup error for compiled scripts and autohotkey.exe is not installed.

Source: https://github.com/hi5/F4MiniMenu/
Compiled versions: https://github.com/hi5/F4MiniMenu/releases/
F4MiniMenu - Open selected file(s) from TC in defined editor(s) - A (minimalistic) clone of F4Menu
Source at GitHub (AutoHotkey) - TC Forum thread

hi5
Member
Member
Posts: 175
Joined: 2012-11-03, 11:35 UTC
Contact:

Re: F4MiniMenu (AHK): F4Menu w. Drag&Drop, filelist, cmdline

Post by *hi5 » 2019-06-07, 19:06 UTC

Experimental version (compiled only for testing) to only show programs that match the extension(s) of the selected files here:
https://github.com/hi5/F4MiniMenu/issues/21#issuecomment-500001594

Close your currently running copy of F4MiniMenu (of course), launch the exe, if you press ESC+F1 it should show a filtered menu, so if you have selected a PDF and a PNG it should only show programs where you've defined PDF and PNG as valid extensions. It will always show the default editor.

In the menu there are [numbers] at the end of each entry - that is actually necessary to be able to figure out which program was selected
(long story but this is easy and other methods will be convoluted, error prone and probably not worth the hassle - the numbers don't bother me)

Feedback welcome
F4MiniMenu - Open selected file(s) from TC in defined editor(s) - A (minimalistic) clone of F4Menu
Source at GitHub (AutoHotkey) - TC Forum thread

User avatar
Ovg
Power Member
Power Member
Posts: 598
Joined: 2014-01-06, 16:26 UTC
Location: MOW

Re: F4MiniMenu (AHK): F4Menu w. Drag&Drop, filelist, cmdline

Post by *Ovg » 2019-06-08, 17:40 UTC

2hi5
Good idea, but it would be nice to get rid of these numbers .....
It's impossible to lead us astray for we don't care even to choose the way.
#259941, TC 9.21a x64, Windows 7 SP1 x64

hi5
Member
Member
Posts: 175
Joined: 2012-11-03, 11:35 UTC
Contact:

Re: F4MiniMenu (AHK): F4Menu w. Drag&Drop, filelist, cmdline

Post by *hi5 » 2019-06-08, 19:39 UTC

F4MiniMenu - Open selected file(s) from TC in defined editor(s) - A (minimalistic) clone of F4Menu
Source at GitHub (AutoHotkey) - TC Forum thread

User avatar
Ovg
Power Member
Power Member
Posts: 598
Joined: 2014-01-06, 16:26 UTC
Location: MOW

Re: F4MiniMenu (AHK): F4Menu w. Drag&Drop, filelist, cmdline

Post by *Ovg » 2019-06-09, 14:09 UTC

2hi5
Great! Thank you so much! I'm very grateful. :D :D :D
It's impossible to lead us astray for we don't care even to choose the way.
#259941, TC 9.21a x64, Windows 7 SP1 x64

Axis
Junior Member
Junior Member
Posts: 58
Joined: 2015-07-14, 18:53 UTC

Re: F4MiniMenu (AHK): F4Menu w. Drag&Drop, filelist, cmdline

Post by *Axis » 2019-06-10, 12:54 UTC

hi5 wrote:
2019-06-08, 19:39 UTC
@Ovg as you wish - try version 3 here https://github.com/hi5/F4MiniMenu/issues/21#issuecomment-500001594 :wink:
Hi hi5. :D

The filtered menu seems to work fine (testing version 3).

The script closes ONLY after EACH instance of TC has been closed (so not just the TC instance/file that the same script launched from "TC Path"): I have to close all instances of TC in memory.


Thanks

hi5
Member
Member
Posts: 175
Joined: 2012-11-03, 11:35 UTC
Contact:

Re: F4MiniMenu (AHK): F4Menu w. Drag&Drop, filelist, cmdline

Post by *hi5 » 2019-06-10, 14:19 UTC

Nice to hear the filtered menu seems to be working well - I'll use it at work for a while, if it works I'll make it a new release.

@Axis try number four https://github.com/hi5/F4MiniMenu/issues/21 - in settings there are now two "close" checkboxes, the second one should do what you want and only close the TC that was started by F4MM "Close F4MM (Starting TC only, experimental)"
F4MiniMenu - Open selected file(s) from TC in defined editor(s) - A (minimalistic) clone of F4Menu
Source at GitHub (AutoHotkey) - TC Forum thread

Axis
Junior Member
Junior Member
Posts: 58
Joined: 2015-07-14, 18:53 UTC

Re: F4MiniMenu (AHK): F4Menu w. Drag&Drop, filelist, cmdline

Post by *Axis » 2019-06-10, 14:49 UTC

hi5 wrote:
2019-06-10, 14:19 UTC
in settings there are now two "close" checkboxes, the second one should do what you want and only close the TC that was started by F4MM "Close F4MM (Starting TC only, experimental)"
Number four: It works!! (selected "Close F4MM (Starting TC only, experimental)" only)

Many thanks :D

hi5
Member
Member
Posts: 175
Joined: 2012-11-03, 11:35 UTC
Contact:

Re: F4MiniMenu (AHK): F4Menu w. Drag&Drop, filelist, cmdline

Post by *hi5 » 2019-06-15, 09:56 UTC

Test version 5 https://github.com/hi5/F4MiniMenu/issues/21

* Show full menu if there are no matching editors for the ext.
* Always show shortcut to full menu + option to set accelerator key (settings)
* Fix to prevent empty entries in menu after using Configure Editors/add new editor
F4MiniMenu - Open selected file(s) from TC in defined editor(s) - A (minimalistic) clone of F4Menu
Source at GitHub (AutoHotkey) - TC Forum thread

hi5
Member
Member
Posts: 175
Joined: 2012-11-03, 11:35 UTC
Contact:

Re: F4MiniMenu (AHK): F4Menu w. Drag&Drop, filelist, cmdline

Post by *hi5 » 2019-07-03, 18:02 UTC

v0.97 - released https://github.com/hi5/F4MiniMenu

a) New: option for filtered foreground menu: only show programs that match selected extensions. See Settings for setup. https://github.com/hi5/F4MiniMenu/issues/21
b) Fix: correctly use %commander_path% in Editor listview IL_Add routine (if v.Icon isn't set)
c) Fix: Editor - Set as Default should now work correctly
d) Fix: Editor - cancel should now work more reliably by using .clone()
e) Only save settings when actually changing them e.g. no longer at each start/exit of the script
f) New: Option(s) to Close F4MiniMenu when TC closes

Compiled: https://github.com/hi5/F4MiniMenu/releases
F4MiniMenu - Open selected file(s) from TC in defined editor(s) - A (minimalistic) clone of F4Menu
Source at GitHub (AutoHotkey) - TC Forum thread

dindog
Member
Member
Posts: 160
Joined: 2010-10-18, 07:41 UTC

Re: F4MiniMenu (AHK): F4Menu w. Drag&Drop, filelist, cmdline

Post by *dindog » 2019-10-14, 13:17 UTC

what does the drag&drop mean? drag from where and drop to wherer? would you please explain how exactly that mean? I could drag selected files to a open application wihthout any help of other applications.

hi5
Member
Member
Posts: 175
Joined: 2012-11-03, 11:35 UTC
Contact:

Re: F4MiniMenu (AHK): F4Menu w. Drag&Drop, filelist, cmdline

Post by *hi5 » 2019-10-18, 16:58 UTC

dindog wrote:
2019-10-14, 13:17 UTC
what does the drag&drop mean?
It tries to simulate the "drag & drop selected files into an application" just like you would manually (select files, left click+drag mouse to other app and drop).

For example: I use an old graphics program that would open three instances (start the program three times) when I would open three jpeg files via F4MiniMenu. But it supports drag & drop so I use that method to open all three jpegs in only one instance of the program, which is what I want. For most program you probably don't need it, but it nice to have at hand. At least I think so :)
F4MiniMenu - Open selected file(s) from TC in defined editor(s) - A (minimalistic) clone of F4Menu
Source at GitHub (AutoHotkey) - TC Forum thread

dindog
Member
Member
Posts: 160
Joined: 2010-10-18, 07:41 UTC

Re: F4MiniMenu (AHK): F4Menu w. Drag&Drop, filelist, cmdline

Post by *dindog » 2019-10-19, 06:02 UTC

hi5 wrote:
2019-10-18, 16:58 UTC
dindog wrote:
2019-10-14, 13:17 UTC
what does the drag&drop mean?
It tries to simulate the "drag & drop selected files into an application" just like you would manually (select files, left click+drag mouse to other app and drop).

For example: I use an old graphics program that would open three instances (start the program three times) when I would open three jpeg files via F4MiniMenu. But it supports drag & drop so I use that method to open all three jpegs in only one instance of the program, which is what I want. For most program you probably don't need it, but it nice to have at hand. At least I think so :)
Oh, I see. You know what, I kinda excited to learn what this drag & drop mean, because I have been longing for a app choose work like this, because AutoCAD start by it own laucher, it I bind the DWG files to acad.exe, every file will open an instances instead of start a new tab in the exist instance..... but after a brief test, it seem F4mm don't get well with drag & drop with AutoCAD... anyway, nice work.

hi5
Member
Member
Posts: 175
Joined: 2012-11-03, 11:35 UTC
Contact:

Re: F4MiniMenu (AHK): F4Menu w. Drag&Drop, filelist, cmdline

Post by *hi5 » 2019-10-19, 07:38 UTC

Some thoughts:
* Perhaps AutoCAD is running as administrator (and in that case F4mm should also run as admin I think)
* Perhaps AutoCAD isn't running yet and/or the files are dropped to quickly, you can try and play with the D&D and Open delays (in milliseconds)
2.1 Drag & Drop delay gives program to start up before trying to drop the files - you may need to apply trail and error.
2.2 Open delay, pauses X ms to open next file.
Possibly: Quick search shows you're not the only one it seems with that request :) Some people use a launcher (I don't know anything about your version of course)

https://forums.autodesk.com/t5/autocad-forum/open-multiple-drawings-using-one-autocad-window-only-in-windows/td-p/3083076/page/2
https://github.com/vanowm/AutoCAD2000-2002_Launcher (perhaps use this as "editor" in F4mm)
F4MiniMenu - Open selected file(s) from TC in defined editor(s) - A (minimalistic) clone of F4Menu
Source at GitHub (AutoHotkey) - TC Forum thread

Post Reply