pot-app / pot-desktop

🌈一个跨平台的划词翻译和OCR软件 | A cross-platform software for text translation and recognition.
https://pot-app.com
GNU General Public License v3.0
9.15k stars 418 forks source link

[BUG]: 划词翻译按快捷键没反应,连窗口都没有弹出来 #869

Closed OnismV closed 1 week ago

OnismV commented 1 week ago

Description

image 如图,我按快捷键没有任何反应,快捷键确定是正常的,我重新设置快捷键也没用

Reproduction

更新完3.0.4就这样了,上个版本还正常来着

Platform

Windows

System Version

Windows 11 家庭中文版 22631.3810

Window System (Linux Only)

None

Software Version

3.0.4

Log File

[2024-06-27][04:27:39][ERROR][selection::windows] get_text_by_automation error:操作成功完成。 (0x00000000) [2024-06-27][04:27:39][INFO][selection::windows] fallback to get_text_by_clipboard [2024-06-27][04:27:39][DEBUG][enigo] using default settings [2024-06-27][04:27:39][DEBUG][enigo::platform::win_impl] connection established on windows [2024-06-27][04:27:39][DEBUG][enigo::platform::win_impl] key(key: Control, direction: Release) [2024-06-27][04:27:39][TRACE][enigo::keycodes] Key::try_from(key: Control) [2024-06-27][04:27:39][TRACE][enigo::keycodes] virtual key: VIRTUAL_KEY(17)) [2024-06-27][04:27:39][DEBUG][enigo::platform::win_impl] removed the key Control from the held keys [2024-06-27][04:27:39][DEBUG][enigo::platform::win_impl] key(key: Alt, direction: Release) [2024-06-27][04:27:39][TRACE][enigo::keycodes] Key::try_from(key: Alt) [2024-06-27][04:27:39][TRACE][enigo::keycodes] virtual key: VIRTUAL_KEY(18)) [2024-06-27][04:27:39][DEBUG][enigo::platform::win_impl] removed the key Alt from the held keys [2024-06-27][04:27:39][DEBUG][enigo::platform::win_impl] key(key: Shift, direction: Release) [2024-06-27][04:27:39][TRACE][enigo::keycodes] Key::try_from(key: Shift) [2024-06-27][04:27:39][TRACE][enigo::keycodes] virtual key: VIRTUAL_KEY(16)) [2024-06-27][04:27:39][DEBUG][enigo::platform::win_impl] removed the key Shift from the held keys [2024-06-27][04:27:39][DEBUG][enigo::platform::win_impl] key(key: Space, direction: Release) [2024-06-27][04:27:39][TRACE][enigo::keycodes] Key::try_from(key: Space) [2024-06-27][04:27:39][TRACE][enigo::keycodes] virtual key: VIRTUAL_KEY(32)) [2024-06-27][04:27:39][DEBUG][enigo::platform::win_impl] removed the key Space from the held keys [2024-06-27][04:27:39][DEBUG][enigo::platform::win_impl] key(key: Meta, direction: Release) [2024-06-27][04:27:39][TRACE][enigo::keycodes] Key::try_from(key: Meta) [2024-06-27][04:27:39][TRACE][enigo::keycodes] virtual key: VIRTUAL_KEY(91)) [2024-06-27][04:27:39][DEBUG][enigo::platform::win_impl] removed the key Meta from the held keys [2024-06-27][04:27:39][DEBUG][enigo::platform::win_impl] key(key: Tab, direction: Release) [2024-06-27][04:27:39][TRACE][enigo::keycodes] Key::try_from(key: Tab) [2024-06-27][04:27:39][TRACE][enigo::keycodes] virtual key: VIRTUAL_KEY(9)) [2024-06-27][04:27:39][DEBUG][enigo::platform::win_impl] removed the key Tab from the held keys [2024-06-27][04:27:39][DEBUG][enigo::platform::win_impl] key(key: Escape, direction: Release) [2024-06-27][04:27:39][TRACE][enigo::keycodes] Key::try_from(key: Escape) [2024-06-27][04:27:39][TRACE][enigo::keycodes] virtual key: VIRTUAL_KEY(27)) [2024-06-27][04:27:39][DEBUG][enigo::platform::win_impl] removed the key Escape from the held keys [2024-06-27][04:27:39][DEBUG][enigo::platform::win_impl] key(key: CapsLock, direction: Release) [2024-06-27][04:27:39][TRACE][enigo::keycodes] Key::try_from(key: CapsLock) [2024-06-27][04:27:39][TRACE][enigo::keycodes] virtual key: VIRTUAL_KEY(20)) [2024-06-27][04:27:39][DEBUG][enigo::platform::win_impl] removed the key CapsLock from the held keys [2024-06-27][04:27:39][DEBUG][enigo::platform::win_impl] key(key: C, direction: Release) [2024-06-27][04:27:39][TRACE][enigo::keycodes] Key::try_from(key: C) [2024-06-27][04:27:39][TRACE][enigo::keycodes] virtual key: VIRTUAL_KEY(67)) [2024-06-27][04:27:39][DEBUG][enigo::platform::win_impl] removed the key C from the held keys [2024-06-27][04:27:39][DEBUG][enigo::platform::win_impl] key(key: Control, direction: Press) [2024-06-27][04:27:39][TRACE][enigo::keycodes] Key::try_from(key: Control) [2024-06-27][04:27:39][TRACE][enigo::keycodes] virtual key: VIRTUAL_KEY(17)) [2024-06-27][04:27:39][DEBUG][enigo::platform::win_impl] added the key Control to the held keys [2024-06-27][04:27:39][DEBUG][enigo::platform::win_impl] key(key: C, direction: Click) [2024-06-27][04:27:39][TRACE][enigo::keycodes] Key::try_from(key: C) [2024-06-27][04:27:39][TRACE][enigo::keycodes] virtual key: VIRTUAL_KEY(67)) [2024-06-27][04:27:39][DEBUG][enigo::platform::win_impl] key(key: Control, direction: Release) [2024-06-27][04:27:39][TRACE][enigo::keycodes] Key::try_from(key: Control) [2024-06-27][04:27:39][TRACE][enigo::keycodes] virtual key: VIRTUAL_KEY(17)) [2024-06-27][04:27:39][DEBUG][enigo::platform::win_impl] removed the key Control from the held keys [2024-06-27][04:27:39][DEBUG][enigo::platform::win_impl] released all held keys [2024-06-27][04:27:39][INFO][pot::window] Mouse position: 550, 1329 [2024-06-27][04:27:39][INFO][pot::window] Current Monitor: Monitor { name: Some("\\.\DISPLAY1"), size: PhysicalSize { width: 2560, height: 1440 }, position: PhysicalPosition { x: 0, y: 0 }, scale_factor: 1.5 } [2024-06-27][04:27:39][INFO][pot::window] Window not existence, Creating new window: translate [2024-06-27][04:27:40][TRACE][os_info::imp] windows::current_platform is called [2024-06-27][04:27:40][TRACE][os_info::imp] Returning Info { os_type: Windows, version: Semantic(10, 0, 22631), edition: Some("Windows 11 CoreCountrySpecific"), codename: None, bitness: X64, architecture: Some("x86_64") } [2024-06-27][04:27:40][TRACE][hyper::client::pool] checkout waiting for idle connection: ("https", fanyi.baidu.com) [2024-06-27][04:27:40][DEBUG][reqwest::connect] starting new connection: https://fanyi.baidu.com/ [2024-06-27][04:27:40][DEBUG][reqwest::connect] proxy(http://127.0.0.1:7897) intercepts 'https://fanyi.baidu.com/' [2024-06-27][04:27:40][TRACE][hyper::client::connect::http] Http::connect; scheme=Some("http"), host=Some("127.0.0.1"), port=Some(Port(7897)) [2024-06-27][04:27:40][DEBUG][hyper::client::connect::http] connecting to 127.0.0.1:7897 [2024-06-27][04:27:40][DEBUG][hyper::client::connect::http] connected to 127.0.0.1:7897 [2024-06-27][04:27:40][TRACE][reqwest::connect] tunneling HTTPS over proxy [2024-06-27][04:27:40][TRACE][hyper::client::conn] client handshake Http1 [2024-06-27][04:27:40][TRACE][hyper::client::client] handshake complete, spawning background dispatcher task [2024-06-27][04:27:40][TRACE][hyper::proto::h1::conn] flushed({role=client}): State { reading: Init, writing: Init, keep_alive: Busy } [2024-06-27][04:27:40][TRACE][hyper::client::pool] checkout dropped for ("https", fanyi.baidu.com) [2024-06-27][04:27:40][TRACE][tracing::span] encode_headers; [2024-06-27][04:27:40][TRACE][tracing::span::active] -> encode_headers; [2024-06-27][04:27:40][TRACE][hyper::proto::h1::role] Client::encode method=POST, body=Some(Known(1635)) [2024-06-27][04:27:40][TRACE][tracing::span::active] <- encode_headers; [2024-06-27][04:27:40][TRACE][tracing::span] -- encode_headers;

Additional Information

No response

OnismV commented 1 week ago

刚更新了3.0.5,还是这样

Pylogmon commented 1 week ago

image

OnismV commented 1 week ago

image

image 已经是关闭的状态,没用

Pylogmon commented 1 week ago

把配置文件删了

OnismV commented 1 week ago

把配置文件删了

OK,现在正常了。谢谢。