Registry Exporter¶
RegistryExporter ¶
Knows how to create a Registrykey from menu.
export_reg_file ¶
export_reg_file(
menu: ContextMenu, bindings: list[ContextMenuBinding]
) -> list[str]
Export the Context Menu as a .reg file format.
Example
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\Software\Classes\*\shell\ConvertVideo]
"MUIVerb"="Convert mp4..."
Returns:
| Type | Description |
|---|---|
list[str]
|
A list of lines of the .reg file. |
References
Source code in windows_context_menus/registry/exporting/registry_exporter.py
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 | |
export_tree ¶
export_tree(menu: ContextMenu) -> RegistryKey
Export as a RegistryKey tree.
Source code in windows_context_menus/registry/exporting/registry_exporter.py
65 66 67 68 69 70 71 72 73 74 | |