From 598934123459017656eba2d8aede22e0b8af763a Mon Sep 17 00:00:00 2001 From: BrunoGeorgevich Date: Wed, 21 May 2025 15:45:55 +0100 Subject: [PATCH] fix: add sleep duration before pressing ctrl+c Ensure the clipboard has sufficient time to update by adding a sleep duration before executing the ctrl+c command. --- Windows_and_Linux/WritingToolApp.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Windows_and_Linux/WritingToolApp.py b/Windows_and_Linux/WritingToolApp.py index fdd81b8..9b2833f 100644 --- a/Windows_and_Linux/WritingToolApp.py +++ b/Windows_and_Linux/WritingToolApp.py @@ -352,6 +352,7 @@ def press_ctrl_c(): kbrd.release('c') kbrd.release(pykeyboard.Key.ctrl.value) + time.sleep(sleep_duration) press_ctrl_c() # Wait for the clipboard to update