Re: [python-win32] pywin32 bugs feedback from learner

2007-08-03 Thread Tim Roberts
Huang Guan wrote: Dear Tim Roberts, Do you mean Task Manager? I don't want you to hide your service from me. It's my computer, and I want to know exactly what's running. {Yes, I am writting a similar module. An general user of windows user group could shut pythonservice.exe in the task

Re: [python-win32] Problem with Rhapsody automation: It is Impossible?

2007-08-02 Thread Tim Roberts
for it to know any differently. If you know the object also implements IRPType, you can cast it: theIrpType = win32com.client.CastTo(theIRPModelElement, 'IRPType') -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ Python-win32

Re: [python-win32] Have IHTMLWindow2 objectneed correspondingIHTMLWindow3 object and flash box

2007-08-01 Thread Tim Roberts
inherently wrong with MFC. The overhead it adds in this situation is relatively benign, compared to the overhead of Python, and the win32ui objects are more convenient to work with. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc

Re: [python-win32] Have IHTMLWindow2 object need correspondingIHTMLWindow3 object and flash box

2007-07-27 Thread Tim Roberts
will still draw it. If you use the hollow brush, as I suggested, then the driver won't even be ASKED to fill the interior. brush = win32ui.GetStockObject( 5 )# HOLLOW_BRUSH -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ Python

Re: [python-win32] Have IHTMLWindow2 object need correspondingIHTMLWindow3 object and flash box

2007-07-27 Thread Tim Roberts
Tim Roberts wrote: ... If you use the hollow brush, as I suggested, then the driver won't even be ASKED to fill the interior. brush = win32ui.GetStockObject( 5 )# HOLLOW_BRUSH D'oh, did I really say win32ui? That's wrong. brush = win32gui.GetStockObject( 5

Re: [python-win32] win32ui and flashing box

2007-07-26 Thread Tim Roberts
. That will invert the colors every time you draw it. Draw it once, you see it; draw it again, it disappears. Also note that dc.Rectangle is quicker than four LineTo calls. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ Python-win32

Re: [python-win32] how to get select behavior for non-socket objects

2007-07-24 Thread Tim Roberts
such a thing in the Windows API. -- 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] win32com.client for linux

2007-07-16 Thread Tim Roberts
that let you query a WMI server using relatively standard HTTP requests. That might work for you. Start here: http://forums.cacti.net/about11752.html -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ Python-win32 mailing list Python

Re: [python-win32] Trying to build debug version of win32 extensions

2007-07-06 Thread Tim Roberts
the Visual C++ compiler required). That includes Visual C++ 2003. I thought Python was switching over to VC++ 2005. Mark will know for sure. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ Python-win32 mailing list Python-win32

Re: [python-win32] Threading Issue

2007-07-03 Thread Tim Roberts
() thread = threading.Thread(target=foo, args=(result,)) thread.start() result -- 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] ADODB.Recordset returning incorrect results

2007-06-21 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] IE browser bar

2007-06-14 Thread Tim Roberts
and in part my lack of understand about what ShowBrowserBar SHOULD DO. The browser bar thing was changed pretty radically between IE6 and IE7, so it may just be that the GUIDs are different, or that the other bars don't exist in the same universe any more. -- Tim Roberts, [EMAIL PROTECTED

Re: [python-win32] Starting a process in unbuffered mode using Python 2.3

2007-06-13 Thread Tim Roberts
process is no python script. Also, in 2.3 you don't have access to the excellent subprocess module introduced in 2.4... Sure you do. It was included as a STANDARD module in 2.4, but it is available for 2.3 and 2.2 from its author: http://effbot.org/downloads/#subprocess -- Tim Roberts

Re: [python-win32] Error when trying to open a Microsoft Project file

2007-05-30 Thread Tim Roberts
the same error. That's the online help. Project is just telling you where you could look for more information about the error message. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ Python-win32 mailing list Python-win32@python.org

Re: [python-win32] plz help

2007-05-17 Thread Tim Roberts
properly registered. -- 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] HookMessage fails

2007-05-15 Thread Tim Roberts
it every time you create a new dialog window? Do you have access to the Platform SDK? It might be worth using spyxx to monitor the message traffic to your dialogs, and see if anything changes from one invocation to the next. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc

Re: [python-win32] HookMessage fails

2007-05-15 Thread Tim Roberts
they are called) for the custom dialogs that are opened from the 'first' explorer window. Interesting that they behave so differently. That begins to suggest they have different parents. What do you specify as the parent when you create the dialog? -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide

Re: [python-win32] HookMessage fails

2007-05-15 Thread Tim Roberts
in determining window stacking and taskbar presence. I wonder what the win32ui code uses for that... -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo

Re: [python-win32] translating VB into Python...

2007-05-11 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] translating VB into Python...

2007-05-10 Thread Tim Roberts
this. Python's COM doesn't. Unfortunately, every object has it's own default property, so you sometimes have to refer to documentation to figure out what it is. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ Python-win32 mailing list

Re: [python-win32] Help needed : FindWindowEx

2007-05-03 Thread Tim Roberts
-and-play event. Once you get that message, you can go enumerate the devices in your device class using the SetupDi APIs to see if you are present. Now, how does all that map to Python? With difficulty, I imagine. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc

Re: [python-win32] updating a registered com server

2007-04-26 Thread Tim Roberts
inconvenienced. Once your server stabilizes, you will be happy that the instance keeps running, so you don't have to pay the penalty of invoking the interpreter each time. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ Python-win32 mailing list

Re: [python-win32] updating a registered com server

2007-04-26 Thread Tim Roberts
. It can't change any objects that have already been created, but it may be able to help you with this specific problem. You would have to write your main server in such a way that you could signal it to reload modules, but that's a solvable problem. -- Tim Roberts, [EMAIL PROTECTED] Providenza

Re: [python-win32] updating a registered com server

2007-04-26 Thread Tim Roberts
Francesco Guerrieri wrote: On 4/26/07, *Tim Roberts* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Now, THIS problem may be solvable. Remember that Python supports the reload function that forces it to reload a new version of an imported module. It can't change any

Re: [python-win32] excel xla runautomacros

2007-04-25 Thread Tim Roberts
you'd need to query. -- 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] excel xla runautomacros

2007-04-25 Thread Tim Roberts
(1,4) returns [1,2,3]. You should either use range(xlApp.Application.AddIns.Count) and refer to AddIns(ia+1), or you should use range(1, xlApp.Application.AddIns.Count+1) -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ Python-win32

Re: [python-win32] Registering an excel addin

2007-04-13 Thread Tim Roberts
:\\Program Files\\TestApp\\Program\\EXLXL32.XLL 2. Use the r syntax: rC:\Program Files\TestApp\Program\EXLXL32.XLL 3. Use forward slashes: C:/Program Files/TestApp/Program/EXLXL32.XLL Any of them will work. Choose the one that makes the most sense to you. -- Tim Roberts, [EMAIL PROTECTED] Providenza

Re: [python-win32] How to figure out the COM object name?

2007-04-03 Thread Tim Roberts
binding. -- 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] C# Vs Python

2007-04-02 Thread Tim Roberts
, you don't NEED the vastness of the CLR. It might be interesting for you to investigate IronPython. This is an implementation of Python as a full .NET language, with access to the entire Common Language Runtime. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc

Re: [python-win32] COM works from IDLE but not when file executed from Windows Explorer

2007-03-14 Thread Tim Roberts
that contains python.exe (since that's what it is really executing) instead of the directory with your script. You might try providing the full path to the file, instead of just a relative path. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc

Re: [python-win32] Works in VB, not in Python?

2007-03-09 Thread Tim Roberts
will reply. -- 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] Adding a really odd feature to Access as an odbc driver

2007-03-06 Thread Tim Roberts
does it use to talk to the database? -- 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] PID of a process created by win32com.client.Dispatch()

2007-03-06 Thread Tim Roberts
model for BusinessObjects? If you are lucky, perhaps their object model includes a get process ID property. If not, I'm not convinced there is a way to map a COM object to a process ID, and some Google searching did not come up with an answer. -- Tim Roberts, [EMAIL PROTECTED] Providenza

Re: [python-win32] better way to get current process's name

2007-02-22 Thread Tim Roberts
on in Word? -- 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] py2exe all of it

2007-02-13 Thread Tim Roberts
, why can't you run the Python installer executable? -- 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] using a COM interface with [in, out]

2007-01-24 Thread Tim Roberts
Rex Corrovan wrote: Nevermind, I am an idiot, figured out my problem. Sorry to bother. What was the problem? You can help the next guy trying to do this. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ Python-win32 mailing list

Re: [python-win32] windows text rendering question

2007-01-23 Thread Tim Roberts
the spyxx.exe utility to poke through the window structure? -- 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] GetVolumeInformation throwing exception

2007-01-10 Thread Tim Roberts
that contains the root directory of the volume to be described. If this parameter is NULL, the root of the current directory is used. A trailing backslash is required. For example, you specify \\MyServer\MyShare as \\MyServer\MyShare\, or the C drive as C:\. -- Tim Roberts, [EMAIL

Re: [python-win32] GetVolumeInformation throwing exception

2007-01-10 Thread Tim Roberts
me. You're asking about undocumented behavior. The fact that it works at all is merely an accident, and might change in the next service pack. The documentation says a trailing backslash is *required*. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc

Re: [python-win32] Getting Started

2006-12-27 Thread Tim Roberts
, and this read should be wrapped in a try/except block. Python 2.1 is very, very old. You would be much better served by upgrading to 2.4 -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ Python-win32 mailing list Python-win32

Re: [python-win32] Python as scripting glue, WAS Python for sysadmin

2006-12-13 Thread Tim Roberts
sucks means that we NEED tools more than the Linux community. Many of the jobs that I tackle with Python would be more appropriate with awk or bash or sed on Linux. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ Python-win32 mailing

Re: [python-win32] USB Power Off from Python

2006-12-13 Thread Tim Roberts
that. You can't. There is no mechanism in the Windows USB driver stack to perform this task. Not even a USB kernel driver can do this. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ Python-win32 mailing list Python-win32

Re: [python-win32] Question about os.system

2006-12-07 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] EasyDialogs - typeList

2006-12-06 Thread Tim Roberts
'), ) ) Notice the extra comma inside the outer parens. That's the 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] _winreg.LoadKey

2006-11-30 Thread Tim Roberts
. That last item is to be expected. When you load a key like this, your file becomes part of the live registry. The registry service will map the file into memory and keep it open until the key is unloaded. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc

Re: [python-win32] RE working in interactive but not in regular code

2006-11-17 Thread Tim Roberts
you see. We can't read minds, yet. There's no need to quote the =. It isn't special. -- 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] Win32_GroupUser

2006-11-13 Thread Tim Roberts
actually get? What he posted was: conn.Win32_GroupUser (GroupComponent = Win32_Group.SID=sid_number) Suggesting, perhaps, that he wanted only the users within a group with a given SID. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc

Re: [python-win32] FW: Python script as a windows service

2006-11-02 Thread Tim Roberts
Python path, import time will grab your script instead of the standard one. -- 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] Suggested change to document.py

2006-11-02 Thread Tim Roberts
, but virtually no one uses hard links in Windows. The advantage of the os.rename method is performance, but since Python scripts are always too small to worry about, I'd be in favor of this change, assuming we used shutil.copy2 to retain the dates and times. -- Tim Roberts, [EMAIL PROTECTED

Re: [python-win32] Programmatically capturing the text in a cmd console, for a program that has completed execution

2006-10-30 Thread Tim Roberts
want to do this programmatically, as opposed to using a mouse to mark and copy. Nope. All of that is internal to cmd.exe and the CSRSS service that runs console processes. If this is an issue for you, you might consider Take Command or TCI from the makers of 4NT, www.jpsoft.com. -- Tim Roberts

Re: [python-win32] Programmatically capturing the text in a cmd console,

2006-10-30 Thread Tim Roberts
. The OP wants to pull the console buffer from ANOTHER console window. I don't think there is any way to do that, although I'm willing to be proven wrong. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ Python-win32 mailing list

Re: [python-win32] Waiting for Wireless

2006-10-25 Thread Tim Roberts
just fall back to C++ for this... Good information. Thanks! -- 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] problem in looping

2006-10-20 Thread Tim Roberts
/county_cycle.txt): x = countyid.rstrip() filename = os.path.join( 'c:/mydata', files.get( x, 'county3.txt' ) ) for county in open( filename ): county = county.rstrip() print county gp.copy( %smydata1 % county, %smydata2 % county ) -- Tim

Re: [python-win32] killProcName kinda slow

2006-10-18 Thread Tim Roberts
I should be calling? How many processes do you have? Is this on XP? It takes about 6 seconds for me on my Athlon64X2 3800+, with 53 processes running. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ Python-win32 mailing list

Re: [python-win32] printer identification on Windows network

2006-10-17 Thread Tim Roberts
shares, directly networked printers, lpr printers, printer pools, pseudoprinters for faxes and PDF creators, etc. Your application should not need or want to know about those details. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc

Re: [python-win32] VBA MACRO and Python

2006-10-13 Thread Tim Roberts
('weightedtables!ChartsToPresentation()[big output.XLS]sheet1') -- 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

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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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

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

<    6   7   8   9   10   11   12   >