MCPcopy Create free account
hub / github.com/T-duality/PillOCR-python / on_screenshot_hotkey_triggered

Method on_screenshot_hotkey_triggered

GPTOCRGUI.py:725–732  ·  view source on GitHub ↗

截图快捷键触发回调

(self)

Source from the content-addressed store, hash-verified

723
724
725 def on_screenshot_hotkey_triggered(self):
726 """截图快捷键触发回调"""
727 # 延迟一小段时间,确保截图已经保存到剪贴板
728 if self.running_state:
729 self.processor.screenshot_hotkey_triggered = True
730 self.log("检测到截图快捷键触发")
731 # 60s 后重置 screenshot_hotkey_triggered 标志
732 threading.Timer(60, lambda: setattr(self.processor, 'screenshot_hotkey_triggered', False)).start()
733
734 def start_processing(self):
735 self.processor.start()

Callers

nothing calls this directly

Calls 2

logMethod · 0.95
startMethod · 0.80

Tested by

no test coverage detected