From: Agustin Ramos Date: 2009-06-18T04:38:56+09:00 Subject: Re: AutoIt: Regarging AutoIt usage with Firefox I tried it myself and it returns 1 1. This is because you are printing first the window exists, and it's true, so if that window exists the winclose will be true too. It's returning 0 to you, because it doesn't find the window, try using the name, not classname. -- Posted via http://www.ruby-forum.com/.