[python-win32] Control IE with COM: how to get at drop down menus?
Mark Mc Mahon
mark.m.mcmahon at gmail.com
Thu May 18 17:03:23 CEST 2006
Hi Jamil,
I have a couple of suggestions...
You could look at my package "pywinauto", but that is probably
overkill for your problem - and it doesn't deal nicely with IE menu's
(as they do not expose their text easily).
I would suggest that you look at SendKeys (google for
SendKeys/Python). That would allow you to easily send keystrokes to
IE. (you would just have to ensure that it is the foreground
application - or set it as the foreground application before sending
the keystrokes).
Thanks
Mark
On 5/14/06, Jamil Edgemir <unclejamil at gmail.com> wrote:
> Hi,
>
> I have used PAMIE to automate IE and click on some buttons. That
> works great. Now what I want to do is use 'Select All' from the drop
> down 'Edit' menu of Explorer, 'Copy' and then get at the clipboard
> text. I just don't know how to get at the menus.
>
> Does anyone know how to do this using PAMIE or win32com? I've googled
> like crazy and can't seem to find anything on it.
>
> -j
>
> --
> -------------------------------------------------------------
> Jamil Egdemir
> unclejamil at gmail.com
> http://grad.physics.sunysb.edu/~jamil
> (631) 338-3170 (cell)
> -------------------------------------------------------------
> _______________________________________________
> Python-win32 mailing list
> Python-win32 at python.org
> http://mail.python.org/mailman/listinfo/python-win32
>
More information about the Python-win32
mailing list