This commit is contained in:
lrgex
2023-11-14 20:20:02 +03:00
parent 12b4974fa8
commit e5b3aecbf8
6 changed files with 24 additions and 2 deletions

View File

@@ -18,23 +18,28 @@ expect {
# using condition here to make a break for the loop created by exp_continue as i need to use the pattern 2 times one for pressing 1 and one for pressing q
if {$menu} {
send "1\r"
sleep 3
exp_continue
} else {
send "q\r"
sleep 3
exp_continue
}
}
"*Installation Menu*" {
if {$menu} {
send "4\r"
sleep 3
exp_continue
} else {
send "b\r"
sleep 3
exp_continue
}
}
"*Download the recommended macros? (Y/n)*" {
send "y\r"
sleep 3
set menu 0
exp_continue
}

View File

@@ -18,31 +18,38 @@ expect {
# using condition here to make a break for the loop created by exp_continue as i need to use the pattern 2 times one for pressing 1 and one for pressing q
if {$menu} {
send "1\r"
sleep 3
exp_continue
} else {
send "q\r"
sleep 3
exp_continue
}
}
"*Installation Menu*" {
if {$menu} {
send "1\r"
sleep 3
exp_continue
} else {
send "b\r"
sleep 3
exp_continue
}
}
"*Initializing Klipper installation*" {
send "\r"
sleep 3
exp_continue
}
"*Setting up too many instances may crash your system*" {
send "\r"
sleep 3
exp_continue
}
"*WARNING: Your current user is not in group:*" {
send "y\r"
sleep 3
# Change the condition to stop interacting with menus
set menu 0
exp_continue

View File

@@ -18,23 +18,28 @@ expect {
# using condition here to make a break for the loop created by exp_continue as i need to use the pattern 2 times one for pressing 1 and one for pressing q
if {$menu} {
send "1\r"
sleep 3
exp_continue
} else {
send "q\r"
sleep 3
exp_continue
}
}
"*Installation Menu*" {
if {$menu} {
send "3\r"
sleep 3
exp_continue
} else {
send "b\r"
sleep 3
exp_continue
}
}
"*Download the recommended macros? (Y/n):*" {
send "y\r"
sleep 3
set menu 0
exp_continue
}

View File

@@ -18,23 +18,28 @@ expect {
# using condition here to make a break for the loop created by exp_continue as i need to use the pattern 2 times one for pressing 1 and one for pressing q
if {$menu} {
send "1\r"
sleep 3
exp_continue
} else {
send "q\r"
sleep 3
exp_continue
}
}
"*Installation Menu*" {
if {$menu} {
send "2\r"
sleep 3
exp_continue
} else {
send "b\r"
sleep 3
exp_continue
}
}
"*Initializing Moonraker installation*" {
send "y\r"
sleep 3
set menu 0
exp_continue
}