Movatterモバイル変換
[0]ホーム
driving Internet Explorer with Python
Neil Hodgsonneilh at scintilla.org
Thu Apr 5 07:04:16 EDT 2001
Greg Wilson:> I would like to use Python to script a simple slideshow with Internet> Explorer, and to get IE to print pages to particular devices (in my case,> the Acrobat PDFWriter). If anyone has experience with calling the IE COM> interface from Python, I'd be very grateful for pointers. I have done some work on Python and IE but it was a couple of years agoso I'll just point out some demonstrations in the Win32 extensions. There is a demonstration of running IE as a COM Control within PythonWinat Pythonwin\pywin\Demos\ocx\webbrowser.py but this appears to have a smallbug in that the onloine help has moved from under it so, instead, changeline 23 to point at a real URL like: self.url = "http://www.scintilla.org" This demonstration must be run from within PythonWin or it crashes. There is demonstration of running IE in a separate process atwin32com\test\testExplorer.py There are more examples involving running Python scripts inside IE in thewin32comext\axscript\demos\client\ie directory. Scripting IE is a /huge/ topic. I had a look and couldn't find a way toprint to a particular device. Neil
More information about the Python-listmailing list
[8]ページ先頭