This commit is contained in:
恍兮惚兮 2024-08-18 23:11:09 +08:00
parent fe4d862fa5
commit 7da45bc3d9
4 changed files with 12 additions and 3 deletions

View File

@ -44,7 +44,7 @@ def registrhotkeys(self):
"_3": self.showsignal.emit,
"_4": lambda: winsharedutils.clipboard_set(gobject.baseobject.currenttext),
"_5": gobject.baseobject.translation_ui.changeshowhideraw,
"_51":gobject.baseobject.translation_ui.changeshowhidetrans,
"_51": gobject.baseobject.translation_ui.changeshowhidetrans,
"_6": lambda: gobject.baseobject.transhis.showsignal.emit(),
"_7": lambda: gobject.baseobject.readcurrent(force=True),
"_8": lambda: gobject.baseobject.translation_ui.changemousetransparentstate(0),
@ -66,6 +66,9 @@ def registrhotkeys(self):
windows.RegisterWindowMessage("Magpie_Core_CLI_Message_ToggleOverlay"),
),
"_26": gobject.baseobject.translation_ui.ocr_once_signal.emit,
"_26_1": gobject.baseobject.translation_ui.ocr_do_function(
gobject.baseobject.translation_ui.ocr_once_follow_rect
),
"_27": gobject.baseobject.translation_ui.simulate_key_enter,
"_28": lambda: winsharedutils.clipboard_set(
gobject.baseobject.currenttranslate

View File

@ -153,7 +153,8 @@ class TS(basetrans):
message += msg
elif t == "stream-end":
break
else:
continue
except:
print_exc()
raise Exception(response_data)

View File

@ -1024,6 +1024,11 @@
"name": "进行一次OCR",
"keystring": ""
},
"_26_1": {
"use": false,
"name": "再次进行OCR",
"keystring": ""
},
"_27": {
"use": false,
"name": "模拟按键Enter",

View File

@ -29,7 +29,7 @@ include(generate_product_version)
set(VERSION_MAJOR 5)
set(VERSION_MINOR 28)
set(VERSION_PATCH 4)
set(VERSION_PATCH 5)
add_library(pch pch.cpp)
target_precompile_headers(pch PUBLIC pch.h)