03-oct: superguardado automático
This commit is contained in:
37
scripts/superwhisper_enter.ahk
Normal file
37
scripts/superwhisper_enter.ahk
Normal file
@@ -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}"
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user