I want to create a keyboard shortcut for the Right click > Add to archive... feature of 7z, in the Windows File Explorer.
This nearly works with AutoHotkey:
#z::
SendInput {AppsKey}a{Enter}
Return
Indeed APPSKEY then A is sometimes okay:
but sometimes not okay, for example, when the selected file is a Folder:
for which another menu item would be selected for the letter "A" (here, "Add to MPC-HC playlist").
Important notes:
I could manually find in
regedit.exe
the various Context menu items for Files, for Folders, for every possible File extension (too many possible extensions!), but this would be too long... wouldn't it? (*)I already tried with a "Cascaded context menu" for 7z (this is available in the 7z-File-manager > Tools > Options... > 7-Zip menu), but things are even worse. Depending on the context, the letter are not the same and then it's impossible to associate a consistent hotkey
A solution would be that 7z would register
&Add to archive...
instead of justAdd to archive...
in the context menus. If I remember well&
in the regedit context menu settings is what helps the context menu to use a letter shortcut. Is there an option for this? Sadly this doesn't seem available directly in 7-zip.
(*) Would it be still possible with few regedit
editions? i.e. replace Add to archive...
by &Add to archive
? In how many keys/values should this be done? In:
HKEY_CLASSES_ROOT\Folder\ShellEx\ContextMenuHandlers\7-Zip
I see:
{23170F69-40C1-278A-1000-000100020000}
Can this be useful?