我可以编辑文本字段的上下文菜单(不是资源管理器上下文菜单)吗? [英] Can I edit the context menu of a text field (not Explorer context menu)?

查看:94
本文介绍了我可以编辑文本字段的上下文菜单(不是资源管理器上下文菜单)吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在文本字段的上下文菜单中添加一个条目,例如:

I want to add an entry to the context menu of a text field, eg:

我有一个AutoHotkey可执行文件,它将突出显示的文本放入剪贴板,然后在Chrome中使用剪贴板执行Google搜索。我想要一个注册表添加项,使我可以在菜单中单击运行该可执行文件。我已经在资源管理器上下文菜单中实现了此功能(用于使用第三方应用程序处理文件等),但是在任何地方都没有提及更改此特定菜单的功能。

I have an AutoHotkey executable that will put highlighted text into the clipboard, then execute a Google search in Chrome with the clipboard. I would like a registry addition that gives me a single-click in the menu, that runs that executable. I have achieved this in the Explorer context menu (for processing of files with third-party applications, etc), but I have found no mention anywhere of the ability to change this specific menu.

推荐答案

;菜单Google搜索自动热键脚本:在任何文本编辑字段中选择任何文本,然后按
AppsKey& RButton ::
^ + g ::;或按Ctrl + Shift + g
菜单,GoogleSearch,添加,使用Google搜索,GoogleSearch
菜单,GoogleSearch,显示
返回

;Menu Google Search Autohotkey script: select any text in any text edit field, then press AppsKey & RButton:: ^+g:: ; or press Ctrl+Shift+g Menu,GoogleSearch,Add,Search with Google,GoogleSearch Menu,GoogleSearch,Show return

Google搜索:
{
发送,^ c
睡眠50
运行, http://www.google.com/search?q=%clipboard%
返回
}

GoogleSearch: { Send, ^c Sleep 50 Run, http://www.google.com/search?q=%clipboard% Return }

这篇关于我可以编辑文本字段的上下文菜单(不是资源管理器上下文菜单)吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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