From 0579892b9e973b6c7865c53d8e9884ed4b9059c6 Mon Sep 17 00:00:00 2001 From: minguezsanzjuanjose Date: Sat, 3 Oct 2026 13:21:34 +0200 Subject: [PATCH] =?UTF-8?q?03-oct:=20superguardado=20autom=C3=A1tico?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/superwhisper_enter.ahk | 37 ++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 scripts/superwhisper_enter.ahk diff --git a/scripts/superwhisper_enter.ahk b/scripts/superwhisper_enter.ahk new file mode 100644 index 0000000..d4a7385 --- /dev/null +++ b/scripts/superwhisper_enter.ahk @@ -0,0 +1,37 @@ +; superwhisper_enter.ahk +; XButton1 (botón auxiliar 1 del ratón) → espera a que Super Whisper +; termine de pegar y pulsa Enter automáticamente. +; +; La rueda central (MButton) NO se toca — sigue funcionando normal +; para el toggle de Super Whisper (iniciar/parar transcripción). +; +; Flujo: +; 1. Rueda central → inicia transcripción Super Whisper +; 2. Rueda central → para y pega el texto +; 3. XButton1 → Enter automático (cuando el portapapeles haya cambiado) + +#Requires AutoHotkey v2.0 + +XButton1:: +{ + ; Guardar portapapeles actual + clipAntes := A_Clipboard + + ; Esperar hasta 8 segundos a que Super Whisper pegue (portapapeles cambie) + limite := 80 ; 80 x 100ms = 8 segundos + i := 0 + loop { + Sleep 100 + i++ + if (A_Clipboard != clipAntes) + break + if (i >= limite) + return ; timeout, no pasó nada + } + + ; Pausa mínima para que el Ctrl+V termine + Sleep 150 + + ; Enter + Send "{Enter}" +}