03-oct: superguardado automático
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user