具有外部可自定义菜单项的全局上下文菜单? [英] Global context menu with externally customizable menu items?

查看:235
本文介绍了具有外部可自定义菜单项的全局上下文菜单?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问候,



从我在印刷行业的日常工作中,我有一个请求......

这是一个场景:



你在Windows资源管理器前面。

你右键点击一个Pdf文件。

Windows上下文菜单出现。

您将鼠标移动到自定义构建的上下文菜单。

此上下文菜单显示菜单项。

您选择第一个。

调用驻留在某个地方的脚本将文件lpr到打印机。



客户希望能够配置使用外部工具(GUI)的上下文菜单的菜单项。本质上,该工具将创建菜单项并将其与基于用户输入生成的脚本相匹配。



这样的东西是否可以实现?

我需要一些指示,可能是对所涉及技术和最佳方法的10000英尺概述。这当然会节省我很多时间。



谢谢!!!

Greetings,

From my day job in the printing industry, I have a request...
Here is the scenario:

You are in front of Windows Explorer.
You right click on a Pdf file.
The Windows context menu appear.
You move the mouse to the custom built context menu.
This context menu then shows menu items.
You select the first one.
A script residing somewhere is called to lpr the file over to a printer.

The customer wants to be able to configure the menu items of the context menu using an external tool (GUI). Essentially that tool would create menu items and match them to scripts generated based on user inputs.

Can something like this even be possible?
I would need to have a few pointers, maybe a 10 000 foot overview of the technologies involved and best approach. This would save me a ton of time of course.

Thank you!!!

推荐答案

它是一项高级任务,但着名的迈克尔·邓恩写了一篇关于编写Shell扩展



在MSDN上我发现 Windows Shell上下文菜单处理程序



前面的一个提示:某些操作仅在进程为admin或UAC时运行被禁用 - 安装,有时调试。



准备好神秘的错误信息 - 欢迎来自DLL-Hell: - O
It is an advanced task, but the famous Michael Dunn wrote an excellent article about Writing Shell Extensions.

And also on MSDN I found Windows Shell context menu handler.

One tip in front: for some actions only run if the process is admin or UAC is disabled - installing and sometimes debugging.

Be prepared of cryptic error messages - "Welcome in DLL-Hell" :-O


这篇关于具有外部可自定义菜单项的全局上下文菜单?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆