55件ヒット
[1-55件を表示]
(0.086秒)
クラス
-
Net
:: FTP (11) - WIN32OLE (22)
-
WIN32OLE
_ EVENT (11) -
WIN32OLE
_ TYPE (11)
キーワード
-
_ invoke (11) -
default
_ event _ sources (11) - handler= (11)
- invoke (11)
検索結果
先頭5件
-
Net
:: FTP # quit -> nil (18303.0) -
FTP のセッションからログアウトします。
FTP のセッションからログアウトします。 -
WIN32OLE
_ TYPE # default _ event _ sources -> [WIN32OLE _ TYPE] (407.0) -
型が持つソースインターフェイスを取得します。
...by-lang.org/'
loop do
break if evt.handler.completed
WIN32OLE_EVENT.message_loop
end
ctl.Quit
このプログラムを実行するとWindows7のIE8環境では以下のような出力を得られ
ます。
2010-10-06 22:33:54 +0900: PropertyChange was called
["{265b75c1-4158-11d0-90f6-0......2010-10-06 22:33:54 +0900: BeforeNavigate2 was called
[#<WIN32OLE:0x9d08f0>, "http://www.ruby-lang.org/", 0, "", nil, "", false]
2010-10-06 22:33:54 +0900: DownloadBegin was called
[]
2010-10-06 22:33:54 +0900: PropertyChange was called
["{D0FCA420-D3F5-11CF-B211-00AA004AE837}"]
2010-10-06 22......as called
[2, false]
2010-10-06 22:33:54 +0900: CommandStateChange was called
[1, false]
2010-10-06 22:33:54 +0900: StatusTextChange was called
["www.ruby-lang.org を検索しています"]
2010-10-06 22:33:54 +0900: ProgressChange was called
[100, 10000]
2010-10-06 22:33:54 +0900: StatusTe... -
WIN32OLE
# invoke(name , *args) -> object | nil (220.0) -
メソッド名を指定してオブジェクトのメソッドを呼び出します。
...パラメータ名、値に引数を指定します。
@return メソッドの返り値。ただし返り値を持たないメソッドの場合はnil。
@raise WIN32OLERuntimeError オートメーションサーバの呼び出しに失敗しました。
理由はメッ......l',
:ReadOnly => true,
:Password => 'secret')
excel.invoke(:Quit)
このリストは、以下の記述と同等です。
excel = WIN32OLE.new('Excel.Application')
workbook = excel.workbooks.Open(:FileName =......> 'c:\\users\\public\\test.xml',
:ReadOnly => true,
:Password => 'secret')
excel.Quit... -
WIN32OLE
# _ invoke(dispid , args , types) -> object | nil (214.0) -
DISPIDとパラメータの型を指定してオブジェクトのメソッドを呼び出します。
...nil。
@raise WIN32OLERuntimeError オートメーションサーバの呼び出しに失敗しました。
理由はメッセージのHRESULTを調べてください。
excel = WIN32OLE.new('Excel.Application')
excel._invoke(302, [], []) # DISPID 302は、Quit... -
WIN32OLE
_ EVENT # handler=(obj) -> () (119.0) -
イベント処理を実行するオブジェクトを登録します。
...必要です。
@param obj イベントに対応するメソッドを持つオブジェクト。イベント受信を
解除するにはnilを指定します。
class IeHandler
def initialize
@completed = false
end
attr_reader :completed
def onDocumentComplete(di......NT.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_eventなどの呼び出しでブロックが登録されている場
合、...