Re: [python-win32] Running Python + pywin32 portably

2012-02-03 Thread Tim Roberts
follow from that premise? Installing software should never requires a reboot. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Running Python + pywin32 portably

2012-02-03 Thread Tim Roberts
Bill Tutt wrote: Installing .net 2.0 would. It would require doing the requisite security updates for .net 2.0 for Win2k, etc Why do you need .NET 2.0 to install a Python app? -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc

Re: [python-win32] python 3 support

2012-02-01 Thread Tim Roberts
usually not that hard. There are LOTS of examples of controlling Word and Excel from Python, and the concepts are very similar. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http

Re: [python-win32] Query related to Python

2012-01-27 Thread Tim Roberts
comment. Later, you can recreate the history of that file by looking at the comments, or find out exactly when a particular line was modified. EVERY programmer should be using source code control, even on one-person projects. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc

Re: [python-win32] ISAPI Filter for authentication

2012-01-26 Thread Tim Roberts
button on your web page? That is equally as secure as HTTP Auth, and you are in full control of the process. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman

Re: [python-win32] Referencing a DLL, preferably using relative file path, etc.

2012-01-13 Thread Tim Roberts
CoCreateInstance eventually does. If you're talking about a normal (non-COM) DLL, then registration is not used. You can certainly use a full path in ctypes: import ctypes c = ctypes.cdll.LoadLibrary( '\\dev\\MyDll.dll') If that's not what you mean, perhaps you should be more explicit. -- Tim

Re: [python-win32] Second DLL question

2012-01-13 Thread Tim Roberts
that up so the caller doesn't know it's Python. Now, you can certainly create COM servers in Python that can be invoked from other non-Python programs. There are many, many examples of that. Also, I believe IronPython will let you do this. That's the .NET implementation of Python. -- Tim Roberts, t

Re: [python-win32] Problem with win32gui and WM_CREATE

2012-01-13 Thread Tim Roberts
it. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] win32file.CreateFile() parameter incorrect

2012-01-10 Thread Tim Roberts
SP3 system. You WILL get invalid parameter if the file name you passed was a file instead of a directory. Is it possible that c:\test is a file on your disk, instead of a directory? -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc

Re: [python-win32] WMI module - Properties Order

2012-01-04 Thread Tim Roberts
, as in: print Name =, x.Name print Description =, x.Description print Caption =, x.Caption -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman

Re: [python-win32] WMI module - Properties Order

2012-01-04 Thread Tim Roberts
will have to pass the field ordering from the query along to the renderer somehow. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] send message remote host

2011-12-19 Thread Tim Roberts
pacopyc pacopyc wrote: Yes, I'm thinking about net send of Windows As Google would have told you, net send uses the API NetMessageBufferSend, which is in the win32net module in PyWin32. There are samples on the Internet, although you might have to translate the C++ to Python. -- Tim Roberts

Re: [python-win32] Problem : COM with Array Argument

2011-12-19 Thread Tim Roberts
to be what the documentation shows. You'd sure your values were all floats? -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] send message remote host

2011-12-16 Thread Tim Roberts
operation that the net send command performs? -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] MySQL connection/admin tool

2011-11-28 Thread Tim Roberts
method to run an SQL query. Then you use methods like fetchone and fetchall to retrieve the records one by one. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org

Re: [python-win32] Detecting user (in)activity and changing process prioritization?

2011-10-31 Thread Tim Roberts
, is it possible to change the priority of a running process, or can the priority of a Windows process only be set when the process is launched? Changing the priority is exactly the way to do this. http://code.activestate.com/recipes/496767/ -- Tim Roberts, t...@probo.com Providenza

Re: [python-win32] retrieve microsoft office product key

2011-10-26 Thread Tim Roberts
is an example for Office 2010 volume licenses: http://blogs.technet.com/b/office2010/archive/2009/12/18/volume-activation-tips-and-tricks.aspx -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32

Re: [python-win32] read word contents including images and font format

2011-10-05 Thread Tim Roberts
contents fails to load images from the document. Is there a method that will allow reading word content with the original formatting as well as images. Do it exactly like you would do it by hand: go through the clipboard, using Copy and Paste methods. -- Tim Roberts, t...@probo.com Providenza

Re: [python-win32] Get path of the current open document of the current active application

2011-09-21 Thread Tim Roberts
handle. That gives you the root application object, and you can ask that for the current document, assuming the document has been saved. For IE, you can actually go probing through the window handles to find the text box that contains the current URL. -- Tim Roberts, t...@probo.com Providenza

Re: [python-win32] Get executables corresponding to system tray icons?

2011-09-19 Thread Tim Roberts
, pProc, 0, 0x8000 ) CloseHandle( hProc ) TrayIcons() -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Accessing non-default folders in Outlook 2010?

2011-08-25 Thread Tim Roberts
Anders Schneiderman wrote: When I tried it: folders = outlook.GetRootFolder() I got the following error message: AttributeError: object has no attribute 'GetRootFolder Hmmm. Are you able to refer to outlook.Folders(0)? http://support.microsoft.com/kb/208520/EN-US -- Tim Roberts, t

Re: [python-win32] Recurring DLL error with py2exe

2011-08-25 Thread Tim Roberts
there were any versions of Python that were built with Visual Studio 2008. VS2010 wisely eliminates the side-by-side stuff for the CRT DLLs, so the problem goes away. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list

Re: [python-win32] Recurring DLL error with py2exe

2011-08-25 Thread Tim Roberts
. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Accessing non-default folders in Outlook 2010?

2011-08-24 Thread Tim Roberts
and other things in default folders, such as tasks:by using GetDefaultFolder. I think you want outlook.GetRootFolder(), then enumerate the Folders collection within that. http://msdn.microsoft.com/en-us/library/ff860733.aspx -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc

Re: [python-win32] Opening, Modifying, and Saving an Excel File from Python? (Tim Roberts)

2011-08-23 Thread Tim Roberts
. Something has grabbed the excel file. Can you post the whole script as you have it now? How many times to you have to run it before it fails? -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32

Re: [python-win32] Opening, Modifying, and Saving an Excel File from Python?

2011-08-22 Thread Tim Roberts
file and set Visible to 0, it can be very difficult to remember that your file is still open. You should use xlApp.Quit() in every exit path. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32

Re: [python-win32] Excel NumberFormat to Python? (!)

2011-08-05 Thread Tim Roberts
. Definitely a non-trivial chore to translate this. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Append data to an already saved XL File

2011-08-03 Thread Tim Roberts
the datetime module. You'd need a way to remember when you start a new month, so you don't overwrite old data, but perhaps you should base the name of the XLS file on the current month. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python

Re: [python-win32] send to mail recipient

2011-07-28 Thread Tim Roberts
to make a C++ application to do this, and call it from your Python code. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] filling in field in a Word doc?

2011-07-14 Thread Tim Roberts
in doc.FormFields: if f.Type == win32com.client.constants.wdFieldFormTextInput: pass # This is an input field -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http

Re: [python-win32] filling in field in a Word doc?

2011-07-13 Thread Tim Roberts
of the fields in the document. You will probably need to run through the fields in the Fields collection, figure out which ones are fill-in fields (as opposed to page number fields, or date fields, or one of the other thousand field types), and change the value. -- Tim Roberts, t...@probo.com

Re: [python-win32] Word document with columns and page break.

2011-07-11 Thread Tim Roberts
a pretty good job of providing a COM interface for every feature in the application. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] win32print.StartDocPrinter

2011-07-11 Thread Tim Roberts
universal. When I create PDF, it looks the same everywhere. There are several good PDF libraries for Python. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org

Re: [python-win32] Accessing standard Mail-application

2011-07-08 Thread Tim Roberts
, to be completely general, you need to use smtplib to send to an external mail server. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python

Re: [python-win32] installation problem on win xp

2011-07-07 Thread Tim Roberts
:\python32\python.exe %* -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Importing pictures in a worddocument in python?

2011-07-06 Thread Tim Roberts
out how to translate that VB code into Office calls. There is good documentation on the Word object model, although naturally it's all oriented toward VB and C# programming. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32

Re: [python-win32] win32print.StartDocPrinter

2011-07-06 Thread Tim Roberts
, but it works for generating reports and things. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] More relating to catching cursor keystrokes in command line

2011-07-05 Thread Tim Roberts
. That key-code sequencing is a remnant of the BIOS in PCs, and this getch behavior is leftover from MS-DOS. Linux requires an entirely different approach. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python

Re: [python-win32] Python vs Outlook Question

2011-06-16 Thread Tim Roberts
, win32com.constants.olByValue ) -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Python vs Outlook Question

2011-06-16 Thread Tim Roberts
: mail.AddBusinessCard = 'Signature1' AddBusinessCard is a method, not a property. It has to be called like a function. However, it doesn't accept a simple string; it takes a ContactItem object, which you would have to get from the list of Outlook contacts. -- Tim Roberts, t...@probo.com Providenza

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

2011-06-15 Thread Tim Roberts
these constants for you. In any case, 15 seconds with Google would have showed you that wdFormatText = 2 and wdFormatTextLineBreaks = 3. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http

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

2011-06-15 Thread Tim Roberts
\\Drugreservoir.doc') 3. Use forward slashes: apps.Documents.Open('D:/projects/Myself/HelloPython/src/Drugreservoir.doc') -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org

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

2011-06-15 Thread Tim Roberts
= open(r'D:/projects/Myself/HelloPython/src/Drugreservoir1.txt') for word in doc.read().split(): print word -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org

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

2011-06-14 Thread Tim Roberts
, that you don't need to convert it to an 8-bit character set until you want to print it. If you are going to process these words, then you might as well leave them in Unicode. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32

Re: [python-win32] Convert RGBA to BGRA using standard library?

2011-05-31 Thread Tim Roberts
, but I'm after a solution that doesn't depend on any third-party libraries. Nothing other than brute force. bout = [] for i in range(0,len(bin),4): bout.extend( [bin[i+2], bin[i+1], bin[i], bin[i+3]) ) It ain't gonna be quick. If it were me, I'd rather ship PIL. -- Tim Roberts, t

Re: [python-win32] win32event.WaitForMultipleObjects and sockets

2011-05-26 Thread Tim Roberts
accepts. http://msdn.microsoft.com/en-us/library/ms687025.aspx Are you trying to do asynchronous socket I/O? You should probably be using the built-in Python mechanism for that, in the asyncore module. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc

Re: [python-win32] Next step trying to include extra/external file in py2exe output

2011-05-24 Thread Tim Roberts
be laid out on disk exactly as they would if you were running the script. The includes list, as you see, runs an import statement on the modules you name. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python

Re: [python-win32] RTD Server problem with Excel 2007

2011-05-24 Thread Tim Roberts
ff: class TimeServer(ExcelRTDServer): .. def __init__(self): .. self.ticker = threading.Timer(self.INTERVAL, self.Update) Does that actually create a new thread? If so, every new thread has to call CoInitialize before it does any COM actions. -- Tim Roberts, t...@probo.com Providenza

Re: [python-win32] Next step trying to include extra/external file in py2exe output

2011-05-24 Thread Tim Roberts
, and mapDataFn.py, all in the same directory, that should work just fine, without any includes overrides at all. What error do you see? -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http

Re: [python-win32] Next step trying to include extra/external file in py2exe output

2011-05-24 Thread Tim Roberts
to mapDataFn.pyc byte-compiling c:\apps\python26\lib\StringIO.py to StringIO.pyc ... lots of output deleted ... C:\Dev\xxxcd dist C:\Dev\xxx\distmain.exe 123 C:\Dev\xxx\dist -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32

Re: [python-win32] First post to list, etc.

2011-05-17 Thread Tim Roberts
area of your email was dedicated to your message. The rest was advertising and a legally pointless disclaimer. I'm sure you don't have any control over that, but I hope you remind your management team once in a while that many people really dislike that kind of email. -- Tim Roberts, t

Re: [python-win32] Getting address for Parallel port

2011-05-17 Thread Tim Roberts
to gain access to any arbitrary I/O port. There's a reason why port access is not allowed from user mode. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman

Re: [python-win32] Problem Automating IE on W7

2011-05-04 Thread Tim Roberts
, -2147221248), None) -2147221248 is 0x80040100, which is either DRAGDROP_E_NOTREGISTERED (unlikely) OLECMDERR_E_NOTSUPPORTED. I know they've tightened up security quite a bit, but it's hard to see how that applies here. Is this a funky web page, or just a simple HTML doc? -- Tim Roberts, t

Re: [python-win32] Python and registry access with UAC enabled

2011-04-26 Thread Tim Roberts
, you don't really need KEY_ALL_ACCESS. All you need is KEY_SET_VALUE. I don't think that will be allowed either, but it's better to ask for only the permissions you need. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32

Re: [python-win32] Python service needs to access network resources

2011-04-20 Thread Tim Roberts
to access your net shares, and it doesn't know about drive letters mapped by your username. It's not logged in to your network. You really have two choices. You can configure the service to log in with your user name (in the Services control panel), or you can copy these modules locally. -- Tim

Re: [python-win32] Problem using win32com.client.Dispatch on Win764bit

2011-04-11 Thread Tim Roberts
is a binary code, so in fact, I am not sure it is the same problem as Eileen's. -2147221164 is 0x80040154 which is REGDB_E_CLASSNOTREG. So, soething has gone wrong in registering your proxy class. Did you actually register it? -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc

Re: [python-win32] unable to register a python com server

2011-04-07 Thread Tim Roberts
registering it using a 64-bit app. In the case of regsvr32, the system contains both versions (32-bit and 64-bit), and each will silently call the other if it finds a mismatch. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32

Re: [python-win32] EnsureDispatch throwing fatal error

2011-03-31 Thread Tim Roberts
Jiawei Li wrote: iTunes is installed. iTunes is a 64-bit application. Unless they also registered a 32-bit proxy, a 64-bit COM object cannot be used in a 32-bit process. If you need this, it may be time to consider loading a 64-bit Python. -- Tim Roberts, t...@probo.com Providenza

Re: [python-win32] EnsureDispatch throwing fatal error

2011-03-31 Thread Tim Roberts
Jiawei Li wrote: Ah, I see. So likewise, I just need to run a 64-bit version of py2exe? Since I have not personally tried running iTunes on a 64-bit system, I can't give you 100% confidence, but based on the error message, I am guessing that will solve your problem, yes. -- Tim Roberts, t

Re: [python-win32] Using Flexible Win32 message pump to monitor window open/close for all application?

2011-03-30 Thread Tim Roberts
package, but I don't know if it is still being developed. http://www.cs.unc.edu/Research/assist/developer.shtml -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org

Re: [python-win32] pyconfig.h: conflicting definitions for ssize_t

2011-03-29 Thread Tim Roberts
): #ifdef MS_WIN64 typedef __int64 ssize_t; #else typedef _W64 int ssize_t; #endif while kdewin/include/msvc/sys/types.h says: typedef SSIZE_T ssize_t; I agree with your conclusion. However, this isn't a Python-Win32 issue. You need to file a bug report against Python itself. -- Tim Roberts, t

Re: [python-win32] Set html in outlook mail

2011-03-23 Thread Tim Roberts
newMail.HTMLBody = htmlbodyCIAO!/body/html All I did was go to the MSDN page on the CreateItem method of the Outlook.Application object. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org

Re: [python-win32] Getting Started

2011-03-23 Thread Tim Roberts
about the PyWin32 package, which adds virtually complete access to the Win32 API. Are there APIs you need that weren't present? -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http

Re: [python-win32] Getting Started

2011-03-23 Thread Tim Roberts
find VS2003. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Getting Started

2011-03-23 Thread Tim Roberts
Tony Wallace wrote: I have no reason to build from source. Where do I get this precompiled installation? http://sourceforge.net/projects/pywin32/files/pywin32/Build216/ If I read your messages right, you are running Python 2.5, so you want pywin32-216.win32-py2.5.exe. -- Tim Roberts, t

Re: [python-win32] Win32_NTLogEvent access denied exception

2011-03-10 Thread Tim Roberts
-check.googlecode.com/svn-history/r10/trunk/windows-privesc-check.py Check get_extra_privs about half-way through. You can simplify it a little bit, since you are looking for exactly one privilege. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc

Re: [python-win32] Fonts behaving differently with Py3/216

2011-03-04 Thread Tim Roberts
fonts. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] print file byte contents distribution

2011-03-04 Thread Tim Roberts
other -- sometimes the dict is slightly faster, sometimes the list is slightly faster. Thus, for all practical purposes, they are identical. I'm surprised. That means you should use the one that makes sense to you. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc

Re: [python-win32] Problem with msvcr90.dll

2011-03-02 Thread Tim Roberts
having the files in \Windows\System32 is enough for everyone. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Problem with win32print.SetPrinter

2011-03-01 Thread Tim Roberts
a recipe to make it work again. If I had not previously been a GDI driver developer, I doubt that I could have figured out the DEVMODE magic that was required. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python

Re: [python-win32] Possible future direction for PyGUI on Win32

2011-02-28 Thread Tim Roberts
painful. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Possible future direction for PyGUI on Win32

2011-02-28 Thread Tim Roberts
is simply being wasted. I still do most of my programming in C++ because I like having control, but there is nothing wrong with .NET. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http

Re: [python-win32] Missing methods from result of Dispatch or EnsureDispatch

2011-02-25 Thread Tim Roberts
models. Do you have an example that shows Dynamics being used from a non-managed COM application? -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo

Re: [python-win32] regmon realtime

2011-02-21 Thread Tim Roberts
even be able to do this from Python. If you set fAsynchronous to false, it blocks until something in the key changes, then returns to you. If you are hoping to monitor the entire registry, that requires the assistance of a kernel driver. -- Tim Roberts, t...@probo.com Providenza Boekelheide

Re: [python-win32] DVCS options for pywin32

2011-02-07 Thread Tim Roberts
the tortoise stuff either. git just seemed to be too much of a lifestyle commitment. You're really working with a lot of details that seemed unnecessary to me. I haven't had any line-ending hassles yet. That has certainly been an issue with CVS over the years. -- Tim Roberts, t...@probo.com

Re: [python-win32] PyWin32 has stopped working/mfc90.dll error

2011-02-02 Thread Tim Roberts
framework. What are you doing when it crashes? -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

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

2011-02-01 Thread Tim Roberts
dbapi specification. The Win32 odbc module uses ? characters instead of %s. A simple search-and-replace should solve your problem. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http

Re: [python-win32] Fixing type ID for an interface file generated by makepy

2011-01-25 Thread Tim Roberts
Tim Roberts wrote: Brad Buran wrote: When I generate the interface file for a COM object using makepy, it generates an incorrect signature for one of the methods: def ReadTag(self, Name=defaultNamedNotOptArg, pBuf=defaultNamedNotOptArg, nOS=defaultNamedNotOptArg, nWords

Re: [python-win32] odbc under windows 7?

2011-01-24 Thread Tim Roberts
without the runtime, I think you're in trouble. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] About COM

2011-01-17 Thread Tim Roberts
be there: import pythoncom ses = Dispatch('Lotus.NotesSession', clsctx=pythoncom.CLSCTX_LOCAL_SERVER) If that doesn't work, you'll have to create your own 32-bit process to communicate with Lotus, with some kind of cross-process scheme to pass requests between you and the other process. -- Tim

Re: [python-win32] Trouble with SetWindowLong().

2011-01-17 Thread Tim Roberts
searching for the window by it's title, I'm voting for a named event. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] what's required to use win32com in a portable python directory.

2011-01-17 Thread Tim Roberts
Naveen Garg wrote: Is it possible to use win32com without setting up registry keys ? A COM server can only be accessed through the registry. So, if you are writing a COM server, then you must create registry keys. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc

Re: [python-win32] WSAAsyncSelect

2011-01-05 Thread Tim Roberts
get you the socket handle for the first parameter. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Help with accessing form elements and setting focus.

2010-12-23 Thread Tim Roberts
to map the C++ calls into Python. After you read up on those objects, that's where we on this list can be of use. Show us what you've tried, tell us what doesn't work, and we can offer suggestions. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc

Re: [python-win32] Identify unique data from sequence array

2010-12-22 Thread Tim Roberts
original post, but decided it muddied the waters too much. I was more or less trying to give the original poster something to start thinking about. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32

Re: [python-win32] Intenet explorer using PythonWin Help

2010-12-22 Thread Tim Roberts
there. I believe a COM object will always return True in Python. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Access femap API, Type mismatch

2010-12-02 Thread Tim Roberts
it is. The type code 16387 is VT_I4 + VT_BYREF, which means a 4-byte integer passed by reference. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python

Re: [python-win32] Running GUI apps from a python/IIS web application

2010-12-02 Thread Tim Roberts
application when no one is logged in, without delving deep into Windows magic. You will need to modify (or patch) the application. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http

Re: [python-win32] Running GUI apps from a python/IIS web application

2010-12-02 Thread Tim Roberts
Dahlstrom, Roger wrote: Sure there is, autologon! Ah, but if one uses autologon, then it is no longer the case that no one is logged in, so I think my comment is still valid... ;) -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc

Re: [python-win32] Checking app windows for certain keywords

2010-12-01 Thread Tim Roberts
window as a blank canvas, and use their own internal scheme to display the text. You can't use a window message to read the visible part of a Word document. To control Word, you'd have to use COM. That opens up an entirely new can of worms. -- Tim Roberts, t...@probo.com Providenza Boekelheide

Re: [python-win32] Running GUI apps from a python/IIS web application

2010-12-01 Thread Tim Roberts
painful and creative use of CreateProcessAsUser, to create a process as the user that is running on the primary visible desktop. Here's more information, although I don't really think it solves your problem: http://msdn.microsoft.com/en-us/library/ms683502.aspx -- Tim Roberts, t...@probo.com

Re: [python-win32] Can't see Python27.dll on Win 7

2010-11-23 Thread Tim Roberts
the file really lives. If it really lives in system32, you'll need to move it. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Can't see Python27.dll on Win 7

2010-11-23 Thread Tim Roberts
you have a 32-bit executable. If your root executable is 64-bit, then you will need to install a 64-bit Python. Unlike the 16/32 days, there is no thunking. A 64-bit app cannot load a 32-bit DLL, nor vice versa. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc

Re: [python-win32] Can't see Python27.dll on Win 7

2010-11-23 Thread Tim Roberts
option. It is not well known that the newer versions of depends have a trace mode. You can launch an executable from inside depends, and it will trace all of the DLL loads and unloads. That might tell you something. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc

Re: [python-win32] python-win32 Digest, Vol 92, Issue 16

2010-11-22 Thread Tim Roberts
to access the structure. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] How to make Python identify GUI buttons by their label

2010-11-11 Thread Tim Roberts
. If you are searching for subwindows, you can call the FindWindow API, which accepts titles. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python

Re: [python-win32] Wrong default value for optional argument in makepy signature.

2010-11-09 Thread Tim Roberts
like this. Instead of declaring it a pointer, they'll declare it as an integer. Makepy isn't omniscient. Do you have the IDL that describes the function, or a web page reference? Can you show us the script that makepy generated? -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc

Re: [python-win32] Makepy does not generate all secondary interfaces?

2010-11-09 Thread Tim Roberts
appreciated. (Or is this possibly a bug?) A Google search for IPIAsynchStatus2 brings up nothing but your messages. Are you sure that's spelled correctly? -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python

Re: [python-win32] Makepy does not generate all secondary interfaces?

2010-11-09 Thread Tim Roberts
Åsmund Hjulstad wrote: 2010/11/9 Tim Roberts t...@probo.com: Åsmund Hjulstad wrote: ... My latest attempt is pisdkcommonlib = ('{76A44786-EBC8-11D3-BDC5-00C04F779EB2}', 0, 1, 0) win32com.client.makepy.GenerateChildFromTypeLibSpec(IPIAsynchStatus2, pisdkcommonlib, 1) That's not the correct

Re: [python-win32] SolidWorks pywin32?

2010-11-08 Thread Tim Roberts
: CustPropMgr.Get2(CustProperty, ValOut, ResValOut) File COMObject unknown, line 2, in Get2 pywintypes.com_error: (-2147352571, 'Type mismatch.', None, 2) Those are output parameters. You probably want this: (ValOut, ResValOut) = CustPropMgr.Get2(CustProperty) -- Tim Roberts, t...@probo.com

<    1   2   3   4   5   6   7   8   9   10   >