From 541213a8a4a749b8a6bddd21751c631f30d01150 Mon Sep 17 00:00:00 2001 From: Dabao21 <642011598@qq.com> Date: Sat, 25 Apr 2026 07:42:17 +0800 Subject: [PATCH] fix: add missing delay between clicks in MouseDClick() MouseDClick was firing two click events without any delay between MouseDown and MouseUp, which can cause the OS to interpret them as a single long press instead of a double-click. Now matches MouseClick behavior with staytime delay between down/up and 0.05s gap between the two clicks. --- memory/ljqCtrl.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/memory/ljqCtrl.py b/memory/ljqCtrl.py index 7f903b2e..a0b1d60d 100644 --- a/memory/ljqCtrl.py +++ b/memory/ljqCtrl.py @@ -37,9 +37,8 @@ def MouseClick(staytime=0.05): MouseUp(); time.sleep(0.05) def MouseDClick(staytime=0.05): - MouseDown(); MouseUp() - MouseDown(); MouseUp() - time.sleep(0.05) + MouseDown(); time.sleep(staytime); MouseUp(); time.sleep(0.05) + MouseDown(); time.sleep(staytime); MouseUp(); time.sleep(0.05) def SetCursorPos(z): z = tuple(map(lambda v:int(v*dpi_scale), z))