Hello
I want to control Internet Explorer. This is what I have so far:
import win32com.client
from win32com.client.gencache import EnsureDispatch
url = "..."
IE = EnsureDispatch("InternetExplorer.Application")
IE.Navigate(url)
IE.Visible = 1
It works fine and shows the requested page. Now I want to use the "Save
As" command. Looks like I should call the
IWebBrowser2.ExecWB method, passing IDM_SAVEAS as the command and
MSOCMDEXECOPT_DONTPROMPTUSER in the options. But I don't know how to
obtain the value for such constants... I could dig into the C header files
looking for them, but is there some other way?
The ExecWB method is documented here
http://msdn.microsoft.com/en-us/library/aa752117(VS.85).aspx
--
Gabriel Genellina
_______________________________________________
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32