Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]: 划词翻译在某些场景无法捕获选中的文本 #957

Open
freesrz93 opened this issue Oct 16, 2024 · 1 comment
Open

[BUG]: 划词翻译在某些场景无法捕获选中的文本 #957

freesrz93 opened this issue Oct 16, 2024 · 1 comment

Comments

@freesrz93
Copy link

Description

在某些场景下, 选择文本后使用快捷键唤起划词翻译无法获取选中的文本, 输入框中内容为上次翻译的内容或为空.

Reproduction

典型场景:

  • Gmail 网页版, 选择任意一封邮件的内容, 均无法捕获
  • VSCode 编辑器内选中内容无法捕获

Platform

Windows

System Version

Windows 11 家庭中文版 26120.2122

Window System (Linux Only)

None

Software Version

3.0.5

Log File

[2024-10-16][14:48:19][INFO][selection::windows] get_text_by_automation is empty
[2024-10-16][14:48:19][INFO][selection::windows] fallback to get_text_by_clipboard
[2024-10-16][14:48:19][DEBUG][enigo] using default settings
[2024-10-16][14:48:19][DEBUG][enigo::platform::win_impl] �[93mconnection established on windows�[0m
[2024-10-16][14:48:19][DEBUG][enigo::platform::win_impl] �[93mkey(key: Control, direction: Release)�[0m
[2024-10-16][14:48:19][TRACE][enigo::keycodes] Key::try_from(key: Control)
[2024-10-16][14:48:19][TRACE][enigo::keycodes] virtual key: VIRTUAL_KEY(17))
[2024-10-16][14:48:19][DEBUG][enigo::platform::win_impl] removed the key Control from the held keys
[2024-10-16][14:48:19][DEBUG][enigo::platform::win_impl] �[93mkey(key: Alt, direction: Release)�[0m
[2024-10-16][14:48:19][TRACE][enigo::keycodes] Key::try_from(key: Alt)
[2024-10-16][14:48:19][TRACE][enigo::keycodes] virtual key: VIRTUAL_KEY(18))
[2024-10-16][14:48:19][DEBUG][enigo::platform::win_impl] removed the key Alt from the held keys
[2024-10-16][14:48:19][DEBUG][enigo::platform::win_impl] �[93mkey(key: Shift, direction: Release)�[0m
[2024-10-16][14:48:19][TRACE][enigo::keycodes] Key::try_from(key: Shift)
[2024-10-16][14:48:19][TRACE][enigo::keycodes] virtual key: VIRTUAL_KEY(16))
[2024-10-16][14:48:19][DEBUG][enigo::platform::win_impl] removed the key Shift from the held keys
[2024-10-16][14:48:19][DEBUG][enigo::platform::win_impl] �[93mkey(key: Space, direction: Release)�[0m
[2024-10-16][14:48:19][TRACE][enigo::keycodes] Key::try_from(key: Space)
[2024-10-16][14:48:19][TRACE][enigo::keycodes] virtual key: VIRTUAL_KEY(32))
[2024-10-16][14:48:19][DEBUG][enigo::platform::win_impl] removed the key Space from the held keys
[2024-10-16][14:48:19][DEBUG][enigo::platform::win_impl] �[93mkey(key: Meta, direction: Release)�[0m
[2024-10-16][14:48:19][TRACE][enigo::keycodes] Key::try_from(key: Meta)
[2024-10-16][14:48:19][TRACE][enigo::keycodes] virtual key: VIRTUAL_KEY(91))
[2024-10-16][14:48:19][DEBUG][enigo::platform::win_impl] removed the key Meta from the held keys
[2024-10-16][14:48:19][DEBUG][enigo::platform::win_impl] �[93mkey(key: Tab, direction: Release)�[0m
[2024-10-16][14:48:19][TRACE][enigo::keycodes] Key::try_from(key: Tab)
[2024-10-16][14:48:19][TRACE][enigo::keycodes] virtual key: VIRTUAL_KEY(9))
[2024-10-16][14:48:19][DEBUG][enigo::platform::win_impl] removed the key Tab from the held keys
[2024-10-16][14:48:19][DEBUG][enigo::platform::win_impl] �[93mkey(key: Escape, direction: Release)�[0m
[2024-10-16][14:48:19][TRACE][enigo::keycodes] Key::try_from(key: Escape)
[2024-10-16][14:48:19][TRACE][enigo::keycodes] virtual key: VIRTUAL_KEY(27))
[2024-10-16][14:48:19][DEBUG][enigo::platform::win_impl] removed the key Escape from the held keys
[2024-10-16][14:48:19][DEBUG][enigo::platform::win_impl] �[93mkey(key: CapsLock, direction: Release)�[0m
[2024-10-16][14:48:19][TRACE][enigo::keycodes] Key::try_from(key: CapsLock)
[2024-10-16][14:48:19][TRACE][enigo::keycodes] virtual key: VIRTUAL_KEY(20))
[2024-10-16][14:48:19][DEBUG][enigo::platform::win_impl] removed the key CapsLock from the held keys
[2024-10-16][14:48:19][DEBUG][enigo::platform::win_impl] �[93mkey(key: C, direction: Release)�[0m
[2024-10-16][14:48:19][TRACE][enigo::keycodes] Key::try_from(key: C)
[2024-10-16][14:48:19][TRACE][enigo::keycodes] virtual key: VIRTUAL_KEY(67))
[2024-10-16][14:48:19][DEBUG][enigo::platform::win_impl] removed the key C from the held keys
[2024-10-16][14:48:19][DEBUG][enigo::platform::win_impl] �[93mkey(key: Control, direction: Press)�[0m
[2024-10-16][14:48:19][TRACE][enigo::keycodes] Key::try_from(key: Control)
[2024-10-16][14:48:19][TRACE][enigo::keycodes] virtual key: VIRTUAL_KEY(17))
[2024-10-16][14:48:19][DEBUG][enigo::platform::win_impl] added the key Control to the held keys
[2024-10-16][14:48:19][DEBUG][enigo::platform::win_impl] �[93mkey(key: C, direction: Click)�[0m
[2024-10-16][14:48:19][TRACE][enigo::keycodes] Key::try_from(key: C)
[2024-10-16][14:48:19][TRACE][enigo::keycodes] virtual key: VIRTUAL_KEY(67))
[2024-10-16][14:48:19][DEBUG][enigo::platform::win_impl] �[93mkey(key: Control, direction: Release)�[0m
[2024-10-16][14:48:19][TRACE][enigo::keycodes] Key::try_from(key: Control)
[2024-10-16][14:48:19][TRACE][enigo::keycodes] virtual key: VIRTUAL_KEY(17))
[2024-10-16][14:48:19][DEBUG][enigo::platform::win_impl] removed the key Control from the held keys
[2024-10-16][14:48:19][DEBUG][enigo::platform::win_impl] released all held keys
[2024-10-16][14:48:19][ERROR][selection::windows] get_text_by_automation error:Copy Failed

Additional Information

No response

@uqiu
Copy link

uqiu commented Nov 21, 2024

貌似还没修复的样子,我今天刚开始用,就触发这个BUG了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants