From 74e72404b4119e37d9434a023e42c23e1977e701 Mon Sep 17 00:00:00 2001 From: Martin Wimpress Date: Thu, 18 Aug 2022 16:02:35 +0100 Subject: [PATCH] Automatically press any key when booting Windows install. Close #231 --- quickemu | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/quickemu b/quickemu index a4f7145..d29f7aa 100755 --- a/quickemu +++ b/quickemu @@ -1752,8 +1752,13 @@ if [ ${SHORTCUT} -eq 1 ]; then exit fi -if [ $VM_UP -eq 0 ]; then +if [ ${VM_UP} -eq 0 ]; then vm_boot + # If the VM being started is an uninstalled Windows VM then auto-skip the press-any key prompt. + if [ -n "${iso}" ] && [ "${guest_os}" == "windows" ]; then + sleep 3.5 + monitor_send_cmd "sendkey ret" + fi start_viewer else parse_ports_from_file