kiosk: remove --disable-print-preview to unblock silent printing

--disable-print-preview conflicted with --kiosk-printing, routing to
the OS print dialog instead of printing silently. Also added AHK
fallback script for edge cases.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Lizandro Guarnizo
2026-07-21 15:30:07 -05:00
co-authored by Claude Sonnet 4.6
parent 065928e8c1
commit 7842de0d21
2 changed files with 21 additions and 1 deletions
+20
View File
@@ -0,0 +1,20 @@
; kiosko_autoprint.ahk
; Detecta el diálogo de impresión y lo confirma automáticamente.
; Requiere AutoHotkey v2: https://www.autohotkey.com/
#Persistent
SetTitleMatchMode 2
Loop {
; Esperar cualquier ventana de diálogo de impresión (Chrome, Edge, Windows)
if WinExist("Imprimir") or WinExist("Print") {
WinActivate
Sleep 400
; Intentar presionar el botón Imprimir / OK / Enter
ControlClick "Button1"
Sleep 200
Send "{Enter}"
Sleep 1000
}
Sleep 500
}