B
Bob Hatch
I downloaded and installed the Ruby Gem called
win32screenshot-1.0.2.gem. I installed it by typing the following:
gem install win32screenshot
It seemed to install fine. However, when I run the program I get the
following error:
<internal:lib/rubygems/custom_require>:29:in `require': no such file to
load -- win32/screenshot (LoadError)
Here is my program:
require 'win32/screenshot'
count = 0
while count != 10
count = count+1
Win32::Screenshot::Take.of
foreground).write("c:\\scrn_cap" +
count.to_s() + ".jpg")
sleep(600)
end
win32screenshot-1.0.2.gem. I installed it by typing the following:
gem install win32screenshot
It seemed to install fine. However, when I run the program I get the
following error:
<internal:lib/rubygems/custom_require>:29:in `require': no such file to
load -- win32/screenshot (LoadError)
Here is my program:
require 'win32/screenshot'
count = 0
while count != 10
count = count+1
Win32::Screenshot::Take.of
count.to_s() + ".jpg")
sleep(600)
end