Re: [python-win32] Is Mark Hammond going to produce a new Python Programming on Win32 book?

2008-02-27 Thread Tim Roberts
Michael Foord wrote: Tim Roberts wrote: Well, there's an interesting issue here. Much of the new stuff you have mentioned has nothing to do with the Python that we know and love. .NET and winforms (which is part of .NET) requires managed code, and that means IronPython

Re: [python-win32] how to set outlook/thunderbird as default e-mail client .

2008-02-19 Thread Tim Roberts
Antony Joseph wrote: How to set outlook or Thunderbird as a default e-mail client in windows. Any help.pls This question is not related to Python in any way. Google is your friend. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc

Re: [python-win32] error

2008-02-19 Thread Tim Roberts
this: sys.stdin = open('nul','rb') If that doesn't work, try asking on the wxPython mailing list. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo

Re: [python-win32] How do you find the Windows process ID of a COM server?

2008-02-18 Thread Tim Roberts
Marcus Low wrote: This wont work on Vista. FindWindow is no longer an acceptable api to use. That is simply not true. If you can point to the web site where you read this, I'll try to figure out how you misinterpreted it. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc

Re: [python-win32] Some problems with instantiating a type library

2008-02-18 Thread Tim Roberts
: try: RS = Rhino.GetScriptObject() gotit = True except pywintype.com_error: time.sleep(1) print Retrying -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ python-win32 mailing

Re: [python-win32] columnwise writing to excel

2008-02-18 Thread Tim Roberts
in [2,3,4]] but it does not seem terribly efficient. Is there some trick which can allow me to write column wise with good performance? The difference in efficiency is irrelevant. Have you measured it, or are you over-optimizing too early? -- Tim Roberts, [EMAIL PROTECTED] Providenza

Re: [python-win32] message queueing between processes

2008-02-18 Thread Tim Roberts
messages. Or, you could take a cross-platform approach and use sockets. You might try to Google for python ipc; I found a couple of good hits in the first couple of pages. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ python-win32

Re: [python-win32] Some problems with instantiating a type library

2008-02-15 Thread Tim Roberts
or whatever you 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] Some problems with instantiating a type library

2008-02-15 Thread Tim Roberts
with makepy and then tried this code. But ther is certainly a smarter way to do it Well, this is not about whether it's smart or not. What I'm saying is that the line that says RS = RS.RhinoScript is an error and should not be there. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc

Re: [python-win32] Can win32com handle this one?

2008-02-04 Thread Tim Roberts
. Python doesn't know it's an ILib2Provider, because that's just a name used in the C++ source code, but the methods and properties should all be there. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ python-win32 mailing list

Re: [python-win32] Reading .py or .pyc from an excel sheet

2008-02-04 Thread Tim Roberts
a stupid question, do you actually have Python and PyWin32 installed on this machine? -- 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] Reading .py or .pyc from an excel sheet

2008-02-04 Thread Tim Roberts
) It seemed to work OK, although I didn't actually try to use the object.. -- 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] Property '%s.%s' can not be set on read/write attribute

2008-01-29 Thread Tim Roberts
is basically the compiler and light is the linker, but I have to go to the documentation every time I need to use one. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org

Re: [python-win32] Embedding/bundling Python, best practices?

2008-01-28 Thread Tim Roberts
, should Python also be built with the same VS version for compatibility? Yes, this is required. The Python run-time DLL links to the Visual C++ run-time library. My python24.dll, for example, links to msvcr71.dll, which is the run-time from VS 2003. -- Tim Roberts, [EMAIL PROTECTED

Re: [python-win32] Python ADO and Date Time Field in Access

2008-01-28 Thread Tim Roberts
only, use: v = oRS.Fields(dt).Value print v.Format( %H:%M:%S %p) See: http://aspn.activestate.com/ASPN/docs/ActivePython/2.3/pywin32/PyTime__Format_meth.html -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ python-win32

Re: [python-win32] Embedding/bundling Python, best practices?

2008-01-25 Thread Tim Roberts
!) It does very little other than load python25.dll and call it. -- 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 access the Outlook Express

2008-01-24 Thread Tim Roberts
, by use MAPI interface (I believe...) Correct, and not even full MAPI -- just the Simple MAPI interface. Here's an example in C++: http://msdn2.microsoft.com/en-us/library/ms527946.aspx -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc

Re: [python-win32] Changing a drive letter

2008-01-24 Thread Tim Roberts
this, I think it's fine. -- 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] Getting Network Information/Statistics

2008-01-24 Thread Tim Roberts
= (1,2,3) xxx (1, 2, 3) a, b, c = (1,2,3) a 1 b 2 c 3 In the code you quoted, tp receives the counter's type, and val gets the value. type is a built-in function in Python, so it's not safe to us it as a variable name. -- Tim Roberts, [EMAIL

Re: [python-win32] Getting Network Information/Statistics

2008-01-23 Thread Tim Roberts
time.sleep(1) -- 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 emails from msoutlook to my local directory

2008-01-23 Thread Tim Roberts
as an embedded image. Images are always sent as named attachments, and HTML tags in the message can tell the mail reader to display a particular image at a particular point, but even that varies from mail program to mail program. Any body help me to solve this problem. What problem? -- Tim Roberts

Re: [python-win32] python layoutdialog

2008-01-23 Thread Tim Roberts
friend Google points to an example usage of layoutDialog here: http://www.kxcad.net/autodesk/maya/Maya_Documentation/CommandsPython/layoutDialog.html -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ python-win32 mailing list

Re: [python-win32] Getting Network Information/Statistics

2008-01-23 Thread Tim Roberts
name in some way in Vista. -- 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] Getting Network Information/Statistics

2008-01-23 Thread Tim Roberts
. wrote: - Original Message - Tim Roberts wrote: Now, you know that Current Bandwidth is not what you want, right? This just shows it is a 100Mbit connection. Yes I am, win32pdhutil.browse() won't report anything for Bytes Received, Sent, or Total so I used Current

Re: [python-win32] Getting Network Information/Statistics

2008-01-22 Thread Tim Roberts
since forever. Windows doesn't track network statistics on a per-process basis. -- 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 accessing OPC clients from thread

2008-01-22 Thread Tim Roberts
are adding two items with exactly the same name. Does it work if you make the second one File1.item2? -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman

Re: [python-win32] Creating a process and getting a handle

2008-01-22 Thread Tim Roberts
as a process handle; the process ID is the third thing in the tuple CreateProcess returns. -- 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] transparency on window

2008-01-21 Thread Tim Roberts
this in some new release. In addition, Henry is right; you can only call SetLayeredWindowAttributes on a window with the WS_EX_LAYERED style. You can set that style on a window by using SetWindowLong, although there's no telling how the application that owns the window will respond. -- Tim

Re: [python-win32] Global Window Messages

2008-01-21 Thread Tim Roberts
that the shell application (i.e., Explorer) is about to start or stop. It doesn't call your own function, and it doesn't hook the right events. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32

Re: [python-win32] Global Window Messages

2008-01-21 Thread Tim Roberts
source. Some of their subprojects do have 2.5 installers, so there may be hope that someone will upload one for pyAA. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http

Re: [python-win32] COM registration/unregistration and elevation on Vista

2008-01-18 Thread Tim Roberts
that for registration? I guess that's not really better than your solution. You're right, there are no perfect answers. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman

Re: [python-win32] COM registration/unregistration and elevation on Vista

2008-01-18 Thread Tim Roberts
thing anyway. -- 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] LP_WNDCLASS vs pointer to WNDCLASS

2008-01-16 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] need help for searching of text in a textbox for ms word

2008-01-15 Thread Tim Roberts
advice is right on, but as a little hint, textboxes in a Word document are considered shapes, and are stored in the Document.Shapes collection. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32

Re: [python-win32] Suitability of PyWin32 to manipulate windows

2008-01-15 Thread Tim Roberts
a Notepad window to the rear: import win32con, win32ui p = win32ui.FindWindow( None, x.txt - Notepad ) p.SetWindowPos( win32con.HWND_BOTTOM, (0,0,0,0), win32con.SWP_NOMOVE+win32con.SWP_NOSIZE+win32con.SWP_NOREPOSITION ) -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide

Re: [python-win32] HRGN, RGNDATA, RGNDATAHEADER

2008-01-14 Thread Tim Roberts
, and then add to it with CombineRgn and friends. Also, you should remember that working with region in Windows can be rather inefficient. A drawing operation that is clipped by a region gets sent to the driver multiple times, once for each unique rectangle in the region. -- Tim Roberts, [EMAIL

Re: [python-win32] HRGN, RGNDATA, RGNDATAHEADER

2008-01-14 Thread Tim Roberts
have now, and I don't know if there are GDI+ wrappers for Python or not. GDI+ is C++ classes, so it isn't a simple ctypes wrap. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http

Re: [python-win32] ISensLogon COM Object

2008-01-10 Thread Tim Roberts
, I'd recommend the service. -- 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] AttributeError: 'NoneType' object has no attribute 'PageSetup'

2008-01-10 Thread Tim Roberts
need to use parens: worddoc.Content.MoveEnd() -- 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] replacing CreateProcess command for Vista compatibility?

2008-01-10 Thread Tim Roberts
, but I don't know why it would be trying that. -- 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] ISensLogon COM Object

2008-01-09 Thread Tim Roberts
: http://support.microsoft.com/kb/321381 What are you really trying to accomplish here? This is complicated, and there may be an easier way to do what you want. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ python-win32 mailing list

Re: [python-win32] ISensLogon COM Object

2008-01-08 Thread Tim Roberts
be better to get some examples going in C++ before trying to move this to Python. -- 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] Impersonation and Threads

2008-01-08 Thread Tim Roberts
. (I don't know what the Python thread module does.) On XP SP1 and before, you'd see the behavior you describe. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http

Re: [python-win32] Access Outlook mails remotely using win32com

2008-01-07 Thread Tim Roberts
showing how to call the object model from various languages. Did you do any Google searching at all before asking here? Google is a much more efficient resource. http://www.boddie.org.uk/python/COM.html -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc

Re: [python-win32] %TEMP% directory

2008-01-07 Thread Tim Roberts
would think that MANY things would fail if %TEMP% were not writable. You could fall back to %USERPROFILE%\Local Settings\Temp, I suppose. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32

Re: [python-win32] get embedded images from outlook

2008-01-07 Thread Tim Roberts
the PR_ATTACH_DATA_BIN property for the attachment you want. -- 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 set content-type in Headers

2008-01-07 Thread Tim Roberts
an olFormatRichText that has fallen out of favor. -- 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] infinite loop

2008-01-04 Thread Tim Roberts
separate programs in two separate Python processes, then they are completely unrelated to each other. You are seeing some other side effect. Show us some of the code, and we can point out where you are going wrong. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc

Re: [python-win32] how can get the attachments(exclude) in the email

2008-01-04 Thread Tim Roberts
Antony Joseph wrote: How can i get the attachments in the mail from outlook.? how can i make query for that? pls anybody help me What have you tried? Show us what you have, and we can help you fix it. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc

Re: [python-win32] Suggestions for a unicode build

2008-01-03 Thread Tim Roberts
with Py3k where strings are all Unicode. All of the profile functions have A and W variants. Why are these different from any other API? -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32

Re: [python-win32] How to get mails from Exchange Server

2007-12-27 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] How can I detect when a user switches between windows?

2007-12-27 Thread Tim Roberts
. Window messages are sent directly to the affected windows, which belong to a process. Windows does not have the concept of a global event queue. If you want to see the messages being received by another process, you have to make yourself part of that process by using a hook. -- Tim Roberts, [EMAIL

Re: [python-win32] Operational errorr :

2007-12-21 Thread Tim Roberts
is not valid. Redemption.SafeContactItem is part of a third-party product, not part of standard Outlook. Have you installed the Redemption objects? -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32

Re: [python-win32] Absence of PrintWindow?

2007-12-19 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] python and Windows Resource Files.

2007-12-17 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] python and Windows Resource Files.

2007-12-17 Thread Tim Roberts
(for example) that Python and wxPython are already configured, there's no delta at all. First, make it work. Only THEN should you worry about optimization. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ python-win32 mailing list python

Re: [python-win32] MS Word and Python - how to disable SaveAs event?

2007-12-14 Thread Tim Roberts
any mechanism to disable specific menu items. Why would you want to? Are you thinking of this as a way to protect a document? If so, you are misguided. If you need a way to display documents in a read-only manner, then you need to do the display yourself, without using Word. -- Tim Roberts

Re: [python-win32] python and Windows Resource Files.

2007-12-14 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] python and Windows Resource Files.

2007-12-14 Thread Tim Roberts
Tim Roberts wrote: Johri, Mayank (GTI) wrote: I am writing a python program which uses Windows Resources for GUI (i.e. Dialog boxes), does anyone know a good starting point or tutorials to get set values of common controls such as List view, button, textBox etc for it. How

Re: [python-win32] USB access using win32file.deviceIOcontrol

2007-12-12 Thread Tim Roberts
in byte_list? Are you sure it is 42 bytes? Are you setting all the fields correctly? How are you setting the DataBuffer pointer? Have you set the Length field correctly? I would have guessed it would be easier to use the struct module to build the buffer, rather than array. -- Tim Roberts, [EMAIL

Re: [python-win32] USB access using win32file.deviceIOcontrol

2007-12-12 Thread Tim Roberts
. Consider using boost.python. If you know C++, the Boost libraries include a very good set of template classes that let you build Python object in C++ in a more natural way. Like option 2, this would let you put the sticky parts in C++ and the fun parts in Python. -- Tim Roberts, [EMAIL PROTECTED

Re: [python-win32] OT - move gnome launch bar

2007-12-12 Thread Tim Roberts
where to point next. -- 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] USB access using win32file.deviceIOcontrol

2007-12-11 Thread Tim Roberts
of action for you is to write a lower filter driver to sit between usbstor.sys and USBD, and have it expose a control device object. Such a thing CAN be opened and manipulated using the win32file APIs. Do you have any driver experience at your shop? -- Tim Roberts, [EMAIL PROTECTED] Providenza

Re: [python-win32] Mailslot

2007-12-10 Thread Tim Roberts
/sipc.py Once you have the handle, you don't really need ReadFile and WriteFile. You can use the Python I/O routines. Not sure it's any better. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32

Re: [python-win32] (in) Active State PyWin32 list

2007-12-10 Thread Tim Roberts
it gmane.comp.python.windows. http://dir.gmane.org/gmane.comp.python.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] Using DDE to launch a file in an existing window

2007-12-06 Thread Tim Roberts
. It's interesting to see someone trying to find a modern use for it. Can you dump the whole HKCR\my_file_type registry key and show it to us? Mail it to me privately, if you want. I'll see if anything looks unusual. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc

Re: [python-win32] Problems starting services - any advice?

2007-12-03 Thread Tim Roberts
your services need to interact with the user? -- 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 accessing OPC clients from thread

2007-12-03 Thread Tim Roberts
pointed out). If that is the case, where might I go to learn about how to set that up? I'd Google for pythoncom com event handling. It looks like there are some good hits there. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ python

Re: [python-win32] Problems starting services - any advice?

2007-12-03 Thread Tim Roberts
surprised that such a limitation would have survived clear into Server 2003, but I also have to say that your symptoms match the problem description pretty well. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ python-win32 mailing

Re: [python-win32] setting my windows service as automatic instead of manual

2007-11-29 Thread Tim Roberts
that I can go through the control panel to do this manually, but I'd like the service to be shipped with the automatic start up type instead of manual. Does anyone know how I can do that? Pass --startup=auto on the command line. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc

Re: [python-win32] Python and Excel via Cron

2007-11-21 Thread Tim Roberts
you are doing this, and perhaps we can suggest how to accomplish it. -- 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 and Excel via Cron

2007-11-21 Thread Tim Roberts
the server's console? A disconnected Terminal Server session doesn't have a desktop. GUI applications can't run without a desktop. Also Terminal Server has a lot of complicated security options; is your username allowed to run applications at the console? -- Tim Roberts, [EMAIL PROTECTED] Providenza

Re: [python-win32] Detect when the user launches or closes a program?

2007-11-19 Thread Tim Roberts
lives in a very restricted environment, because you are actually executing inside another process. You can't even reliably allocate memory. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32

Re: [python-win32] cgi fieldstorage

2007-11-16 Thread Tim Roberts
often. You can use whichever one makes sense to you. To get a value from a drop down box, what function should be used. It's exactly the same. HTTP GET and POST data doesn't know what kind of field it was. It's just a list of name=value pairs -- Tim Roberts, [EMAIL PROTECTED

Re: [python-win32] Finding the COM server

2007-10-12 Thread Tim Roberts
. InProcServer32 will be set if it is an in-process DLL. -- 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] Finding the COM server

2007-10-12 Thread Tim Roberts
find the executable name. -- 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] Finding the COM server

2007-10-12 Thread Tim Roberts
Thomas Heller wrote: Tim Roberts schrieb: Out-of-process servers call CoRegisterClassObject to register their classes with the COM runtime. That doesn't change the registry. I can't find a COM utility to return the process ID for a given CLSID, and without that, I don't know how you'd

Re: [python-win32] lock workstation

2007-10-11 Thread Tim Roberts
in Delphi here: http://www.delphipages.com/threads/thread.cfm?ID=145214G=145213 and one in Visual Basic here: http://gethelp.devx.com/techtips/nt_pro/10_minute_solutions/10minNT0701-4.asp -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc

Re: [python-win32] lock workstation

2007-10-11 Thread Tim Roberts
Tim Golden wrote: Tim Roberts wrote: The usual way to determine whether the desktop has been locked is to call OpenDesktop on the desktop called default, and then try to use SwitchDesktop to switch to it. If the SwitchDesktop fails, then the workstation is locked. There's an example

Re: [python-win32] message queue

2007-10-04 Thread Tim Roberts
that begs the question of what messages you are sending? -- 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] message queue

2007-10-04 Thread Tim Roberts
, or when an item is selected. -- 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] message queue

2007-10-04 Thread Tim Roberts
. What are you trying to accomplish? There isn't really very much of interest in a window message queue. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org

Re: [python-win32] Converting VB COM register program to Python

2007-10-03 Thread Tim Roberts
for the Let part. So, you want: objCOMAdminCatalogObject.SetValue(ID, AppID) -- 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] Converting VB COM register program to Python

2007-10-03 Thread Tim Roberts
) -- Tim Roberts, [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] Providenza Boekelheide, Inc. When I try SetValue I get: Traceback (most recent call last): _File C:\programming\python\dev\src\FullInstallScripts\COMObjectFullInstall.py, line 74, in module_

Re: [python-win32] Porting VB 6.0 to Python

2007-10-02 Thread Tim Roberts
for Oracle. There's even http://www.ioug.org/python.pdf, which gives a couple of quick examples. (My apologies to Samar for sending a blank reply initially; it's too easy to press Ctrl-Enter when I intend to press Enter...) -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc

Re: [python-win32] Porting VB 6.0 to Python

2007-10-02 Thread Tim Roberts
Vernon Cole wrote: Assuming that your VB application was written using Microsoft Foundation Classes, MFC only applies to C++, not to Visual Basic. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ python-win32 mailing list python

Re: [python-win32] type mismatch using win32com.client.GetObject

2007-09-28 Thread Tim Roberts
, then you probably want: arg7 = x1.FunctionX(arg1, arg2, arg3, arg4, arg5, arg6, arg8, arg9, arg10) I'm not sure if it will handle functions where the output argument is not the final argument. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc

Re: [python-win32] Converting event.time from pyhook

2007-09-27 Thread Tim Roberts
not number of seconds since the epoch. It comes straight from the time member of the Win32 EVENTMSG struct, which is in units of milliseconds since last boot. Your machine last booted about 4 days ago? -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc

Re: [python-win32] VS.NET2005; missing include/lib paths and libraries

2007-09-26 Thread Tim Roberts
expect the pywin32 version to go away; win32file is intended to expose the file APIs from the Win32 SDK, and CreateHardLink certainly qualifies. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32

Re: [python-win32] VS.NET2005; missing include/lib paths and libraries

2007-09-25 Thread Tim Roberts
that it is a benefit for them to do so... -- 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 COM Server, C++ Client - How ???

2007-09-24 Thread Tim Roberts
developing commercial software with a compiler that is 9 years old. -- 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] Expect-like behavior

2007-09-14 Thread Tim Roberts
and write text and graphics to your OWN console window, but to the best of my knowledge there is nothing in there to help you either monitor or control another application. The subprocess module is probably the right path for the original poster. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide

Re: [python-win32] Properly encoded HTML from MSXML XLST processor into python string (via IStream) ?

2007-09-10 Thread Tim Roberts
to be something that supports IStream. Python strings do 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] Windows services in python

2007-08-31 Thread Tim Roberts
at the source for win32serviceutil.py to see how to do that. -- 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] Windows services in python

2007-08-31 Thread Tim Roberts
where it was. -- 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] Canceling OnBeforeClick event in MapPoint 2006

2007-08-28 Thread Tim Roberts
.microsoft.com/en-us/library/aa367090.aspx If this is really an IDL that shipped with MapPoint, then I'd call that a Microsoft bug. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http

Re: [python-win32] get running application handle

2007-08-24 Thread Tim Roberts
Word is running, you should get a pointer to the existing Word application, and should be able to manipulate the existing documents. For other applications, the answer is it depends. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc

Re: [python-win32] Newbee question

2007-08-20 Thread Tim Roberts
+= (stops-22) * 1.00 but I don't really think that's clearer. -- 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] EnumChildWindows

2007-08-20 Thread Tim Roberts
, self.windowEnumerationHandler, l_childlist ) ... def windowEnumerationHandler( self, hwnd, resultList ): -- 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] EnumChildWindows

2007-08-20 Thread Tim Roberts
, not call the function and pass whatever it returns. Do it exactly like this: win32gui.EnumChildWindows( l_hwnd, self.windowEnumerationHandler, l_childlist ) Note that there are *no parentheses* after windowEnumerationHandler. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc

<    5   6   7   8   9   10   11   12   >