Re: [python-win32] Exception '-2147221164' while using win32com.client.Dispatch("SAPI.SpVoice")

2018-10-11 Thread Sai Ram
at 5:35 PM Tim Roberts wrote: > On Oct 10, 2018, at 1:25 PM, Sai Ram wrote: > > > > We use Nuance's Vocalizer Expressive for voice and sapi5.dll. Also, we > modify the "Windows registry" to refer to this dll. > > What does that mean? Ordinarily, you would j

Re: [python-win32] Exception '-2147221164' while using win32com.client.Dispatch("SAPI.SpVoice")

2018-10-10 Thread Sai Ram
018 at 12:51 PM Tim Roberts wrote: > Sai Ram wrote: > > > >I really did not know that this value would make difference. > > Apologies for the vague question. The actual exception is "-2147352567". > > That's 0x80020009, or DISP_E_EXCEPTION. That&

Re: [python-win32] Exception '-2147221164' while using win32com.client.Dispatch("SAPI.SpVoice")

2018-10-10 Thread Sai Ram
ssues here. Thank you for your response. Appreciate it. -Sairam K On Wed, Oct 10, 2018 at 2:49 AM Tim Roberts wrote: > On Oct 9, 2018, at 8:03 AM, Sai Ram wrote: > > >We are using "win32com.client.Dispatch("SAPI.SpVoice")" for TTS to our > target device

[python-win32] Exception '-2147221164' while using win32com.client.Dispatch("SAPI.SpVoice")

2018-10-09 Thread Sai Ram
Hi, We are using "win32com.client.Dispatch("SAPI.SpVoice")" for TTS to our target device from a Windows 7 desktop. We are seeing many of these exceptions: "Exception '-2147221164'". Is there a fix for this? Basically, wanted to know the reason for this exception and the fix for this. Thanks, S

Re: [python-win32] Using WMI to listen to window creation and destruction

2018-07-18 Thread Ram Rachum
I'm trying to make a script that goes to recently opened folders, by listening to which folders were opened and closed. I guess I'll use good old EnumWindows. Thanks for your help Tim. On Thu, Jul 19, 2018 at 12:23 AM, Tim Roberts wrote: > Ram Rachum wrote: > > "A

Re: [python-win32] Using WMI to listen to window creation and destruction

2018-07-18 Thread Ram Rachum
"Are you really looking to monitor the creation of new top-level windows, which means the creation of new processes?" Does that apply to explorer windows? (i.e. when you open a new folder.) Because that's what I'd like to listen to. On Wed, Jul 18, 2018 at 9:45 PM, Tim Ro

[python-win32] Using WMI to listen to window creation and destruction

2018-07-18 Thread Ram Rachum
Hello, I'd like to use the `wmi` module to be notified on the events of a window being created or destroyed. Is this possible? I looked at the tutorial and cookbook and could find many interesting things, but not that. Thanks, Ram. ___ python-

Re: [python-win32] Wait for a window with a specified title

2018-05-27 Thread Ram Rachum
On Mon, May 28, 2018 at 7:11 AM, Tim Roberts wrote: > On May 27, 2018, at 6:36 AM, Ram Rachum wrote: > > > > I'd like to use the `wmi` module to detect when a window with the title > "Foo Bar" was created, and then kill the process that created this window. >

[python-win32] Wait for a window with a specified title

2018-05-27 Thread Ram Rachum
t to be periodically polling for that window, I want to be listening to an event so there wouldn't be a big delay. Thanks for your help! Ram. ___ python-win32 mailing list python-win32@python.org https://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Wait for process to be started

2018-04-25 Thread Ram Rachum
Awesome, looks like what I need is wmi.WMI().Win32_Process.watch_for('creation', name='notepad.exe') Thanks! On Wed, Apr 25, 2018 at 4:27 PM, Dennis Lee Bieber wrote: > On Wed, 25 Apr 2018 15:26:37 +0300, Ram Rachum declaimed > the following: > > > > &g

[python-win32] Wait for process to be started

2018-04-25 Thread Ram Rachum
nt to be more efficient and wait on the system event that is generated when a process is started. Is that possible? I was told that the `wmi` module is the way to go, but does anyone know how to make it do what I described above? Thanks, Ram. ___ python-

Re: [python-win32] Figuring out why a window is losing focus

2016-02-07 Thread Ram Rachum
y easily with > Spy++ > > On Sun, Feb 7, 2016 at 10:12 AM Ram Rachum wrote: > >> Hi everybody, >> >> There's a problem in my Windows 7 machine that I want to diagnose using >> Python. >> >> Once in a while, I'm noticing that focus is being stolen

[python-win32] Figuring out why a window is losing focus

2016-02-07 Thread Ram Rachum
focus was passed to. I'm hoping that this way I can find the offending program. I have no idea how to write a thing like this in Python, and whether this is even possible. Can you please help me? Thanks for your help, Ram Rachum. ___ python-win32 mai

[python-win32] ADO and LIKE statements in python

2006-01-18 Thread ram
Helo guys, I am trying to query the MSSQL DB using ADO. I am not able to make the LIKE statement fetch the correct results. Can anyone tell me what I need to do to get this working? Below is the code snippet: import win32com.client const = win32com.client.constants #

[python-win32] ADO and LIKE statements in python

2006-01-18 Thread Ram Sundar
Helo guys,     I am trying to query the MSSQL DB using ADO. I am not able to make the LIKE statement fetch the correct results. Can anyone tell me what I need to do to get this working? Below is the code snippet:         import win32com.client         const = win32com.client.constants         #