KeyBoard Events

It's pretty much exactly what it says, CoInitialize has to be called.
wx and probably python do this for you in the main thread, but
CoInitilize has to be called for each thread that will be using COM.
This is probably more an issue for the win32com developers/mailing
list.

···

----- Original Message -----
From: Bala <blk@srasys.co.in>
Date: Fri, 16 Jul 2004 20:15:46 +0530
Subject: [wxPython-users] KeyBoard Events
To: wxpython Users <wxpython-users@lists.wxwindows.org>
Cc: help@python.org

Hi,

    After launching an application,
from that iam launching another application in a separate thread.In that
application iam having textbox

Iam setting the text in the textbox by generating
the keyboard events.

shell =
win32com.client.Dispatch("WScript.Shell")

shell.SendKeys("Edit Text")

it is failing..error showing is Coinitialize has
not been called..

kindly give some solution...

this problem is coming only because of
creating separate thread.

To overcome this problem what i have to
do

Regards

Bala