12件ヒット
[1-12件を表示]
(0.014秒)
ライブラリ
- win32ole (12)
クラス
-
WIN32OLE
_ TYPE (12)
検索結果
-
WIN32OLE
_ TYPE # default _ event _ sources -> [WIN32OLE _ TYPE] (13.0) -
型が持つソースインターフェイスを取得します。
...ださい。
ここでは最終イベントのStatusTextChangeイベントのメッセージについては既
知としています。
# coding : cp932
require 'win32ole'
type = WIN32OLE_TYPE.new('Microsoft Internet Controls', 'InternetExplorer')
ctl = WIN32OLE.new(type.progid)
source = typ......class WebEvent
def initialize
@completed = false
end
attr_reader :completed
end
source.ole_methods.each do |m|
WebEvent.module_eval do
define_method("on#{m.name}") do |*arg|
if arg[0] == "ページが表示されました"
@completed = true
end...