Yes, the script starts the application, it just does not run all of the key functions. Sometimes it will TAB TAB...but the ENTER will fail. Its different each time.
ah...that makes sense. Well I added a batch file, at startup which points to the autoIT script, and I added a delay. That helps a lot but occasionally it still misses the whole TAB TAB ENTER. I figured that something related to the startup process is getting in the way, so delaying it a few seconds helped. I might just add more delay.
#region ---Au3Recorder generated code Start (v3.3.7.0) ---
#region --- Internal functions Au3Recorder Start ---
Func _Au3RecordSetup()
Opt('WinWaitDelay',100)
Opt('WinDetectHiddenText',1)
Opt('MouseCoordMode',0)
EndFunc
Func _WinWaitActivate($title,$text,$timeout=0)
WinWait($title,$text,$timeout)
If Not WinActive($title,$text) Then WinActivate($title,$text)
WinWaitActive($title,$text,$timeout)
EndFunc
_AU3RecordSetup()
#endregion --- Internal functions Au3Recorder End ---
Run('C:Program FilesETWCetwc.exe')
_WinWaitActivate("ETWC","")
Send("{TAB}{TAB}{ENTER}")
#endregion --- Au3Recorder generated code End ---