From a9317faa92c714ce585c76d8d127be3bb6cc6ea1 Mon Sep 17 00:00:00 2001 From: no5ix <1145263208@qq.com> Date: Sun, 17 Apr 2022 14:10:01 +0800 Subject: [PATCH] optimize QuickEntry_Everything_Menu_Click --- source/quick_entry.ahk | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/source/quick_entry.ahk b/source/quick_entry.ahk index 862cbab..a2ff5e5 100644 --- a/source/quick_entry.ahk +++ b/source/quick_entry.ahk @@ -268,12 +268,15 @@ QuickEntry_ScreenShot_Suspend_Menu_Click: QuickEntry_Everything_Menu_Click: st := current_selected_text - if (!current_selected_text) { + if (!st) { st := GetCurSelectedText() } - Send, #!s Sleep, 222 - PasteContent(st) + Send, #!s + if (st) { + Sleep, 666 + PasteContent(st) + } Return