From f10ce5bef4b21dcf986608cb3e0c43cddbb171c1 Mon Sep 17 00:00:00 2001 From: minguezsanzjuanjose Date: Sat, 3 Oct 2026 13:29:51 +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 --- CHANGELOG_INFRA.md | 9 +++++++++ changelog_infra.json | 12 ++++++++++++ scripts/superwhisper_enter.ahk | 27 +++++++++++++++------------ 3 files changed, 36 insertions(+), 12 deletions(-) diff --git a/CHANGELOG_INFRA.md b/CHANGELOG_INFRA.md index 0ddc9aa..2ca39e0 100644 --- a/CHANGELOG_INFRA.md +++ b/CHANGELOG_INFRA.md @@ -8,9 +8,18 @@ - **2026-09-29-migraci-n-de-watchers-al-vps** [servicios] Migración de watchers al VPS (aplicado en: sobremesa) - **2026-09-30-fix-telegram-watcher-telethon-1-44-encoding-utf-8** [watchers] Fix telegram_watcher (telethon 1.44 + encoding UTF-8) (aplicado en: portatil) - **2026-10-02-superguardado-py-protocolo-guardado-total-automatico-portati** [scripts] superguardado.py: protocolo guardado total automatico portatil+sobremesa (aplicado en: portatil) +- **2026-10-03-superwhisper-enter-ahk-f13-boton-auxiliar-logitech-tarea-pro** [scripts] SuperWhisper Enter: AHK F13 boton auxiliar Logitech + tarea programada (aplicado en: portatil) ## Historial +### 2026-10-03 · SuperWhisper Enter: AHK F13 boton auxiliar Logitech + tarea programada +- **id**: `2026-10-03-superwhisper-enter-ahk-f13-boton-auxiliar-logitech-tarea-pro` +- **Equipo**: portatil +- **Categoria**: scripts +- **Transferible**: si +- **Aplicado en**: portatil +- **Detalle**: Script superwhisper_enter.ahk: F13 (boton auxiliar Logitech asignado en Logi Options+) espera cambio portapapeles (Super Whisper pega) y manda Enter + devuelve foco a OpenCode. Tarea programada SuperWhisper Enter al inicio de sesion. Rueda central = toggle Super Whisper (inicio/parar). F13 = Enter automatico. + ### 2026-10-02 · superguardado.py: protocolo guardado total automatico portatil+sobremesa - **id**: `2026-10-02-superguardado-py-protocolo-guardado-total-automatico-portati` - **Equipo**: portatil diff --git a/changelog_infra.json b/changelog_infra.json index 4396c83..8fcd175 100644 --- a/changelog_infra.json +++ b/changelog_infra.json @@ -212,6 +212,18 @@ "portatil" ], "detalle": "Script scripts/superguardado.py en biblioteca_negocio_prolongo. 7 pasos: ESTADO_DIARIO + git biblioteca + engram cloud + sync_continuo + obsidian + git INFRAESTRUCTURA + aviso sonoro. Palabra clave: superguardado/guarda/memoria. Descripcion auto si no se indica." + }, + { + "id": "2026-10-03-superwhisper-enter-ahk-f13-boton-auxiliar-logitech-tarea-pro", + "fecha": "2026-10-03", + "equipo": "portatil", + "categoria": "scripts", + "titulo": "SuperWhisper Enter: AHK F13 boton auxiliar Logitech + tarea programada", + "transferible": true, + "aplicado_en": [ + "portatil" + ], + "detalle": "Script superwhisper_enter.ahk: F13 (boton auxiliar Logitech asignado en Logi Options+) espera cambio portapapeles (Super Whisper pega) y manda Enter + devuelve foco a OpenCode. Tarea programada SuperWhisper Enter al inicio de sesion. Rueda central = toggle Super Whisper (inicio/parar). F13 = Enter automatico." } ] } diff --git a/scripts/superwhisper_enter.ahk b/scripts/superwhisper_enter.ahk index d4a7385..8131b30 100644 --- a/scripts/superwhisper_enter.ahk +++ b/scripts/superwhisper_enter.ahk @@ -1,24 +1,23 @@ ; 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). +; F13 (botón auxiliar ratón Logitech) → espera a que Super Whisper +; termine de pegar, pulsa Enter y devuelve el foco a OpenCode. ; ; 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) +; 1. Rueda central → inicia/para transcripción Super Whisper +; 2. F13 (botón auxiliar) → Enter automático + vuelve a OpenCode #Requires AutoHotkey v2.0 -XButton1:: +F13:: { + ; Guardar ventana activa actual (OpenCode u otra) + ventanaActual := WinExist("A") + ; Guardar portapapeles actual clipAntes := A_Clipboard - ; Esperar hasta 8 segundos a que Super Whisper pegue (portapapeles cambie) - limite := 80 ; 80 x 100ms = 8 segundos + ; Esperar hasta 8 segundos a que Super Whisper pegue + limite := 80 i := 0 loop { Sleep 100 @@ -32,6 +31,10 @@ XButton1:: ; Pausa mínima para que el Ctrl+V termine Sleep 150 - ; Enter + ; Pulsar Enter Send "{Enter}" + + ; Volver a OpenCode si estaba activo antes + if (ventanaActual) + WinActivate("ahk_id " ventanaActual) }