るりまサーチ

最速Rubyリファレンスマニュアル検索!
33件ヒット [1-33件を表示] (0.062秒)
トップページ > クエリ:l[x] > クエリ:Handler[x] > ライブラリ:win32ole[x]

別のキーワード

  1. kernel $-l
  2. matrix l
  3. _builtin $-l
  4. lupdecomposition l
  5. l matrix

クラス

キーワード

検索結果

WIN32OLE_EVENT#handler -> object (15219.0)

WIN32OLE_EVENT#handler=メソッドで登録したイベントハンドラオブジェ クトを返します。

...WIN32OLE_EVENT#handler=メソッドで登録したイベントハンドラオブジェ
クトを返します。

@return イベントハンドラオブジェクト。未登録ならばnil...

WIN32OLE_EVENT#handler=(obj) -> () (15215.0)

イベント処理を実行するオブジェクトを登録します。

...るにはnilを指定します。

class IeHandler
def initialize
@completed = false
end
attr_reader :completed
def onDocumentComplete(disp, uri)
disp.document.getElementsByTagName('a').each do |e|
puts "#{e.innerHTML}=#{e.href}"
end
@completed = tru...
...ie = WIN32OLE.new('InternetExplorer.Application.1')
event = WIN32OLE_EVENT.new(ie, 'DWebBrowserEvents2')
event.handler = IeHandler.new
ie.Navigate2 'http://www.ruby-lang.org/ja/'
l
oop do
break if event.handler.completed
WIN32OLE
_EVENT.message_loop
end
ie.Quit

WIN32OLE
_EVENT#...

WIN32OLE_TYPE#default_event_sources -> [WIN32OLE_TYPE] (6120.0)

型が持つソースインターフェイスを取得します。

...型が持つソースインターフェイスを取得します。

default_event_sourcesメソッドは、selfがCoClass(コンポーネントクラス)
の場合、そのクラスがサポートするデフォルトのソースインターフェイス(イ
ベントの通知元となるイン...
...ターフェイス)を返します。

@return デフォルトのソースインターフェイスをWIN32OLE_TYPEの配列と
して返します。返すのは配列ですが、デフォルトのソースインターフェ
イスは最大でも1インターフェイスです。ソ...
...odule_eval do
define_method("on#{m.name}") do |*arg|
if arg[0] == "ページが表示されました"
@completed = true
end
puts "#{Time.now}: #{m.name} was called"
p arg
end
end
end
evt = WIN32OLE_EVENT.new(ctl)
evt.handler = WebEvent.new
ctl.na...