[python-win32] get outlook to/from fields

2007-08-17 Thread Radu Ciora
Hi everyone, I have an application which monitors the user input and environment. I was wondering if it can get the the to/from fields from an opened email in outlook/outlook express. I don't have a handle to Outlook as I don't start the application from inside python. Is it possible to get one?

[python-win32] get active process list crashes

2007-08-17 Thread Radu Ciora
Hi all, when I try to call GetObject('winmgmts:') when an input event happens, I get the following exception: File "D:\DAProject\Workspace\context\inputhook\RDFIO.py", line 67, in wordInfo self.GetActiveProcess() File "D:\DAProject\Workspace\context\inputhook\RDFIO.py", line 71, in Ge

[python-win32] EnumChildWindows

2007-08-20 Thread Radu Ciora
Hi everyone, can anyone give me an example of use of win32gui.EnumChildWindows() function as I can't seem to make it work: my code looks like this: ... win32gui.EnumChildWindows(l_hwnd, self.windowEnumerationHandler(), l_childlist) ... def windowEnumerationHandler(hwnd, resultList): #Pass

Re: [python-win32] EnumChildWindows

2007-08-20 Thread Radu Ciora
list) TypeError: First param must be a callable object Any ideas? Thanks a million! Radu. - Original Message From: Tim Roberts <[EMAIL PROTECTED]> To: Python-Win32 List Sent: Monday, 20 August, 2007 10:24:21 PM Subject: Re: [python-win32] EnumChildWindows Rad

[python-win32] get running application handle

2007-08-24 Thread Radu Ciora
Hi all, Is it possible to get a handle to a running application like the one I get when I explicitly start an application myself using the win32com.client.Dispatch("Object.Name")? Is the one retrieved by win32gui.GetForegroundWindow() the same as the one above or not, if not how can I get th

Re: [python-win32] get running application handle

2007-08-24 Thread Radu Ciora
t-synchronous call.', None, None) Thanks a million, Radu. - Original Message From: Tim Roberts <[EMAIL PROTECTED]> To: Python-Win32 List Sent: Friday, 24 August, 2007 11:04:02 PM Subject: Re: [python-win32] get running application handle Radu Ciora wrote: > Is it possible

[python-win32] get running application pointer

2007-08-28 Thread Radu Ciora
PROTECTED]> To: Python-Win32 List Sent: Friday, 24 August, 2007 11:04:02 PM Subject: Re: [python-win32] get running application handle Radu Ciora wrote: > Is it possible to get a handle to a running application like the one I get > when I explicitly start an application myself using t

[python-win32] PyIEnumMoniker

2007-09-19 Thread Radu Ciora
Hi guys, Can someone tell me how to use PyIEnumMoniker? I've tried : import pythoncom print PyIEnumMoniker.Next() but I get the error: NameError: global name 'PyIEnumMoniker' is not defined. Thanks a million, Radu. ___ Want id

[python-win32] Fw: PyIEnumMoniker

2007-09-20 Thread Radu Ciora
Thanks a million, Radu. - Original Message From: Mark Hammond <[EMAIL PROTECTED]> To: Radu Ciora <[EMAIL PROTECTED]>; python-win32@python.org Sent: Thursday, 20 September, 2007 2:54:24 AM Subject: RE: [python-win32] PyIEnumMoniker > Can someone tell me how to use

[python-win32] message queue

2007-10-04 Thread Radu Ciora
Hi all, given this code: while 1: time.sleep(1) l_hwnd = win32gui.GetForegroundWindow() try: msg = win32gui.GetMessage(l_hwnd, 0, 0) print msg except: traceback.print_exc() can anyone tell me what's wrong with it

Re: [python-win32] message queue

2007-10-04 Thread Radu Ciora
python-win32] message queue Radu Ciora wrote: > Hi all, > > given this code: > > while 1: > time.sleep(1) > > l_hwnd = win32gui.GetForegroundWindow() > try: > msg = win32gui.GetMessage(l_hwnd, 0, 0) >

Re: [python-win32] message queue

2007-10-04 Thread Radu Ciora
So you mean that I won't be able to see Word's message queue, right? Regards, Radu. - Original Message From: Tim Roberts <[EMAIL PROTECTED]> To: Python-Win32 List Sent: Thursday, 4 October, 2007 10:06:28 PM Subject: Re: [python-win32] message queue Radu Ciora wrote: &

Re: [python-win32] message queue

2007-10-04 Thread Radu Ciora
ent: Thursday, 4 October, 2007 11:01:08 PM Subject: Re: [python-win32] message queue Radu Ciora wrote: > So you mean that I won't be able to see Word's message queue, right? > Not by using GetMessage, no. You wouldn't want to in any case, because GetMessage *removes* the messa

Re: [python-win32] Problem in reading MS Outlook mails.

2008-04-04 Thread Radu Ciora
Try: self.session = win32com.client.Dispatch("Outlook.Application")  Regards, Radu. - Original Message From: Antony Joseph <[EMAIL PROTECTED]> To: python-win32@python.org Sent: Friday, 4 April, 2008 12:09:20 PM Subject: [python-win32] Problem in reading MS Outlook mails. Hi, I am hav