FavMenu 2.0

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

Moderators: Hacker, petermad, Stefan2, white

Post Reply
TealC
Junior Member
Junior Member
Posts: 96
Joined: 2005-08-10, 11:34 UTC

Post by *TealC »

majkinetor ! wrote:2TealC
You can set icon size for the menu in _TestParams. Set to 24 or 16 and find nice icons.

Take a look at 16x16 icon size screenshot
looks nice, thanks!

But i don't like icons in favmenu, because they only make the dialog field bigger, and are of no use (apart from the nice looks of course) for me, since i control favmenu entirely by keyboard.

But it sure is nice to have the possibility.
Minchen
Junior Member
Junior Member
Posts: 36
Joined: 2006-04-11, 09:01 UTC

Post by *Minchen »

I like the icons and the possibilty to show them in different sizes.
It's pretty good to have "small little helpers" to identificate the menu entries faster.
I'm looking forward to a new updated version... :D

2majkinetor
Thanks a lot for your hard work.
User avatar
majkinetor !
Power Member
Power Member
Posts: 1580
Joined: 2006-01-18, 07:56 UTC
Contact:

Post by *majkinetor ! »

You are welcome 2Minchen.
Its getting really hard now, complexity of this script is bigger on eatch new version

In the final, icon size will be submenu item option. So, on the picture for instance, for the submenu "d: Work", you will be able to set icon size for THAT menu. For instance, you could be able to set really big icons for your work projects, like 256, and still have main menu with small icons. Then, as title is optional, you could be able to set blank titles, and have icon only menus. With the break option that is comming, to horziontaly break the menu at items position, you will be able to create horizontal menus like this one (MMenu already supports it, but i have to connect it to FM3):

Take a look at the screenshot

2TealC
But i don't like icons in favmenu, because they only make the dialog field bigger, and are of no use (apart from the nice looks of course) for me, since i control favmenu entirely by keyboard.
They do a dialog bigger for 16 pixels if you put 16x16 icons etc... not spectaculary big, you must admit. Apart from the nice looks, the icon role is to being able to easy identify some items. That will be the role of the text color too, besides icons. I do realise that you do have hotkey shortcuts for your FM3 items, but with big menus its not enough (btw, i am thinking of adding regular hotkeys to menu items...). Besides, you will be not able to use keyboard with icon-only items, like the horizontal menu above. And more impotant, menu may sometimes loos focus and the only way to control it is the mouse.
Habemus majkam!
User avatar
majkinetor !
Power Member
Power Member
Posts: 1580
Joined: 2006-01-18, 07:56 UTC
Contact:

Post by *majkinetor ! »

FM3 a6

- Added new icon dialog in both Properties and Editor. Click on the icon in the Properties to open it. Properties dialog function correctly now. You can set only *.ico files now. Resource icons will be added soon

- New feature: SHIFT + enter/click on executable item will open its folder.

Download
Habemus majkam!
TucknDar
Senior Member
Senior Member
Posts: 227
Joined: 2003-02-07, 09:44 UTC
Location: Oslo
Contact:

Post by *TucknDar »

Great improvements, majkinetor!

Looking forward to the Resource icons, btw ;)
license #76904
User avatar
majkinetor !
Power Member
Power Member
Posts: 1580
Joined: 2006-01-18, 07:56 UTC
Contact:

Post by *majkinetor ! »

thx tuckndar

Please redownload. I forgot to remove some debugining lines previously so Properties dialog was poping up on startup
Habemus majkam!
gorth
Junior Member
Junior Member
Posts: 2
Joined: 2007-03-10, 15:28 UTC

Post by *gorth »

majkinetor !:

Is it possible to extract the current directory easily (and use it as an input to cmd.exe or a cygwin shell)? I looked at the wiki, which only seems to contain fixed paths as pseudovariables. It would great if the current directory was exported as a pseudovariable, say CURRENTDIR.
User avatar
roentgen
Power Member
Power Member
Posts: 757
Joined: 2005-12-03, 19:58 UTC

Post by *roentgen »

2gorth
If I understood correctly what you mean by "extract the current directory", then use Control+Shift+Enter.
TC for Linux please!
VadiMGP
Power Member
Power Member
Posts: 672
Joined: 2003-04-05, 12:11 UTC
Location: Israel

Post by *VadiMGP »

2majkinetor !
Although I don't use AHK but I must say - it looks very impressive! 8)

BTW. Some time ago I started to to write something similar in C++(much more limited), but didn't finish it anyway. Mainly because i wanted to attach to the menu also directories from TC tabs, but didn't find the way to retrive directories from TC tabs. What do you think - is it feasible?
User avatar
majkinetor !
Power Member
Power Member
Posts: 1580
Joined: 2006-01-18, 07:56 UTC
Contact:

Post by *majkinetor ! »

2 gorth
ctrl + shift + enter will send the path to the edit. U can use it in any place that you are allowed to type.

2VadiMGP
It seems that it is not possible to use API (on first glance), but i think the one can send command to TC to save panel to file, then you can read that file to get the panels :) TC receives commands on WM_COPYDATA "channel". TC History can also be obtained that way: cm_ConfigSaveDirHistory in TC7 b4 will save current history in wincmd.ini, so you can simply send this message and read the ini afterwards.



So, it can be done but it will not happen in FM3 soon.
Last edited by majkinetor ! on 2007-03-10, 23:12 UTC, edited 1 time in total.
Habemus majkam!
VadiMGP
Power Member
Power Member
Posts: 672
Joined: 2003-04-05, 12:11 UTC
Location: Israel

Post by *VadiMGP »

i think the one can send command to TC to save panel to file,
What command do you mean? I know OPENTABS command but there no SAVETABS.
User avatar
majkinetor !
Power Member
Power Member
Posts: 1580
Joined: 2006-01-18, 07:56 UTC
Contact:

Post by *majkinetor ! »

Hmh... i thought there is one, but there isn't.
Well, then this is they way:

cm_ConfigSaveSettings=580 will save tabs in wincmd.ini

[lefttabs]
0_path=d:\Utils\_Scripts\autohotkey\FavMenu 3\Res\
1_path=d:\
2_path=d:\Utils\Total Commander\LANGUAGE\
activetab=0
Habemus majkam!
gorth
Junior Member
Junior Member
Posts: 2
Joined: 2007-03-10, 15:28 UTC

Post by *gorth »

2majkinetor !
2roentgen

Thanks to the both of you, but that wasn't quite what I was looking for. I should have been more clear in my question. What I'm looking for is a way to access the path of the current active tab so I can use it as a parameter to cmd prompt. This way I would be able to add a "Open CMD prompt here" in the menu. Is that more clear? ;)

Looking through the sourcecode I see there's a FavMenu_DialogGetPath() function, which is probably what I'm looking for. Is there anyway I can reach/call this function from a menu item?
User avatar
majkinetor !
Power Member
Power Member
Posts: 1580
Joined: 2006-01-18, 07:56 UTC
Contact:

Post by *majkinetor ! »

There is no way you can currently use current tc folders as parameters although i can manage that in a seconds, there are already bunch of TC functions i crated in tc_func.ahk one of them to be GetCurrentTCDIr that will return path. U can easily change FM so when it sees something like $TCA, to replace it with path returned from that function.


To change the directory NOW, to the ANY of the dirs in favmenu, including current tc folders at first two position you do this:

1. Open console
2. FM3 Hotkey + 1/2

I keep my hotkey as ` so I do just `1 or `2 to change the dir within console. As those keys are ner, it is instant, and you can do it when you realise you need to change as your cmd line will be restored.

You can do this at any time, even when you typed something on the prompt. Favmenu will change the dir and restore your writting back.

You can also add console commands as FM3 executables. For instance, you specify command to be
echo %TIME% - %DATE%

Now, when you are in console you can just execute this item regulary. Out of console it will not work.
Habemus majkam!
VadiMGP
Power Member
Power Member
Posts: 672
Joined: 2003-04-05, 12:11 UTC
Location: Israel

Post by *VadiMGP »

cm_ConfigSaveSettings=580 will save tabs in wincmd.ini
Yes, I thought about it but there another problems:
1. wincmd.ini could be read-only;
2. many users want always start TC in the same configuration so wincmd.ini should be restored.

Well, may be next year SAVETABS command will be added. :)
Post Reply