[python-win32] Access is denied

2019-04-17 Thread Tom Kacvinsky
I filed a github issue (#1331), but reading through the other issues, it became apparent I should use this mailing list instead. Here is a synopsis of the problem (cut and paste from the github issue). - Expected behavior and actual behavior. using Python 2.7.5 for 32-bit Windows, using pywi

[python-win32] Python code to drop file onto GUI, using pywin32

2019-03-17 Thread Tom Parker
w where to get started. Thanks for any pointers you can provide. - Tom ___ python-win32 mailing list python-win32@python.org https://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Killing a subprocess spawned by a service

2013-06-19 Thread Tom
Have you tried spawning "pythonw.exe" instead of "python.exe"? http://bugs.python.org/issue3905 might help you. A bit of googling suggests this is a recurring issue with subprocess and non-windowed applications. On Wed, Jun 19, 2013 at 3:20 PM, Patrick Tisdale wrote: > I can get rid of the shel

Re: [python-win32] Python Finalisation

2013-01-15 Thread Tom Bowles
On 10 January 2013 18:48, Tom Bowles wrote: > > On 10 January 2013 17:15, Aahz wrote: >> >> On Thu, Jan 10, 2013, Tom Bowles wrote: >> > >> > Hi, I have a question regarding python finalisation when using pywin32. >> > The details are at >>

Re: [python-win32] Python Finalisation

2013-01-10 Thread Tom Bowles
On 10 January 2013 17:15, Aahz wrote: > On Thu, Jan 10, 2013, Tom Bowles wrote: > > > > Hi, I have a question regarding python finalisation when using pywin32. > > The details are at > > > http://stackoverflow.com/questions/14257654/how-should-i-or-should-i-fina

[python-win32] Python Finalisation

2013-01-10 Thread Tom Bowles
d I'm posting this from a phone. Hope the stackoverflow link is acceptable. Thanks, Tom ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] check if comserver is registered, no -> install it?

2012-12-19 Thread Tom Hawkins
it__ > self._handle = _dlopen(self._name, mode) >WindowsError: [Error 193] %1 ist keine zul?ssige Win32-Anwendung For the benefit of anyone without German the last line of that translates as '%1 is not a valid Win32 application'. Tom Hawkins Principal Scientist Innospec In

Re: [python-win32] speed up win32com.client

2012-05-09 Thread Tom
Sorry to interject here but I have a question along the same vein: If I have a script (in this case that interacts with Word through win32com.client) with statements like this: doc.ActiveWindow.Selection.BoldRun() doc.ActiveWindow.Selection.TypeText(_type) doc.ActiveWindow.Selection.BoldRun() Does

[python-win32] COM Browser Adobe InDesign Type Library not loading

2011-12-14 Thread Boc Tom
Hi, Using PythonWin with InDesign, "The type info can not be loaded " when browsing the Adobe Type Library, Any idea how to fix this ? Thanks for your help, Thomas ___ python-win32 mailing list python-win32@py

[python-win32] JavaScript - Python

2011-12-12 Thread Boc Tom
Hi, I want to use Python to automate InDesign, There is very little help on that subject ! I would like to use some of the sample scripts provided in the InDesign Sripting documentation, So I translate them from VBScript to Python which is ok except there are some parts written in JavaScript a

[python-win32] makepy.py usage and COM

2011-12-12 Thread Boc Tom
Hi, I have Python 3.2.2 and pyWin32 build 216 : I have the same issue already mentionned here : http://mail.python.org/pipermail/python-win32/2008-August/008093.html I just can't get the code right, Is there any update that would fix that bug ?

[python-win32] Fwd: Issue with inserting Microsoft Excel charts into Word

2011-08-26 Thread Tom
Me and Tim started to email each other directly, here are the messages for anyone who is interested. ~Tom -- Forwarded message -- From: Tom Date: Fri, Aug 26, 2011 at 12:04 PM Subject: Re: [python-win32] Issue with inserting Microsoft Excel charts into Word To: Tim Golden

[python-win32] Issue with inserting Microsoft Excel charts into Word

2011-08-25 Thread Tom
reason why this might be happening? ~Tom ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] UnicodeEncodingError when print a doc file

2011-06-16 Thread Tom Hawkins
se() will read the entire contents of the text file into the Python variable filetext. If you just want to get the word count of this text, you don't need to use a loop, by the way - you can get it from: wordcount = len(filetext.split()) Tom Hawkins Principal Scientist Innospec Inc Te

Re: [python-win32] UnicodeEncodingError when print a doc file

2011-06-15 Thread Tom Hawkins
le.txt", FileFormat:=wdFormatText Again these examples are for Word 2003. PS Profuse apologies for quoting the entire digest in my last message! Tom Hawkins Principal Scientist Innospec Inc Tel: +44 (0)151 356 6197 Fax: +44 (0)151 356 6112 <>

[python-win32] Converting HTML formatting to Microsoft Word

2011-06-13 Thread Tom
eans a mix of both bold and non bold as far as I can tell). Does anyone have any experience doing anything similar to this, or can anyone give me a simpler way to do this? ~Tom ___ python-win32 mailing list python-win32@python.org http://mail.python.o

Re: [python-win32] How to specify parameters in a query using odbc

2011-02-02 Thread Tom Hawkins
Thanks for all the replies - it's now working fine with ? (after some delay caused by testing with a single parameter query but forgetting that the parameter has to be supplied as a single-member list)... Tom Tom Hawkins Principal Scientist Innospec Inc Tel: +44 (0)151 356 6197

[python-win32] How to specify parameters in a query using odbc

2011-02-01 Thread Tom Hawkins
#x27;, 'bar')) ...I get: dbi.program-error: [Microsoft][ODBC SQL Server Driver][SQL Server]Incorrect syntax near 's'. in EXEC Any idea what I'm doing wrong please? Apologies if I've missed something stupid. I get the same error if I only specify one of the

Re: [python-win32] Boolean type changed in Python 3.0?

2011-01-15 Thread Tom
I have the same problems and googled a lot but just found Sunny Carter's requests with no solution. Is there any, yet? Thanks! ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

[python-win32] Com questions.

2009-12-06 Thread Tom Pacheco
ule. ifmod = win32com.client.gencache.GetModuleForTypelib(typelibCLSID, lcid, major, minor) is it as simple as: pyobj = ifmod.InterfaceClassName(dyobj._oleobj_) is there a way to list the names in the gencache? ie.. 'Word.Application' 'Excel.Application' how do you get the guid f

[python-win32] wmi, Win32_ScheduledJob and Execution User

2008-05-01 Thread Tom Moulton
of a scheduled job within the Win32_ScheduledJob call or via the wmi interface? The way I am doing it right now, I could have simply called schtasks.exe directly and had it create the process with the intended run user, which I don't find very eloquent. Tom _

[python-win32] Accessing a Remote Registry....

2008-04-26 Thread Tom Moulton
Much obliged. Worked like a champ, but you already knew that! ;-) Tom ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

[python-win32] Accessing a Remote Registry....

2008-04-26 Thread Tom Moulton
Much obliged. Worked like a champ, but you already knew that! ;-) Tom ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] [pywin32-bugs] ISAPI Set-Cookie Probs

2008-02-25 Thread Tom Wells
7; failed with exit status 2 I have vs2003 installed (for python 2.5.1), plus just downloaded and installed the latest platform sdk from ( http://www.microsoft.com/downloads/details.aspx?FamilyId=A55B6B43-E24F-4EA3-A93E-40C0EC4F68E5&displaylang=en#filelist ). Any ideas? I'm purely after the ISA

Re: [python-win32] [pywin32-bugs] ISAPI Set-Cookie Probs

2008-02-25 Thread Tom Wells
let me know once you have a build available, I am running python 2.5.1 (32 bit), but would also require an amd64 build if possible? Thanks, Tom On Mon, Feb 25, 2008 at 3:50 PM, Mark Hammond <[EMAIL PROTECTED]> wrote: > > Actually there is no such fc.SetHeader() function ... > &

Re: [python-win32] [pywin32-bugs] ISAPI Set-Cookie Probs

2008-02-24 Thread Tom Wells
on is for writing an HTTP response value (200, 302 etc), and not for actually setting an HTTP header. Another thought I had was keeping a reference to the PREPROC notification structure, and then calling SetHeader() on it inside the AUTHENTICATION notification - do you think this might work? Thank

[python-win32] Windows service problem

2007-06-12 Thread Dalton, Tom
; server process (another python program) has died, and if so restarts it. Is this some weird issue with using sleep within the service's main method? If so, how can I get round this problem? I'm using pywin 2.0.4 and python 2.4.3 Thanks for any help anyone can give :-) Tom

Re: [python-win32] Makepy and Documentum Foundation Classes

2006-12-21 Thread Tom Schaible
there should be a way to coax correct values out of this since Python is cabable of getting the correct IDs. Any help is appreciated. Thanks, --Tom With carefully-arranged electrons, Mark Hammond wrote: > Unfortunately, the dynamic dispatch and makepy utilities don't get the > correct

RE: [python-win32] Re: win32process user info

2005-03-03 Thread Tom Haddon
Great! Works a treat! I think I'll go with the run under system account option. Tom -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Roger Upole Sent: Wednesday, March 02, 2005 7:49 PM To: python-win32@python.org Subject: [python-win32] Re: win32pr

[python-win32] win32process user info

2005-03-02 Thread Tom Haddon
ername for each process? Thanks, Tom ------- Tom Haddon Equilar, Inc. 1710 South Amphlett Boulevard Suite 312 San Mateo, CA 94402 650-286-4528 (phone) 650-286-4513 (fax) [EMAIL PROTECTED] CONFIDENTIALITY NOTICE: This is a transmission from Equilar, Inc.

RE: [python-win32] Re: Memory Usage for Processes

2005-02-10 Thread Tom Haddon
Sorry, a little quick on the trigger there. I have it working as below (as you can see this is just testing code). I'm now having trouble retrieving the name of the process. I'm trying: win32process.GetModuleFileNameEx(handle, ) The module handle is escaping me. I've tried using the win32con.P

RE: [python-win32] Re: Memory Usage for Processes

2005-02-10 Thread Tom Haddon
Hi Roger, I tried both of these but was getting the following messages. Is there any way of confirming which parameter it's refering to? Could it be my "process" parameter? Thanks, Tom Traceback (most recent call last): File "C:\test\memusage.py"

[python-win32] Memory Usage for Processes

2005-02-10 Thread Tom Haddon
y it looks like my problem is in getting the process handle... Thanks, Tom import win32process import win32api class WinProcesses: def __init__(self): pass def listprocesses(self): for process in self.proclist(): try: han = win32api.OpenProces