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:
co-authored by
Claude Sonnet 4.6
parent
065928e8c1
commit
7842de0d21
@@ -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
|
||||
}
|
||||
+1
-1
@@ -2,4 +2,4 @@
|
||||
taskkill /F /IM msedge.exe >nul 2>&1
|
||||
timeout /t 2 /nobreak >nul
|
||||
|
||||
start "" "C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe" --kiosk "https://erp.laboratorioximenacaicedo.com/erp.php?m=turnero&v=kiosko&autoprint=1" --edge-kiosk-type=fullscreen --kiosk-printing --disable-print-preview
|
||||
start "" "C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe" --kiosk "https://erp.laboratorioximenacaicedo.com/erp.php?m=turnero&v=kiosko&autoprint=1" --edge-kiosk-type=fullscreen --kiosk-printing
|
||||
|
||||
Reference in New Issue
Block a user