From: Rodrigo Bermejo Date: 2008-03-12T03:06:57+09:00 Subject: Re: Setting Focus on Console Window require 'win32ole' wsh = WIN32OLE.new('WScript.Shell') wsh.AppActivate("name of the window") I am not sure I understood your question 100% , but if I am ok with 50% It may help you. -ronnie. -- Posted via http://www.ruby-forum.com/.