Sha256: dc6171e157d27bc89924a23df1eb0d5ecde975bdd9e7c07bb602ce93d1d8e652

Contents?: true

Size: 472 Bytes

Versions: 6

Compression:

Stored size: 472 Bytes

Contents

require 'win32ole'

ie = WIN32OLE.new('InternetExplorer.Application')
vis = ie.ole_method_help('Visible')
puts "VISIBLE: #{ie.visible}"
puts "VISIBLE w/ []: #{ie['Visible']}"
puts "VISIBLE w/ Invoke: #{ie.invoke('Visible')}"
ie._setproperty(vis.dispid, [true], [true])
ie.Visible = TRUE  # Upper-case
puts "VISIBLE: #{ie.visible}"
sleep 4
ie['Visible'] = false
puts "VISIBLE: #{ie.visible}"
#puts ie.ole_methods
ie.gohome
puts "NAME: #{ie.name}"  # Lower-case
ie.quit 



Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
jruby-win32ole-0.8.5 samples/ie_simple.rb
jruby-win32ole-0.8.4 samples/ie_simple.rb
jruby-win32ole-0.8.3 samples/ie_simple.rb
jruby-win32ole-0.8.2 samples/ie_simple.rb
jruby-win32ole-0.8.1 samples/ie_simple.rb
jruby-win32ole-0.8.0 samples/ie_simple.rb