From: Skye Weir-Mathews Date: 2007-08-07T03:51:50+09:00 Subject: Re: Issue with ControlSend function using AutoIT in Ruby Just in case anyone else finds this post looking for resolution with this issue, redirecting STDOUT didn't actually fix anything. What really worked was changing the parts where I was sending text to the screen from using the ControlSend function to using ControlSetText. Now my script looks like this and seems to be working great. puts "Enter SQL Database Information" autoit.WinWait("Enter SQL Database Information", "", 5) autoit.ControlSetText("Enter SQL Database Information", "", 301, "#{@dbserver}") autoit.ControlSetText("Enter SQL Database Information", "", 302, "LMNIGHTLY#{@hostname}#{@datestring}") autoit.ControlSend("Enter SQL Database Information", "", 1, "{ENTER}") -- Posted via http://www.ruby-forum.com/.