Ask user input yes/no with a timeout and default yes

Hi @UserOfThisSoftware @Jizh
This might help:

Use that to close the window after a while and use the input to go further on it.