I have the latest updates for IE7 on XP with SP2 installed. Do you know if
the same issue occurs with that environment? How can I check whether IE is
running in PM?
On Thu, Jun 26, 2008 at 10:17 AM, MR Michael Robellard (5314) <
[EMAIL PROTECTED]> wrote:
> If you are on Vista, It may be because Vista runs IE7 in protected mode.
>
> ------------------------------
> *From:* [EMAIL PROTECTED] [mailto:
> [EMAIL PROTECTED] *On Behalf Of *Aaron
> Colichia
> *Sent:* Thursday, June 26, 2008 11:10 AM
> *To:* comtypes-users
> *Subject:* [comtypes-users] IE woes
>
> New to the list..
>
> I'm trying to use comtypes.client.GetActiveObject to get an instance of
> internet explorer on XP SP2. This results in 'operation unavailable' every
> time, and I can't understand why.
>
> GetActiveObject works for other apps. This is IE7. Is it not registering
> itself with the com server? How can I check that? Can someone please help?
>
> Thanks,
>
> Aaron
>
> H:\>python
> Python 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit
> (Intel)] on
> win32
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import comtypes.client
> >>> ie = comtypes.client.CreateObject('internetexplorer.application')
> >>> ie.Visible = True
> >>> ie2 = comtypes.client.GetActiveObject('internetexplorer.application')
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> File "c:\python25\lib\site-packages\comtypes\client\__init__.py", line
> 164, in
> GetActiveObject
> obj = comtypes.GetActiveObject(clsid, interface=interface)
> File "C:\Python25\Lib\site-packages\comtypes\__init__.py", line 990, in
> GetAct
> iveObject
> oledll.oleaut32.GetActiveObject(byref(clsid), None, byref(p))
> File "\loewis\25\python\Modules\_ctypes\callproc.c", line 757, in
> GetResult
> WindowsError: [Error -2147221021] Operation unavailable
> >>>
>
>
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
> _______________________________________________
> comtypes-users mailing list
> comtypes-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/comtypes-users
>
>
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
comtypes-users mailing list
comtypes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/comtypes-users