Skip to content

Conversation

@LanYun2022
Copy link

No description provided.

@Jack251970 Jack251970 added the bug Something isn't working label Jan 25, 2026
@Jack251970 Jack251970 linked an issue Jan 25, 2026 that may be closed by this pull request
3 tasks
@Jack251970
Copy link
Owner

Follow on with #68

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

该 PR 旨在修复 Windows 11 上基于 VBScript/mshta 的右键相关功能失效的问题,通过在较新系统上改用 PowerShell 执行。

Changes:

  • 在增强菜单字典中将“复制路径”在 >= 10.0 系统上改为 PowerShell Set-Clipboard
  • ShellExecuteDialog.GetCommand 在 Windows 10+ 上改为生成 PowerShell Start-Process 命令替代 mshta vbscript:shellexecute
  • ObjectPath.ExtractFilePath 新增对上述 PowerShell Start-Process -FilePath ... 命令的解析支持

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
ContextMenuManager/Properties/Resources/Texts/EnhanceMenusDic.xml CopyAsPath 按 OSVersion 拆分实现,Win10+ 使用 PowerShell 复制到剪贴板
ContextMenuManager/Methods/ObjectPath.cs 增加对 PowerShell Start-Process -FilePath 命令的文件路径提取逻辑
ContextMenuManager/Controls/ShellExecuteDialog.cs Win10+ 生成 PowerShell Start-Process 命令,旧系统保留 VBScript/mshta 分支

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Jack251970 Jack251970 merged commit bceb5c2 into Jack251970:master Jan 26, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: 使用VBScript实现的右键功能失效

2 participants