1 """Suite Microsoft Internet Explorer Suite: Events defined by Internet Explorer
4 Generated from Macintosh HD:Internet:Internet-programma's:Internet Explorer 4.5-map:Internet Explorer 4.5
5 AETE/AEUT resource version 1/0, language 0, script 0
13 class Microsoft_Internet_Explorer_Events
:
15 def GetSource(self
, _object
=None, _attributes
={}, **_arguments
):
16 """GetSource: Get the html source of a browser window
17 Required argument: The index of the window to get the source from. No value means get the source from the frontmost browser window.
18 Keyword argument _attributes: AppleEvent attribute dictionary
19 Returns: undocumented, typecode 'TEXT'
24 if _arguments
: raise TypeError, 'No optional args expected'
25 _arguments
['----'] = _object
28 _reply
, _arguments
, _attributes
= self
.send(_code
, _subcode
,
29 _arguments
, _attributes
)
30 if _arguments
.has_key('errn'):
31 raise aetools
.Error
, aetools
.decodeerror(_arguments
)
32 # XXXX Optionally decode result
33 if _arguments
.has_key('----'):
34 return _arguments
['----']
40 def do_script(self
, _object
, _attributes
={}, **_arguments
):
41 """do script: Execute script commands
42 Required argument: JavaScript text to execute
43 Keyword argument window: optional ID of window (as specified by the ListWindows event) to execute the script in
44 Keyword argument _attributes: AppleEvent attribute dictionary
50 aetools
.keysubst(_arguments
, self
._argmap
_do
_script
)
51 _arguments
['----'] = _object
54 _reply
, _arguments
, _attributes
= self
.send(_code
, _subcode
,
55 _arguments
, _attributes
)
56 if _arguments
.has_key('errn'):
57 raise aetools
.Error
, aetools
.decodeerror(_arguments
)
58 # XXXX Optionally decode result
59 if _arguments
.has_key('----'):
60 return _arguments
['----']
64 # Indices of types declared in this module
66 _classdeclarations
= {