; To get a default-answer to a question, without using a messagebox in
; a KiXtart-script, you can use the program CHOICE.COM from Win95
; An example of using the program in a KiXtart-script is this:

? "Install program press I"
? "Execute program press X"
? "Skip press S"
? "Chose I/X/S : "

Shell "Choice.com /C:SXI /N /T:S,15"
; /C: followed by accepted keys
; /N do not display anything except value of acceptet key
; /T efault answer,Timeout

$Choice = @Error
; @Error returns position of key pressed in accepted keys (/C:SXI)

Select
Case $Choice = 3
? "I pressed, installing"
; Script part for Installing program
Case $Choice = 2
? "X pressed, executing"
; Script part for Executing program
Case $Choice = 1
? "S pressed, or no legal key pressed in 15 seconds, skipping"
EndSelect

; To get this working on NT, you must copy
; the program: CHOICE.COM to a location in the path
; CHOICE.COM is located in C:\Windows\Command in Win95
;
; parameters for choice.exe is shown by typing choice /?

; Next line is for testing purpose only
Get $x