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
hi5
Senior Member
Senior Member
Posts: 200
Joined: 2012-11-03, 11:35 UTC
Contact:

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

Post by *hi5 »

@Axis so you would prefer to ALWAYS start a new instance of TC when you start F4MiniMenu?

I could make the checkbox in the settings a dropdown menu:

1. Do not start Total Commander (default)
2. Start Total Commander if not Running
3. Always start Total Commander
F4MiniMenu - Open selected file(s) from TC in defined editor(s) - A (minimalistic) clone of F4Menu
Source at GitHub (AutoHotkey) - TC Forum thread. TCSyncComments (copy file comments)
Axis
Junior Member
Junior Member
Posts: 63
Joined: 2015-07-14, 18:53 UTC

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

Post by *Axis »

hi5 wrote:
2019-05-26, 10:00 UTC
@Axis so you would prefer to ALWAYS start a new instance of TC when you start F4MiniMenu?
I mean (maybe an option) always start the TC's executive file (e.g. totalcmd64.exe) indicated in F4MiniMenu's"TC Path".
hi5 wrote:
2019-05-26, 10:00 UTC
I could make the checkbox in the settings a dropdown menu:

1. Do not start Total Commander (default)
2. Start Total Commander if not Running
3. Always start Total Commander
It would seem ideal (if it's not too much trouble) :)

Thanks
hi5
Senior Member
Senior Member
Posts: 200
Joined: 2012-11-03, 11:35 UTC
Contact:

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

Post by *hi5 »

OK I've started working on it - sneak preview https://github.com/hi5/F4MiniMenu/issues/22#issue-448973199
F4MiniMenu - Open selected file(s) from TC in defined editor(s) - A (minimalistic) clone of F4Menu
Source at GitHub (AutoHotkey) - TC Forum thread. TCSyncComments (copy file comments)
Axis
Junior Member
Junior Member
Posts: 63
Joined: 2015-07-14, 18:53 UTC

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

Post by *Axis »

hi5 wrote:
2019-05-27, 19:36 UTC
sneak preview https://github.com/hi5/F4MiniMenu/issues/22#issue-448973199
There is also the option "Start TC even if It's running (set TC Path)", right?
("if It's running" is related to the process from another tc1.exe file, not from tc2.exe that inserted in the TC Path; see the example in my prev post)


A suggestion (if ever possible :shock:): I put many editors in "Editor Settings", so the menu (ESC-F4) has become quite long.
It would be possible to insert in the menu (ESC-F4) only the editors (or make a submenu) related to the extension of the file selected in the TC?


Example:

F4MiniMenu Editor Settings
-------------------------------------------------------------------------
__Program ______________________ Extensions___

C:\Program-01 ___________________ png,jpeg
C:\Program-02 ___________________ txt,xml,rtf,html
C:\Program-03 ___________________ ai
C:\Program-04 ___________________ html
C:\Program-05 ___________________ exe,dll,com
C:\Program-06 ___________________ mobi,epub
C:\Program-07 ___________________ exe,dll,com
< ... > __________________________ < ... >
< ... > __________________________ < ... >
< ... > __________________________ < ... >
-------------------------------------------------------------------------


Now if I select a library file (.dll) in TC, the menu (ESC-F4) should list only the Program-05 and Program-07 :)


Thanks
hi5
Senior Member
Senior Member
Posts: 200
Joined: 2012-11-03, 11:35 UTC
Contact:

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

Post by *hi5 »

Axis wrote:
2019-05-28, 05:33 UTC
A suggestion (if ever possible :shock:): ... only the editors (or make a submenu) related to the extension of the file selected in the TC?
Yes, that would be possible (I have to make it of course) - it is on the suggestion list here #21 - Filtered menu vs foreground entire menu. I'll work on that after the features mentioned above.
F4MiniMenu - Open selected file(s) from TC in defined editor(s) - A (minimalistic) clone of F4Menu
Source at GitHub (AutoHotkey) - TC Forum thread. TCSyncComments (copy file comments)
hi5
Senior Member
Senior Member
Posts: 200
Joined: 2012-11-03, 11:35 UTC
Contact:

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

Post by *hi5 »

Axis wrote:
2019-05-28, 05:33 UTC
There is also the option "Start TC even if It's running (set TC Path)", right?
("if It's running" is related to the process from another tc1.exe file, not from tc2.exe that inserted in the TC Path; see the example in my prev post)
The available options are/will be:

1 - Do not start TC (default) <- this is what the current checkbox does if unchecked
2 - Start TC if not Running (set TC Path) <- this is what the current checkbox does if checked
3 - Always start TC (set TC Path) <- the new option

For 2 & 3 it will use whatever is set in "TC Path" - doesn't have to be TC, could be notepad.exe :-)

What 2 won't do is check which version of TC is running and launch the TC path "exe". I think that is such a rare use case I will not consider it. No doubt you have a use case for running two versions of TC but I can't think of one myself.

Alternatives:
  1. as I mentioned, it can be any program so you can also start a batch file, in that batch file you can start as many programs as you like.
  2. what I might consider is allow several programs to be started via "TC path", separated by a |. Say you would like to launch both 32 and 64bit versions of TC at the same time, you'd enter "c:\totalcmd\TOTALCMD.EXE|c:\totalcmd\TOTALCMD64.EXE" and it would run both of these programs. Would that work for you?
  3. you can write a small AutoHotkey (or other script) that checks which program is already running and based on that run something else e.g. it sees TC 32bit, it launches 64bit or older version of TC. You can compile such a script to an EXE which would read data from an ini file for example.
F4MiniMenu - Open selected file(s) from TC in defined editor(s) - A (minimalistic) clone of F4Menu
Source at GitHub (AutoHotkey) - TC Forum thread. TCSyncComments (copy file comments)
Axis
Junior Member
Junior Member
Posts: 63
Joined: 2015-07-14, 18:53 UTC

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

Post by *Axis »

hi5 wrote:
2019-05-28, 17:56 UTC
The available options are/will be:

1 - Do not start TC (default) <- this is what the current checkbox does if unchecked
2 - Start TC if not Running (set TC Path) <- this is what the current checkbox does if checked
3 - Always start TC (set TC Path) <- the new option

For 2 & 3 it will use whatever is set in "TC Path" - doesn't have to be TC, could be notepad.exe :-)
Number 3 to me is very good :)


Thankks
hi5
Senior Member
Senior Member
Posts: 200
Joined: 2012-11-03, 11:35 UTC
Contact:

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

Post by *hi5 »

OK, will be ready this weekend I think :)
F4MiniMenu - Open selected file(s) from TC in defined editor(s) - A (minimalistic) clone of F4Menu
Source at GitHub (AutoHotkey) - TC Forum thread. TCSyncComments (copy file comments)
hi5
Senior Member
Senior Member
Posts: 200
Joined: 2012-11-03, 11:35 UTC
Contact:

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

Post by *hi5 »

v0.96 - https://github.com/hi5/F4MiniMenu/
  1. Added options to "Total Commander" startup settings on request viewtopic.php?p=355595#p355595 (always start, close F4MiniMenu)
  2. dpi + fix to avoid Gui error when calling New editor from menu while Browse Gui was active.
  3. tray menu: icons, right click opens tray menu, added "Open" to check keyhistory etc
Compiled versions here https://github.com/hi5/F4MiniMenu/releases/ (32/64 bit and also F4TCIE, see https://github.com/hi5/F4MiniMenu/#helper-script-f4tcieahk- )
Last edited by hi5 on 2019-06-06, 19:48 UTC, edited 1 time in total.
F4MiniMenu - Open selected file(s) from TC in defined editor(s) - A (minimalistic) clone of F4Menu
Source at GitHub (AutoHotkey) - TC Forum thread. TCSyncComments (copy file comments)
Axis
Junior Member
Junior Member
Posts: 63
Joined: 2015-07-14, 18:53 UTC

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

Post by *Axis »

Thanks a lot hi5 :!: :D
User avatar
Ovg
Power Member
Power Member
Posts: 657
Joined: 2014-01-06, 16:26 UTC
Location: MOW

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

Post by *Ovg »

Hi, hi5 :D

Close F4MiniMenu on exit from TC doesn't work. It seems that this setting not present in ini file even after saving ....
Last edited by Ovg on 2019-06-07, 04:34 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.51 x64, Windows 7 SP1 x64
hi5
Senior Member
Senior Member
Posts: 200
Joined: 2012-11-03, 11:35 UTC
Contact:

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

Post by *hi5 »

Ah yes, INI, never use it so always forget about it :lol: thanks for reporting it.

v0.96.1 - Fix: adding close F4MiniMenu setting to INI version (iob.ahk) - fingers crossed :)

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. TCSyncComments (copy file comments)
User avatar
Ovg
Power Member
Power Member
Posts: 657
Joined: 2014-01-06, 16:26 UTC
Location: MOW

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

Post by *Ovg »

Thank you, I'll check later! :D
It's impossible to lead us astray for we don't care even to choose the way.
#259941, TC 9.51 x64, Windows 7 SP1 x64
lisabon
Junior Member
Junior Member
Posts: 34
Joined: 2014-11-22, 12:57 UTC

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

Post by *lisabon »

2hi5
Hi! How this fix it?

Code: Select all

Error:  Can't load icon.

Specifically: Suspend Hotkeys

	Line#
--->	055: Menu,tray,Icon,&Suspend Hotkeys,%A_AhkPath%,3

The current thread will exit.
User avatar
Ovg
Power Member
Power Member
Posts: 657
Joined: 2014-01-06, 16:26 UTC
Location: MOW

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

Post by *Ovg »

2hi5

Working like a charm! Maaaany Thanks!!!

:mrgreen: :mrgreen: :mrgreen: :mrgreen:
It's impossible to lead us astray for we don't care even to choose the way.
#259941, TC 9.51 x64, Windows 7 SP1 x64
Post Reply