F4Menu for all v0.58
Moderators: Hacker, petermad, Stefan2, white
v0.55 available now, it will be the last version in this year if there's no serious bug.
http://www.shanny.com.cn/f4menu/
[2010-10-10 0.55]
+ F4Menu.ini [Option] ShellMenu=1 indicate whether show context menu for windows explorer
! Cannot handle the filename parameter which contains space but not enclosed by quota (thanks to Balderstrom@tc)
http://www.shanny.com.cn/f4menu/
[2010-10-10 0.55]
+ F4Menu.ini [Option] ShellMenu=1 indicate whether show context menu for windows explorer
! Cannot handle the filename parameter which contains space but not enclosed by quota (thanks to Balderstrom@tc)
TCEE, TCPP, F4Menu -- Shanny
if ShellMenu=1 thenMVV wrote:Shanny, please describe what exactly ShellMenu parameter does and how to use it.
F4menu try to add context menu for windows explorer, the effect is equal to run F4Menu -a
else
do nothing
(run F4Menu -r manually can remove the context menu and set ShellMenu to 0)
end if
TCEE, TCPP, F4Menu -- Shanny
If program failed changing registry, it doesn't show any message at all but changes ShellMenu parameter (e.g. if my profile has no admin rights or I have UAC). I think it should warn user and/or restart itself in elevated mode (using ShellExecute[Ex] function with "runas" verb - Windows will ask user for confirmation) on fail.
Does F4Menu try to add context menus every time it is started? It seems that ShellMenu option is not necessary - if I start program with ShellMenu=1 and w/o context menu item it doesn't add it (even when started with admin rights), same for ShellMenu=0 when context menu item exists.
Does F4Menu try to add context menus every time it is started? It seems that ShellMenu option is not necessary - if I start program with ShellMenu=1 and w/o context menu item it doesn't add it (even when started with admin rights), same for ShellMenu=0 when context menu item exists.

Almost yes when ShellMenu=1, it try to do that before exit, so don't worry about the performanceDoes F4Menu try to add context menus every time it is started?

Since F4Menu try to do that every time, I don't wanna annoy user, keep it silent is better.I think it should warn user and/or restart itself in elevated mode (using ShellExecute[Ex] function with "runas" verb - Windows will ask user for confirmation) on fail.
In future version, I'll add a new checkbox in option window for this value, at that time, the warning is necessary.
Most users run app with admin rights, so it's useful for themIt seems that ShellMenu option is not necessary - if I start program with ShellMenu=1 and w/o context menu item it doesn't add it (even when started with admin rights), same for ShellMenu=0 when context menu item exists.

TCEE, TCPP, F4Menu -- Shanny
Great idea to run registry check on exit. 
Since Vista/7 most users run apps w/o admin rights even if they don't know about it - UAC does it for them.
So most Windows 7 users will start F4Menu w/o elevation. And, it is good practice for safety do not start all apps with admin rights even in Windows XP.

Since Vista/7 most users run apps w/o admin rights even if they don't know about it - UAC does it for them.

Sure, you're right.MVV wrote:Since Vista/7 most users run apps w/o admin rights even if they don't know about it - UAC does it for them.So most Windows 7 users will start F4Menu w/o elevation. And, it is good practice for safety do not start all apps with admin rights even in Windows XP.
However I think most users are still use WinXP and with admin rights

Anyway, that's still a rough function, I'll think the detail over in future.
Great thanks for your opinion!

TCEE, TCPP, F4Menu -- Shanny
Shanny, I think that by default Win+F4 should be assigned for foreground mode instead of background - to open associated files w/o menu by F4. Current behaviour may confuse some users because F4Menu always shows menu even for associated files (if user doesn't configure it).
And please add an option to display menu in background mode if more than one editor is registered with file type - some users like this feature in similar tools. Or maybe even another mixed mode with separate key combination (like default editor mode).
Also many users are still waiting for removing extra menu items from main menu and separator before 'More programs'.
I think last three items may be safely moved to 'More programs' submenu or hidden at all - 'Other program', 'Settings' and 'About'. So we will get in main menu just list of editors - and it will be great. 
I hope you'll find some time this year.
And please add an option to display menu in background mode if more than one editor is registered with file type - some users like this feature in similar tools. Or maybe even another mixed mode with separate key combination (like default editor mode).
Also many users are still waiting for removing extra menu items from main menu and separator before 'More programs'.


I hope you'll find some time this year.

Well, for the experienced users, F4 for background mode is OKShanny, I think that by default Win+F4 should be assigned for foreground mode instead of background - to open associated files w/o menu by F4. Current behaviour may confuse some users because F4Menu always shows menu even for associated files (if user doesn't configure it).
But for the novice, I think it's improper, because thus they even don't know how to show the option window, and have no chance to learn pressing "Win+F4" for foreground mode.
OK, thanks for your suggestion again!And please add an option to display menu in background mode if more than one editor is registered with file type - some users like this feature in similar tools. Or maybe even another mixed mode with separate key combination (like default editor mode).
I'll add the option.

Sorry for that, I'll try to do it in next version: add separator before 'More programs' and remove 'About',Also many users are still waiting for removing extra menu items from main menu and separator before 'More programs'. I think last three items may be safely moved to 'More programs' submenu or hidden at all - 'Other program', 'Settings' and 'About'. So we will get in main menu just list of editors - and it will be great.
As for 'Other program' & 'Settings', I have no decision yet, maybe keep current status, or move the former to submenu.
I hope so, anyway, if you have any new idea, please post it here, thanks!I hope you'll find some time this year.
TCEE, TCPP, F4Menu -- Shanny
I think 'Settings' may be optionally moved to context menu of editors ('Settings' and 'Modify' are similar, may be placed near) - as for me, 'Settings' is not needed frequently so can be opened via context menu.
Item 'Other program' may be optionally moved to 'More programs' - it is logical (e.g. after separator) - some INI switch may be added for this (e.g. I prefer to move this item from main menu while some another user not).
Also INI option to hide first item would be useful for some users (with choices: 0 - show always, as now, default value, 1 - show only when multiple files opened, 2 - never show).
Theese settings are at-once so I don't think they require additional switches in GUI (some users will set them once in INI and forget).
So it will be possible to have only list of editors in main menu.
Item 'Other program' may be optionally moved to 'More programs' - it is logical (e.g. after separator) - some INI switch may be added for this (e.g. I prefer to move this item from main menu while some another user not).
Also INI option to hide first item would be useful for some users (with choices: 0 - show always, as now, default value, 1 - show only when multiple files opened, 2 - never show).
Theese settings are at-once so I don't think they require additional switches in GUI (some users will set them once in INI and forget).
So it will be possible to have only list of editors in main menu.

Last edited by MVV on 2010-10-14, 08:43 UTC, edited 4 times in total.
tosbsas, do one of theese actions:
* open TC in elevated mode and start F4Menu.exe with parameter -a;
* open CMD in eleavated mode and start F4Menu.exe with parameter -a;
* create LNK for F4Menu.exe, append parameter -a to its command and start it in elevated mode.
Message box will be shown on success. Then every file's context menu will have item to open it with F4Menu.
* open TC in elevated mode and start F4Menu.exe with parameter -a;
* open CMD in eleavated mode and start F4Menu.exe with parameter -a;
* create LNK for F4Menu.exe, append parameter -a to its command and start it in elevated mode.
Message box will be shown on success. Then every file's context menu will have item to open it with F4Menu.
thanks for this nice tool.. i have a question which might have been answered but i couldn't find it in this thread.
i'm a ChiceEditor user and i would like to know if it is possible to replicate a certain behaviour of ChoiceEditor in F4Menu.
consider this scenario..
1. Menu doesn't Appears (auto-open)
a) Opening an established file like PNG (let's say with IrfanView), then it is opened immediately in IrfanView
2. Menu Appears
a) Opening an established file like XML and there are several options (XML Notepad, PSPad, Notepad2, etc), then a menu with those apps are shown.
b) when an unrecognized extension is selected then the menu appears with all the apps.
on my part, i can't get 2(b) to work. for an unrecognized extension, F4Menu auto-opens with the default application and it returns an error (naturally as it's not the designated app).
so can someone help me to clarify if there is a way to do this?
thank you
i'm a ChiceEditor user and i would like to know if it is possible to replicate a certain behaviour of ChoiceEditor in F4Menu.
consider this scenario..
1. Menu doesn't Appears (auto-open)
a) Opening an established file like PNG (let's say with IrfanView), then it is opened immediately in IrfanView
2. Menu Appears
a) Opening an established file like XML and there are several options (XML Notepad, PSPad, Notepad2, etc), then a menu with those apps are shown.
b) when an unrecognized extension is selected then the menu appears with all the apps.
on my part, i can't get 2(b) to work. for an unrecognized extension, F4Menu auto-opens with the default application and it returns an error (naturally as it's not the designated app).
so can someone help me to clarify if there is a way to do this?
thank you
- Balderstrom
- Power Member
- Posts: 2148
- Joined: 2005-10-11, 10:10 UTC