るりまサーチ

最速Rubyリファレンスマニュアル検索!
44件ヒット [1-44件を表示] (0.101秒)
トップページ > 種類:インスタンスメソッド[x] > クエリ:win32ole[x] > クエリ:new[x] > クラス:WIN32OLE_EVENT[x]

別のキーワード

  1. win32ole name
  2. win32ole to_s
  3. win32ole ole_type
  4. win32ole ole_free

ライブラリ

キーワード

検索結果

WIN32OLE_EVENT#on_event(event = nil) {|*args| ... } -> () (11062.0)

イベント通知を受けるブロックを登録します。

...
WIN32OLE_EVENT
#on_event_with_outargsを利用してください。

@raise WIN32OLERuntimeError WIN32OLE_EVENT#unadviseによってイベン
トソースと切断済みです。

ie = WIN32OLE.new('InternetExplorer.Application')
ev = WIN32OLE_EVENT.new(ie...
...知されたイベントに対応するブロックがあれば
そちらだけが呼び出されます。

ie = WIN32OLE.new('InternetExplorer.Application')
ev = WIN32OLE_EVENT.new(ie, 'DWebBrowserEvents2')
ev.on_event("NavigateComplete2") do |browser, url|
puts url
end
ev.on_event d...

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

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

...ie = WIN32OLE.new('InternetExplorer.Application.1')
event = WIN32OLE_EVENT.new(ie, 'DWebBrowserEvents2')
event.handler = IeHandler.new
ie.Navigate2 'http://www.ruby-lang.org/ja/'
loop do
break if event.handler.completed
WIN32OLE_EVENT
.message_loop
end
ie.Quit

WIN32OLE_EVENT
#on_...

WIN32OLE_EVENT#on_event_with_outargs(event = nil) {|*args| ... } -> () (11038.0)

イベント通知を受けて結果を呼び出し元へ返すブロックを登録します。

...ド名を指定します。引数を省略した場合は、すべて
のイベントを対象とするブロックの登録となります。

WIN32OLE_EVENT
#on_eventと異なり、イベントのブロック変数に戻り値を
設定できます。

@param event イベント名を文字列かシ...
...の形式で受けてください。

@raise WIN32OLERuntimeError WIN32OLE_EVENT#unadviseによってイベン
トソースと切断済みです。

ie = WIN32OLE.new('InternetExplorer.Application')
ev = WIN32OLE_EVENT.new(ie, 'DWebBrowserEvents2')
ev.on_event('Befo...

WIN32OLE_EVENT#off_event(event = nil) -> () (11036.0)

WIN32OLE_EVENT#on_eventで登録したブロックを解除します。

...WIN32OLE_EVENT#on_eventで登録したブロックを解除します。

@param event 文字列またはシンボルで登録時に指定したイベント名を指定しま
す。nilの場合、WIN32OLE_EVENT#on_eventに対してnilを指定したブロッ
クを解除します。

ev = WIN32OLE_...
...EVENT.new(ie, 'DWebBrowserEvents')
ev.on_event(:NavigateComplete) {|url| puts url }
...
ev.off_event(:NavigateComplete)...