﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
415	CUI compiled scripts won't execute batch files properly	ResNullius	Valik	"The following script when run uncompiled behaves as expected, you are greeted with the ""Press any key to continue"" message and the batch file waits for a key press.
But when compiled and run, it displays the message and immediately returns from the batch file without waiting for the key press.

{{{
#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_UseUpx=n
#AutoIt3Wrapper_Change2CUI=y
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****

$tmpBatFile = FileOpen(""tmpBatFile.cmd"",2)
FileWriteLine($tmpBatFile,""@Pause"")
FileClose($tmpBatFile)
ConsoleWrite(@CRLF & ""Are you Ready?"" & @CRLF & @CRLF)
RunWait(""tmpBatFile.cmd"")
ConsoleWrite(""Done"" & @CRLF)
}}}
Tested on Win2000/XP 32-bit with all service packs. Also with AutoIt beta 3.2.13.3.
'''The problem does not exist when compiled under v3.2.10.0''' (with a compatible version of AutoIt3Wrapper).

Don't think it's a problem with the keyboard buffer, because on a different script that waits for user input via a batch file, I get an error like there was no input, whereas run on its own (from a cmd prompt) the batch file doesn't error even if you just hit return without any input.

"	Bug	closed	3.2.13.6	AutoIt	3.2.12.1	None	Fixed		
