I'm trying to make a command line utility that will read input from the console that it was called from, and write output back to the console.
I have the following code:
;Console.au3
;Reads console input and outputs message box
#AutoIt3Wrapper_Change2CUI=Y
ConsoleWrite("Please enter data:")
Sleep(6000)
$console = ConsoleRead()
$buttoncode = MsgBox(2, "From console I read", $console)
If $buttoncode = 3 Then
$button = "abort"
ElseIf $buttoncode = 4 Then
$button = "retry"
ElseIf $buttoncode