From: Masaki Suketa Date: 2002-08-08T19:21:03+09:00 Subject: Re: More questions on automation from naïve Windows user. In message "More questions on automation from na�ve Windows user." on 02/08/06, Chris Gehlker writes: > 2) How does the scripter know what capabilities the target application has > under Windows? The example on page 168 of the PickAxe Book assumes a lot of > knowledge on the part of the scripter about Excel's internal objects. Mac > Excel has an object browser so it's easy to see what objects are inside > Excel and to discover their methods. Does the same thing apply on Windows? I > don't have Win Excel but I do have IE and it's supposedly scriptable. I just > can't discover the vocabulary to script it. If you have the latest version of Win32OLE, then sample/olegen.rb might help you. The olegen.rb read typelibs specified by argument, and create some information. ruby olegen.rb 'Microsoft Internet Controls' You can get all typelibs by WIN32OLE_TYPE.typelibs. require 'win32ole' WIN32OLE_TYPE.typelibs.each do |t| puts t end Regards, Masaki Suketa