From: Ryan Davis Date: 2011-02-12T10:02:46+09:00 Subject: Re: Not finding a Ruby Gem On Feb 11, 2011, at 15:55 , Bob Hatch wrote: > count = 0 > while count != 10 > count = count+1 Might I suggest: 10.times do |n| # look! I'm indented! Win32::Screenshot::Take.of(:foreground).write "c:\\scrn_cap#{count}.jpg" sleep 600 end