# \[DictTango\] 利用Text-Grab 实现DictTango的屏幕取词

**URL:** <https://forum.freemdict.com/t/topic/22705>\
**Category:** DictTango\
**Created:** [2023 年8 月 13 日 05:11 UTC](https://forum.freemdict.com/t/topic/22705 "2023-08-13T05:11:46Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![glacierlee](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/glacierlee/32/74595_2.png) [@glacierlee](https://forum.freemdict.com/u/glacierlee)\
**Post date:** [2023 年8 月 13 日 05:11 UTC](https://forum.freemdict.com/t/topic/22705/1 "2023-08-13T05:11:46Z")

</div>

基于一个Github的项目实现了DictTango的屏幕取词。

插件下载地址：

> **[Text-Grab 取词.zip](https://cloud.freemdict.com/index.php/s/9PzkznL9nSNLkz2)**
>
> FreeMdict Cloud - A FreeMdict Storage

修改后的源代码：

> **[GitHub - Jimex/Text-Grab-Tango: A copy of text grab that send the text result...](https://github.com/Jimex/Text-Grab-Tango/)**
>
> A copy of text grab that send the text result to DictTango floating window - Jimex/Text-Grab-Tango

实现原理：

1. Text-Grab 通过OCR获取文字
2. Text-Grab向DictTango的本地虚拟服务器发送请求
3. DictTango的本地虚拟服务器接收请求后向主窗口要求进行浮动窗口查词

取词步骤：

1. 打开DicTango (需要1.1.41以上版本，打开后主窗口可以关闭，不用一直显示）
2. 运行Text-Grab
3. 按快捷键 Win + Shift + F 调用屏幕取词
4. 单击或者框选要进行取词的地方

取词效果:

已知问题：  
有时候取词后没有弹出浮动窗口，可能的原因：

1. OCR失败
2. DictTango没有打开
3. 其它错误，可以查看Text-Grab目录下的日志

---

<div class="post-metadata">

**Author:** ![hjtoh](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/h/e99b99/32.png) [@hjtoh](https://forum.freemdict.com/u/hjtoh)\
**Post date:** [2026 年9 月 18 日 08:41 UTC](https://forum.freemdict.com/t/topic/22705/2 "2026-09-18T08:41:53Z")

</div>

您好，取词工具有维护吗？还是有新的方法了？只有第一次取词的时候可以查询，之后都没有查词效果。

---

<div class="post-metadata">

**Author:** ![glacierlee](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/glacierlee/32/74595_2.png) [@glacierlee](https://forum.freemdict.com/u/glacierlee)\
**Post date:** [2026 年9 月 18 日 13:15 UTC](https://forum.freemdict.com/t/topic/22705/3 "2026-09-18T13:15:19Z")

</div>

我有空检查一下看

---

<div class="post-metadata">

**Author:** ![glacierlee](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/glacierlee/32/74595_2.png) [@glacierlee](https://forum.freemdict.com/u/glacierlee)\
**Post date:** [2026 年9 月 19 日 00:50 UTC](https://forum.freemdict.com/t/topic/22705/4 "2026-09-19T00:50:19Z")

</div>

下版本会直接在DictTango本身实现取词

---

<div class="post-metadata">

**Author:** ![hjtoh](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/h/e99b99/32.png) [@hjtoh](https://forum.freemdict.com/u/hjtoh)\
**Post date:** [2026 年9 月 19 日 01:43 UTC](https://forum.freemdict.com/t/topic/22705/5 "2026-09-19T01:43:58Z")

</div>

那就太好了，我等下个版本。
