[python-win32] Python crash after win32com.client.CastTo?

2005-03-22 Thread Tim Roberts
C005, which is STATUS_ACCESS_VIOLATION: a general protection fault. That's usually a wild address or a null pointer dereference. Is it possible that one of those last two parameters is actually (in,out) and not just (out)? -- - Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc

Re: [python-win32] Re: Help on using win32api.SendMessage to send keystrokes

2005-03-31 Thread Tim Roberts
, since you want a specific solution, you can send just WM_CHAR. -- - Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Re: Help on using win32api.SendMessage to send keystrokes

2005-04-01 Thread Tim Roberts
expressions; you just build it by hand: bits = 0x800 | 0x0003 | vkKey Or, if you prefer the bit numbers explicitly: bits = (2 30) | (3 16) | vkKey -- - Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ Python-win32 mailing list

Re: [python-win32] Sparse files and Pickle

2005-04-04 Thread Tim Roberts
pickling. I thought pickle recognized a magic method name so the object could help put itself into a picklable state, but I don't see it now. -- - Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ Python-win32 mailing list Python-win32

Re: [python-win32] Help on using win32api.SendMessage to send keystrokes

2005-04-05 Thread Tim Roberts
and install a set of kernel filter drivers to inject the events, and you really don't want to do that. The API is not enough. -- - Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ Python-win32 mailing list Python-win32@python.org http

Re: [python-win32] Help on using win32api.SendMessage to send keystrokes

2005-04-05 Thread Tim Roberts
for a living. -- - Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Help on using win32api.SendMessage to send keystrokes

2005-04-05 Thread Tim Roberts
considers to be proprietary. The support burden for a kernel driver is much greater than a user-mode app. And, the investment in creating and debugging a driver is so high, that most manufacturers don't want to help the competition by providing the labor for free. -- - Tim Roberts, [EMAIL

Re: [python-win32] How Can I exec() a statement?

2005-04-12 Thread Tim Roberts
be bound to that object. (Actually, that's not entirely true: it knows HOW MANY names are bound to it, so it can do reference counting and garbage collection, but not WHICH names.) -- - Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc

Re: [python-win32] getting the contents of a Control in a window

2005-04-12 Thread Tim Roberts
creates the buffer for you, and passes the resulting string as a return from the function. -- - Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python

Re: [python-win32] Python and Hardwaremanagement

2005-04-12 Thread Tim Roberts
to create GUI apps, where you have a window with controls and buttons and such, you will need to investigate one of the add-on packates. wxPython is my favorite, but tkinter and pyGTK have their fans as well. -- - Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc

Re: [python-win32] how to browse another computer's folder treestructure ?

2005-04-29 Thread Tim Roberts
On Thu, 28 Apr 2005 15:43:25 -0400, Michael Li [EMAIL PROTECTED] wrote: Hi, Mark Thank you very much. It works, but only shows shared folders, not all the folders, is it possible to show all folders ? Of course not. Windows security wouldn't be worth very much if it could. -- Tim Roberts

Re: [python-win32] Setting environment variables in windows from Python Programs

2005-05-10 Thread Tim Roberts
:\VS.NET\VC7\PlatformSDK\lib;C:\VS.NET\SDK\v1.1\lib; LOGNAME=timr LOGONSERVER=\\DOUG 0 ^Z C:\Tmpset LANG Environment variable LANG not defined C:\Tmp -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ Python

Re: [python-win32] Setting environment variables in windows from Python Programs

2005-05-11 Thread Tim Roberts
that variable. That's the best you can do: you can change the environment for the processes you start, but you cannot change the environment of the process that started you. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ Python-win32 mailing

Re: [python-win32] LOCALE related stuff Re: Setting environment variables in windows from Python Programs-

2005-05-11 Thread Tim Roberts
locale.setlocale(locale.LC_ALL, '') import sys import pygtk ... -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] 1MB Thread Stack Size

2005-06-03 Thread Tim Roberts
threads working on tasks at the same time, then you don't really need 1,000 threads. I'm sure you can solve the stack space problem. I'm just suggesting that time spent on such a solution might be wasted, when you could actually solve your problem in a better way. -- Tim Roberts, [EMAIL

Re: [python-win32] Strange page header text in PythonWin

2005-06-03 Thread Tim Roberts
applied, so it gets fonts and colors. Is the title really being printed with whatever font was leftover in the dc? That's probably a bug. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ Python-win32 mailing list Python-win32

Re: [python-win32] IIS CGI installation

2005-06-06 Thread Tim Roberts
. Simple, functional, understandable. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

[python-win32] Windows LogParser COM interface

2005-06-06 Thread Tim Roberts
, or if you launch it with pythonw, it won't work, because there is no stdout to write to. The fact that the traceback shows file , line 1, in ? tells me that you might be running it from inside a GUI, and not from a real command line. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc

Re: [python-win32] import and asp-python and iis - strange behaviour

2005-06-07 Thread Tim Roberts
import with an asp page? In my experience, the best way to deal with the unpredictable and unfriendly nature of IIS and ASP is to upgrade IIS by disabling it and installing Apache for Win32 in its place. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc

Re: [python-win32] Interfacing to windows explorer

2005-06-08 Thread Tim Roberts
, and it's a lot easier than wxPython (even though I like wxPython a lot). -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Openning the IDE from Windows Explorer

2005-06-14 Thread Tim Roberts
interface, there are several good options: wxPython, tkinter, and Qt are all possible. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

[python-win32] Unable to set an Excel chart's title through win32com : can you reproduce this problem ?

2005-06-28 Thread Tim Roberts
can't manipulate anything. If you move the chart.Location call to the end, it works as expected: ... xAxis.HasMajorGridlines = True yAxis.HasMajorGridlines = True chart.HasTitle = True chart.ChartTitle.Text =title chart.Location (Where=constants.xlLocationAsObject, Name=sheet.Name) -- Tim Roberts

Re: [python-win32] Invoking InchesToPoints

2005-08-02 Thread Tim Roberts
): return inches * 72.0 -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] build list of all tasks like Alt-TAB box

2005-08-10 Thread Tim Roberts
contains other controls. Getting rid of this probably gets rid of text-only windows, like tooltips and balloon help. The spyxx.exe tool can be used to poke around the window list to find these things. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc

Re: [python-win32] build list of all tasks like Alt-TAB box

2005-08-11 Thread Tim Roberts
of the Platform SDK, which is freely downloadable. I don't know if that is still the case. Borland also has an excellent tool for this kind of spelunking called winsight.exe; it is possible you might find an older version living somewhere in the dusty back rooms of the Internet. -- Tim Roberts, [EMAIL

Re: [python-win32] problem wih vi.run

2005-09-02 Thread Tim Roberts
maintaining your control in the main thread. You'll have to be careful to monitor the object lifetime, so you don't try to use the object after it completes. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ Python-win32 mailing

Re: [python-win32] Looking for sample code

2005-09-07 Thread Tim Roberts
this: a = win32com.client.Dispatch( Access.Application ) Through the magic of the registry, Access.Application is a symbolic link to Access.Application.10 (or whatever), which is itself a symbolic link to the UUID of the Access application. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc

Re: [python-win32] detecting windows type

2005-09-09 Thread Tim Roberts
interfaces on a 95/98 machine. Have you tried the downloadable WMI support mentioned earlier? -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo

[python-win32] testMSOffice.py and Excel 2003

2005-09-16 Thread Tim Roberts
object, not a method. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] hide subshell os.system

2005-09-23 Thread Tim Roberts
module for Python. No console window there! Google is your friend. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] testMSOffice.py and Excel 2003

2005-09-27 Thread Tim Roberts
runs. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] create word document?

2005-10-05 Thread Tim Roberts
are you actually trying to do? If you want to generate and print formatted documents, you would have finer control and a much more flexible solution by using ReportLab to create PDF files, or HTML and the wxHtmlPrinting class in wxPython. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide

Re: [python-win32] Service problem - can't find stop method of object

2005-10-07 Thread Tim Roberts
, and the interpreter is misdiagnosing the results. What does self.reg.stop() do? Is it possible you're doing some operation that tries to cross a user boundary? Services run as LOCAL_SYSTEM, and there are some things you can't do to service processes. -- Tim Roberts, [EMAIL PROTECTED] Providenza

Re: [python-win32] Control-C

2005-10-17 Thread Tim Roberts
. They will have to start up a separate process in the user's session in order to communicate -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo

Re: [python-win32] String weirdness on python 2.4 / windows

2005-10-20 Thread Tim Roberts
opens its stdout as binary, so when you write this out to the socket, the file system will helpfully translate 0A to 0D/0A. You need something like this: import msvcrt msvcrt.setmode( 0, os.O_BINARY ) msvcrt.setmode( 1, os.O_BINARY ) -- Tim Roberts, [EMAIL PROTECTED] Providenza

Re: [python-win32] monitoring application controls...

2005-11-14 Thread Tim Roberts
the libraries for pyHook and pyAA. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] error message after many win32pipe.popen calls

2005-11-15 Thread Tim Roberts
. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] inspect32.exe python equivalent?

2005-11-17 Thread Tim Roberts
Accessibility. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Creating pivot tables in excel using python

2005-11-18 Thread Tim Roberts
is 800A03EC, which is some kind of generic access denied error within Excel. Can you run this EXACT sequence in VBA within Excel? -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ Python-win32 mailing list Python-win32@python.org http

Re: [python-win32] mciSendCommand from win32 ???

2005-11-29 Thread Tim Roberts
be done with the simpler mciSendString commands, kind of like this: mciSendString( open new type waveaudio alias cap ) mciSendString( set cap bitspersample 16 channels 1 samplespersec 44100 ) mciSendString( record cap ) -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc

[python-win32] win32 service not receiving shutdown notification on reboot

2005-12-01 Thread Tim Roberts
SvcShutdown = SvcStop if __name__ == '__main__': win32serviceutil.HandleCommandLine(MyTwistedService) -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ Python-win32 mailing list Python-win32@python.org http://mail.python.org

Re: [python-win32] Error message....

2005-12-20 Thread Tim Roberts
to declare that the parameter is a pointer: pi.piut_login( pidemo, dorazio, ctypes.byref( valid ) ) -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman

Re: [python-win32] Error message....

2005-12-21 Thread Tim Roberts
= ctypes.c_int( 0 ) pi.piut_login( pidemo, dorazio, ctypes.byref( valid ) ) -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] FetchProgress event problem

2005-12-23 Thread Tim Roberts
* FROM test, 3, 1, 49) if __name__ == __main__: Test() Besides Roger's comments, in this PARTICULAR example, you have not connected the Recordset with the Connection. Don't you want this: rs.Open( SELECT * FROM test, conn, 3, 1, 49 ) or: rs.Open( test, conn, 3, 2, 49 ) -- Tim

[python-win32] Library and header?

2006-01-09 Thread Tim Roberts
this is a relatively common need. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Library and header?

2006-01-10 Thread Tim Roberts
for these, but I must have blacked out when the results came up on my screen the first time. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo

Re: [python-win32] wxPython an Pywin32

2006-01-12 Thread Tim Roberts
more specific. pywin32 is a very large package, encompassing everything from the simplest GetVersion API to the COM wrappers to the pythonwin IDE, with vast gobs of stuff in between. What specific APIs did you add that caused the freeze? -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide

Re: [python-win32] Reading properties from office builtin dialogs?

2006-01-31 Thread Tim Roberts
u'DOUG\\HP LaserJet 5Si - PS' That certainly is the name of my default printer. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python

Re: [python-win32] Spawnv problem

2006-01-31 Thread Tim Roberts
a,b a b -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Visual Basic

2006-02-06 Thread Tim Roberts
creation, you have probably not created enough COM objects for that level of control. If you are switching to wxPython, then what you want to do is recreate MyUserForm in wxPython code, and eliminate the VB code altogether. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc

Re: [python-win32] Visual Basic

2006-02-06 Thread Tim Roberts
. Quite workable, but you'll have to decide how appropriate for your situation. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Attributes of win32com and accessing MS Access

2006-02-06 Thread Tim Roberts
= SELECT * FROM volunteers ORDER BY LastName; rs = cmd.Execute()[0] rs.MoveFirst() while not rs.EOF: print rs.Fields(LastName) -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ Python-win32 mailing list Python-win32

Re: [python-win32] More VisualBasic

2006-02-08 Thread Tim Roberts
model. That's exactly what Python is. Both of them can manipulate Excel, but it's a lot of work to have one of them manipulate the other. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ Python-win32 mailing list Python-win32

Re: [python-win32] building python on Windows

2006-02-23 Thread Tim Roberts
++ will try to connect to VSS, just in case you happen to be on the same network. Any inputs on this?? All you need to do is decline. Click cancel, or whatever the leave me alone option is. It won't ask you again. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc

Re: [python-win32] Automated FTP?

2006-02-23 Thread Tim Roberts
from web and FTP servers, and it is available for Windows. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

[python-win32] how to open a file with associated application?

2006-03-02 Thread Tim Roberts
this key: HKEY_CLASSES_ROOT\MyDefGuiApplication\Shell\Open\Command and set the default value to the command I showed above, of type REG_EXPAND_SZ. You can use whatever name you want for MyDefGuiApplication. It's just the link between the extension and the command line. -- Tim Roberts

Re: [python-win32] Creating users

2006-03-08 Thread Tim Roberts
there gives me all the users I was hoping for. MSDN is your friend here. It is the SECOND parameter to NetUserEnum that identifies how much information to return. The THIRD parameter is a set of filters that restricts the list of users to return. -- Tim Roberts, [EMAIL PROTECTED] Providenza

Re: [python-win32] Python-win32 Digest, Vol 36, Issue 11

2006-03-09 Thread Tim Roberts
. Of course, you'll have to be an administrator to read that key. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Python-win32 Digest, Vol 36, Issue 11

2006-03-10 Thread Tim Roberts
c:\apps\data. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] application data

2006-03-13 Thread Tim Roberts
, subdirs, (200,200)) Whadayathink? No, that's no better. In many corporate environments, your personal profile lives on a net share, while the All Users profile is always on the local hard disk. The only reliable way is to whack through the registry. -- Tim Roberts, [EMAIL PROTECTED] Providenza

Re: [python-win32] driving MS Access from python

2006-03-13 Thread Tim Roberts
, too). Plus, by creating an ADOX.Catalog object, you can stroll through the metadata as well. You can fetch the list of tables, and the fields within the tables, and so on. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ Python

Re: [python-win32] driving MS Access from python

2006-03-13 Thread Tim Roberts
nd object and connect it to the Connection: cmd = win32com.client.Dispatch("ADODB.Command") cmd.ActiveConnection = conn cmd.CommandText = "SELECT COUNT(*) FROM committees;" rs = cmd.Execute[0] Now rs is a recordset. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide,

Re: [python-win32] driving MS Access from python

2006-03-13 Thread Tim Roberts
()[0] while not rs.EOF: yield rs rs.MoveNext() for row in Recordset( cmd, SELECT FieldName1 FROM MyTable ): print rs.Fields(FieldName1) -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ Python

Re: [python-win32] driving MS Access from python

2006-03-13 Thread Tim Roberts
, then just do the Execute() and you're done. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] export registry keys

2006-03-14 Thread Tim Roberts
On Tue, 14 Mar 2006 10:58:39 +0100, le dahut [EMAIL PROTECTED] wrote: Tim Roberts a ?crit : If you're going to do it from Python, then you don't have to worry about using the standard regedit format. There are a couple of registry class wrappers for Python that turn a registry key

Re: [python-win32] VB Com object problem

2006-03-15 Thread Tim Roberts
with Python, but never with an App requirement. No. It was a stupid thing to do. If they wanted the executable name, they should have had you pass it in as a string parameter. As it is, you are stuck. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc

Re: [python-win32] Question about printing through IE

2006-03-24 Thread Tim Roberts
to wxPython, which has a wxHtmlEasyPrinting module built in. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Acrobat Reader

2006-04-05 Thread Tim Roberts
within Acrobat, where it has never done so before. The problem has not been isolated yet. The only reliable and portable way to do what you ask is to fire up the reader from a command line. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc

Re: [python-win32] Acrobat Reader

2006-04-06 Thread Tim Roberts
? The only reliable and portable way to do what you ask is to fire up the reader from a command line. Yes but then you can not control it at all. There is a command-line parameter asking it to print the file immediately. For many purposes, that is enough. -- Tim Roberts, [EMAIL PROTECTED

Re: [python-win32] BSTR

2006-04-14 Thread Tim Roberts
') It's possible that their file name validation is a bit too strict. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Need help with AutoSummarize feature in Word

2006-04-21 Thread Tim Roberts
) print value Since you're running 4 different summaries from the same original, why not do the word.open outside of the loop? You would have to change the Word class to close the autosummary document in the autoSummarize call, instead of in close, but that's easy. -- Tim Roberts, [EMAIL

Re: [python-win32] Need help with AutoSummarize feature in Word

2006-04-24 Thread Tim Roberts
On Sat, 22 Apr 2006 09:20:07 -0400, Daniel Greenfeld [EMAIL PROTECTED] wrote: Date: Fri, 21 Apr 2006 10:00:33 -0700 From: Tim Roberts [EMAIL PROTECTED] First off, thanks very much Tim for the help. Your advice made a big difference! I'm glad to hear it, and I appreciate the feedback

Re: [python-win32] Getting the text of the first slide of a PowerPoint file

2006-04-28 Thread Tim Roberts
to Tim, my script to handle all the word documents is running today in 26 batches. This list has been very helpful. I'm glad to hear this. IMHO, this is exactly the kind of task that Python is perfect for. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc

Re: [python-win32] Why I get wrong filetime values with win32 api(FindFilesW) ?

2006-05-11 Thread Tim Roberts
the answer. This is not a bug. os.path.getmtime returns your local time, and the FindFiles API returns GMT. If you need to compare the two, you will have to subtract your timezone offset: print pw32,time.asctime(time.localtime(int(w32modtime)-time.altzone)) -- Tim Roberts, [EMAIL PROTECTED

Re: [python-win32] deviceiocontrol string format

2006-05-26 Thread Tim Roberts
. If ulPhysicalAddress is an offset, you should call it ulOffset. The term physical address has a very specific meaning in Windows, and 32-bit is not enough to hold a real physical address. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ Python

Re: [python-win32] pywintypes24.dll necessary??

2006-06-23 Thread Tim Roberts
the mouse really is much more efficient. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] pywintypes24.dll necessary??

2006-06-23 Thread Tim Roberts
? If not, then pywintypes24.dll should be in \Windows\System32, and the default pywin32 installation should have put it there. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ Python-win32 mailing list Python-win32@python.org http://mail.python.org

[python-win32] python COM-Server and VBScript

2006-06-23 Thread Tim Roberts
: WScript.Echo testSrvObj.SetValue( what, value ) WScript.Echo testSrvObj.SetValue( ABC', value ) --or-- retvalue = testSrvObj.SetValue( what, value ) retvalue = testSrvObj.SetValue( ABC', value ) -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc

Re: [python-win32] python COM-Server and VBScript

2006-06-27 Thread Tim Roberts
the return value in the first non-constant parameter. I've worked with COM for a long time, and I don't remember seeing that behavior written down anywhere. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ Python-win32 mailing list

Re: [python-win32] python COM-Server and VBScript

2006-06-27 Thread Tim Roberts
, value retvalue = testSrvObj.GetValue(ABC) WScript.Echo What, what WScript.Echo Value, value WScript.Echo Return, retvalue -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ Python-win32 mailing list Python-win32@python.org

Re: [python-win32] How to return dict from Python COM

2006-07-24 Thread Tim Roberts
a Scripting.Dictionary object and return it to VB, but I'm not convinced it is a better solution. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman

Re: [python-win32] Cleanly Close System Tray Process

2006-08-02 Thread Tim Roberts
]: win32gui.PostMessage( hwnd, win32con, WM_CLOSE, 0, 0 ) ... -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] sleep() for less than .001s?

2006-08-04 Thread Tim Roberts
for deterministic processing. Windows most definitely is not. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] sleep() for less than .001s?

2006-08-04 Thread Tim Roberts
timeBeginPeriod (I said timeBeginTime before; that was wrong), but it will cost overall system performance, because you're getting interrupts 16x as often. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ Python-win32 mailing list Python-win32

Re: [python-win32] win32ui.CreateFileDialog error

2006-08-09 Thread Tim Roberts
, the API returns an error, and the wrapper returns that error instead of reallocating and retrying. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman

Re: [python-win32] win32ui.CreateFileDialog error

2006-08-10 Thread Tim Roberts
Tim Roberts wrote: Tim Riley wrote: Can anyone explain to me why the following code will return a list if I select 12 files but will return None if I select 13? It's an ugly but well-known limitation: the buffer passed to CreateFileDialog is big, but not big enough. When you select

Re: [python-win32] ADO memory leak?

2006-08-24 Thread Tim Roberts
suggestion is to use a tool like PerfMon to monitor your memory use in a more detailed way; Task Manager sometimes takes shortcuts such that the memory use isn't really what it says it is. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc

Re: [python-win32] win32net

2006-09-07 Thread Tim Roberts
. That request asks for all of the users in group GROUP. The group name is GROUP, because that's what you specified. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ Python-win32 mailing list Python-win32@python.org http

Re: [python-win32] win32net

2006-09-08 Thread Tim Roberts
this? According to the MSDN documentation, NetGroupGetUsers is used to list the members of a global group, and a global group can only contain domain users. It cannot contain other groups. Local groups can contain other groups, but you use NetLocalGroupGetMembers to examine those. -- Tim Roberts, [EMAIL

Re: [python-win32] Get CPU usage of single process in Windows

2006-09-08 Thread Tim Roberts
-Win32 does include a wrapper library, win32pdh, but I admit I've never used it. Still, that should give you enough Google search terms to find the information... -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ Python-win32 mailing

Re: [python-win32] Module not found weirdness

2006-09-19 Thread Tim Roberts
to a cmd shell and do assoc .py and then ftype python.file (assuming that's what assoc said), does it point to the path you expect? -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ Python-win32 mailing list Python-win32@python.org http

Re: [python-win32] Module not found weirdness

2006-09-19 Thread Tim Roberts
debugger and single-step through the function call, but then I'm not like most people... I did try the cookbook script here, and it works fine. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ Python-win32 mailing list Python-win32

Re: [python-win32] Module not found weirdness

2006-09-21 Thread Tim Roberts
). Create a log and send it to me, and I'll see if there are any Windows hooks installed that might be interfering. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ Python-win32 mailing list Python-win32@python.org http

Re: [python-win32] Browse button in windows

2006-09-21 Thread Tim Roberts
? What toolkit are you using to build your UI? If you are drawing your windows with wx, there is a canned dialog already. If you're using win32ui, you can use win32ui.CreateFileDialog. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc

Re: [python-win32] Input-only vs. In/Out Function Parameters

2006-10-02 Thread Tim Roberts
in VBA. If you do this same thing from a VB app and look at the generated IL code, it is the IL that is assigning the outputs to the wrong place. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ Python-win32 mailing list Python

Re: [python-win32] Input-only vs. In/Out Function Parameters

2006-10-03 Thread Tim Roberts
binding. You can get cl.exe by downloading the Visual Studio 2005 Express Edition from Microsoft -- it's free. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ Python-win32 mailing list Python-win32@python.org http://mail.python.org

Re: [python-win32] Excel win32com newbie question

2006-10-05 Thread Tim Roberts
= win32com.client.gencache.EnsureDispatch(Excel.Application) from win32com.client import constants constants.xlHAlignRight -4152 -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ Python-win32 mailing list Python-win32@python.org http

Re: [python-win32] Excel win32com newbie question

2006-10-06 Thread Tim Roberts
, there is no syntax error there that I can see. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Python win32com and iTunes

2006-10-11 Thread Tim Roberts
, 'Exception occurred.', (0, None, None, None, 0, -2147418113), None) Hmmm, -2147418113 is 0x8000, which is the rather catchall error E_UNEXPECTED. It generally means you did things out of order. Is it possible that it needs more initialization before launching the first track? -- Tim Roberts

Re: [python-win32] Python win32com and iTunes

2006-10-11 Thread Tim Roberts
Test Drive wrote: Which version of iTunes you are using? I don't using iTunes. I'm too old for their target demographic ;). I'm just offering advice based on general experience with COM objects. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc

  1   2   3   4   5   6   7   8   9   10   >