summaryrefslogtreecommitdiff
path: root/jni/ruby/ext/win32ole/sample/ie.rb
blob: 11dc861e0b7b3baa59b92e3f5bf02c648ca838fa (plain)
1
2
3
4
5
6
7
8
9
10
11
require 'win32ole'
url = 'http://www.ruby-lang.org/'
ie = WIN32OLE.new('InternetExplorer.Application')
ie.visible = TRUE
ie.gohome
print "Now navigate Ruby home page... Please enter."
gets
ie.navigate(url)
print "Now quit Internet Explorer... Please enter."
gets
ie.Quit()