Skip to content

Commit

Permalink
add sample and update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ikas-mc committed Oct 26, 2021
1 parent c1c3609 commit abc7cae
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 35 deletions.
39 changes: 8 additions & 31 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,38 +1,15 @@
# Context Menu For Windows11

## Demos For Context Menu

```
ContextMenuCustom/ContextMenuCustomHost/SzExplorerCommand.cpp
```

```xml
<desktop4:Extension Category="windows.fileExplorerContextMenus">
<desktop4:FileExplorerContextMenus>
<desktop5:ItemType Type="*" >
<desktop5:Verb Id="Command1" Clsid="46F650E5-9959-48D6-AC13-A9637C5B3787" />
</desktop5:ItemType>
</desktop4:FileExplorerContextMenus>
</desktop4:Extension>
<com:Extension Category="windows.comServer">
<com:ComServer>
<com:SurrogateServer DisplayName="Context menu verb handler">
<com:Class Id="46F650E5-9959-48D6-AC13-A9637C5B3787" Path="ContextMenuHost.dll" ThreadingModel="STA"/>
</com:SurrogateServer>
</com:ComServer>
</com:Extension>

```

## Custom Context Menu

1. how to build
https://github.com/ikas-mc/ContextMenuForWindows11/blob/main/build.md
## Custom Context Menu

2. how to use
https://github.com/ikas-mc/ContextMenuForWindows11/issues/2
<img src="https://raw.githubusercontent.com/ikas-mc/ContextMenuForWindows11/main/screenshots/menu.png" width=500 >


## how to build
https://github.com/ikas-mc/ContextMenuForWindows11/blob/main/build.md

## how to use
https://github.com/ikas-mc/ContextMenuForWindows11/issues/2

## more

Expand All @@ -50,4 +27,4 @@ https://github.com/microsoft/terminal/tree/fb597ed304ec6eef245405c9652e9b8a029b8

https://github.com/MicrosoftDocs/windows-uwp/blob/docs/hub/apps/desktop/modernize/integrate-packaged-app-with-file-explorer.md

https://github.com/zhuxb711/RX-Explorer/tree/master/OpenDirectoryExt
https://github.com/zhuxb711/RX-Explorer/tree/master/OpenDirectoryExt
11 changes: 7 additions & 4 deletions build.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,14 @@
(you can change the output to ContextMenuCustomApp debug or release bin folder)

## build ContextMenuCustomApp
1. just build
1. change PackageCertificateKey
2. build

## build ContextMenuCustomPackage
1. set this project as startup project
2. build and run

1. change PackageCertificateKey
2. set this project as startup project
3. build and run

# publish
1. clean all
Expand All @@ -35,4 +38,4 @@ Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
./Install.ps1
Set-ExecutionPolicy -ExecutionPolicy AllSigned -Scope CurrentUser
```
```
1 change: 1 addition & 0 deletions menuSample/open git sync.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"title":"open git sync","exe":"\"C:\\Program Files\\TortoiseGit\\bin\\TortoiseGitProc.exe\"","param":"/command:sync /path:\"{path}\"","icon":""}
1 change: 1 addition & 0 deletions menuSample/open in 7z.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"title":"open in 7z","exe":"\"C:\\Program Files\\7-Zip\\7zG.exe\"","param":"x \"{path}\" -o\"{path}\"~"}
1 change: 1 addition & 0 deletions menuSample/open in new explorer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"title":"open in new explorer","exe":"explorer","param":"\"{path}\""}
1 change: 1 addition & 0 deletions menuSample/open in notepad3.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"title":"open in notepad3","exe":"\"C:\\Program Files\\Notepad3\\Notepad3.exe\"","param":"\"{path}\""}
1 change: 1 addition & 0 deletions menuSample/open in vscode.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"title":"open in vscode","exe":"code","param":"\"{path}\""}
Binary file added screenshots/menu.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit abc7cae

Please sign in to comment.