From b29fbc4ea203d348707b114a4b385df64f681ddb Mon Sep 17 00:00:00 2001 From: Stone_Red <56473591+Stone-Red-Code@users.noreply.github.com> Date: Wed, 8 May 2024 13:16:39 +0200 Subject: [PATCH] Decrease delay before and after paste --- src/ClipCMD/Utilities/ClipCmdCommandHandler.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ClipCMD/Utilities/ClipCmdCommandHandler.cs b/src/ClipCMD/Utilities/ClipCmdCommandHandler.cs index e1798a0..46957a4 100644 --- a/src/ClipCMD/Utilities/ClipCmdCommandHandler.cs +++ b/src/ClipCMD/Utilities/ClipCmdCommandHandler.cs @@ -224,13 +224,13 @@ public class ClipCmdCommandHandler(Window window) if (autoPaste) { - await Task.Delay(50); + await Task.Delay(10); _ = simulator.SimulateKeyPress(KeyCode.VcLeftControl); _ = simulator.SimulateKeyPress(KeyCode.VcV); _ = simulator.SimulateKeyRelease(KeyCode.VcLeftControl); _ = simulator.SimulateKeyRelease(KeyCode.VcV); - await Task.Delay(50); + await Task.Delay(10); } }