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] 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] 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-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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] Is Mark Hammond going to produce a new Python Programming on Win32 book?

2008-02-27 Thread Tim Roberts
for one person to be competent in both. Indeed, for things that are not .NET, Mark's book is still pretty much current. Perhaps we'll get a book on IronPython to make it a little more approachable for us CPython users. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc

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] Iron Python and Visual Basic 2005 (or 2008) Express

2008-03-04 Thread Tim Roberts
looked back. Delphi doesn't come with Python in the box, but it's very easy to add packages, and there are lots of places to download them. Essentially one DLL gives you a Python engine within your Delphi application. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc

Re: [python-win32] Iron Python and Visual Basic 2005 (or 2008) Express

2008-03-05 Thread Tim Roberts
Dick Moores wrote: At 03:57 PM 3/4/2008, Tim Roberts wrote: Delphi is the grown-up version of Borland's Object Pascal. Think of it as Visual Studio for Pascal. It was a very cool product, with a great IDE and a wonderful class library for writing GUI apps. I was a steadfast Delphi zealot

Re: [python-win32] Python Interface to PVCS.

2008-03-05 Thread Tim Roberts
Graessle, Glenn (FC COE) wrote: Anyone know where I can find a Python interface to Merant's CM tool called PVCS? I found it was easier just to call their command line tools with the subprocess module. There's supposed to be an API, but their product is baroquely complicated. -- Tim

Re: [python-win32] Python Interface to PVCS.

2008-03-05 Thread Tim Roberts
that complicated, and they just kind of grew out of my own needs. -- 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 Vista slow down Python xmlrpc

2008-03-06 Thread Tim Roberts
believe it when I see 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] shelve data corruption

2008-03-06 Thread Tim Roberts
create your own format. I often use the Windows .INI style, because it is simple to create and simple to parse: [GlobalSettings] DebugLevel = 6 DebugPrefix = MyApplication [UserSettings] Color = 0xffddee etc. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc

Re: [python-win32] Monitor directories/files

2008-03-07 Thread Tim Roberts
://tgolden.sc.sabren.com/python/win32_how_do_i/watch_directory_for_changes.html -- 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] win32file.SetupComm Error Using PySerial in new Python 2.5.2 installation on 32 bit XP

2008-03-10 Thread Tim Roberts
are so configured these days), or if you had a serial mouse in that port (which almost no one has any more), or if you were talking to a USB-to-serial converter, this kind of thing can happen. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc

Re: [python-win32] embedding IPython in a windows dll

2008-03-10 Thread Tim Roberts
( __stdout__, xout ); PySys_SetObject( stdin, xin ); PySys_SetObject( __stdin__, xin ); -- 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] win32gui.EnumWindows, documentation?

2008-03-11 Thread Tim Roberts
, you can construct and maintain it yourself. If you just want the list of handles, you can do something like this: childlist = [] win32ui.EnumChildWindows( hwnd, lamba hwnd,oldlist: oldlist.append( hwnd ), childlist ) -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc

Re: [python-win32] win32gui.EnumWindows, documentation?

2008-03-12 Thread Tim Roberts
Julius wrote: On Tue, 2008-03-11 at 16:13 -0700, Tim Roberts wrote: Julius wrote: My fault(already got that one running), i meant the win32gui.EnumChildWindows(currentHwnd, windowEnumerationHandler, childWindows) function. from what i understand the purpose of this function

Re: [python-win32] Running SQL queries on excel sheets

2008-03-14 Thread Tim Roberts
! I read an article in the trade press about two years ago that said Excel was the number one database application in the entire world. It's simple, it's ubiquitous, and it's visual. Until you need reporting, it's not a bad way to go. -- Tim Roberts, [EMAIL PROTECTED] Providenza

Re: [python-win32] windows file name property

2008-03-14 Thread Tim Roberts
. The 1 means this is a user, not a group (win32security.SidTypeUser). -- 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 create a com_record?

2008-03-14 Thread Tim Roberts
? GetInterface is usually only called internally by QueryInterface, and there are usually other ways to get one interface from another in Python. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org

Re: [python-win32] python 2.5

2008-03-17 Thread Tim Roberts
), and the extension must link with a single version of that 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] Confusion with 'SetForegroundWindow()

2008-03-17 Thread Tim Roberts
a WM_ACTIVATE message, and the application can veto the suggestion. Also, an application can call LockSetForegroundWindow to prevent another application from stealing the focus away. You may simply need to trap this error. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc

Re: [python-win32] Confusion with 'SetForegroundWindow()

2008-03-18 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] Regarding Threads and locals()

2008-03-20 Thread Tim Roberts
not the perfect solution, but it gives you the general direction. -- 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] A shameless COM question

2008-04-01 Thread Tim Roberts
the COM component, and start searching for Pythonic solutions. The Twisted module, for example, makes something like this almost trivial. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org

Re: [python-win32] A shameless COM question

2008-04-02 Thread Tim Roberts
, scalability problems, network availability issues, and spam and virus sensitivity. It would be much better for you to grab one of the excellent and well-proven open source SMTP servers and make whatever modifications you need to make for your environment. -- Tim Roberts, [EMAIL PROTECTED

Re: [python-win32] Find Target

2008-04-03 Thread Tim Roberts
and opens the directory containing that shortcut. The shell library has an API for fetching the target path from a shortcut file. You could just pull the path from the shortcut, and startup a new Explorer in that directory. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc

Re: [python-win32] Find Target

2008-04-03 Thread Tim Roberts
:\windows\notepad.exe For future reference, here's a knowledge base article that describes the command-line parameters to explorer: http://support.microsoft.com/kb/130510 -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ python

Re: [python-win32] A problem on testing COM object with VBA

2008-04-04 Thread Tim Roberts
) if __name__=='__main__': print Registering COM server... import win32com.server.register win32com.server.register.UseCommandLine(PythonUtilities) -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ python-win32 mailing list python

Re: [python-win32] traceback.print_exception(type, val, tb) not working under 2.5.2

2008-04-07 Thread Tim Roberts
is not being called when the exception happens, because the exception hook is set to None. The right way to do this is: sys.excepthook = MyExHook x = 1/0 I just tried that, and it worked fine. If that's not working for you, tell us what you do get. -- Tim Roberts, [EMAIL PROTECTED] Providenza

Re: [python-win32] Child Windows

2008-04-08 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] Child Windows

2008-04-08 Thread Tim Roberts
have controls in place to prevent you from doing this sort of thing. -- 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 clear a dead icon from system tray?

2008-04-10 Thread Tim Roberts
here. What is preventing you from shutting down in an orderly way? -- 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 clear a dead icon from system tray?

2008-04-10 Thread Tim Roberts
(keyboard_file.kbd) Interesting. You're saying that the normal del kb is not enough to clean this up? -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo

Re: [python-win32] IsHungAppWindow or equivalent

2008-04-14 Thread Tim Roberts
mean by to no avail? Where did you get the window handle? What happened when you tried it? -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo

Re: [python-win32] scheduler function weekdaytask

2008-04-18 Thread Tim Roberts
to pass. So, if you wanted to create a task to execute the following function: birthday( hwnd, name=kNish, year=2008 ) you would do something like this: : wt = scheduler.WeekdayTask( A birthday, xxx, xxx, birthday, (hwnd,), {name: kNish, year: 2008 } ) -- Tim Roberts, [EMAIL PROTECTED

Re: [python-win32] working Directory get changed-mapi.MAPIInitialize(None)

2008-04-21 Thread Tim Roberts
(where) -- 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 selected file in Windows Explorer

2008-04-22 Thread Tim Roberts
at a time. From there, you'll need to query the appropriate subinterfaces, and hope that they are all dispatch interfaces so they can be used from Python. I might be tempted to take the C++ code and make a simple extension DLL. Perhaps Mark or Tim Golden has some better hints. -- Tim Roberts

Re: [python-win32] [wxpython-users] Having problems with wxPython - HELP!!!

2008-04-25 Thread Tim Roberts
accordingly. For example, try adding the following after you create the wx.Frame: ws = self.GetSize() cs = self.GetClientSize() # Bump the window size by the delta between the two. ws.IncBy( *(ws-cs) ) self.SetSize( ws ) -- Tim Roberts, [EMAIL PROTECTED

Re: [python-win32] [wxpython-users] Having problems with wxPython - HELP!!!

2008-04-25 Thread Tim Roberts
Tim Roberts wrote: Marlin Rowley wrote: I want to start from the beginning and work my way to what I have now. Maybe then, I'll see some things that I didn't. :) Let's start with the Frame and Window creation. Right now, I pass a resolution into my script (rfxRenderView.py 320 240

Re: [python-win32] Create x64 exe using py2exe on 32bit machine

2008-04-28 Thread Tim Roberts
siddhartha veedaluru wrote: how can i create an x64 exe of a python script on a 32 bit machine. Why? All of the x64 platforms can run 32-bit executables. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ python-win32 mailing

Re: [python-win32] motorola ad

2008-04-29 Thread Tim Roberts
is that this whole post is nonsense. Please tell us what you are trying to accomplish. -- 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 about printing

2008-05-01 Thread Tim Roberts
will be welcome. Thanks. P.D: i tried to print the wxpython demo 2.8 and it happens the same, transparency background is printed on black. Many printers do not handle transparency. What kind of printer is it? -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc

Re: [python-win32] Help about printing

2008-05-01 Thread Tim Roberts
anything opaque. -- 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] Vista and listening sockets

2008-05-06 Thread Tim Roberts
\ AuthorizedApplications\ List\ -- 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] Attaching Menu to Any App

2008-05-15 Thread Tim Roberts
every time a menu event happens (among other places). You would figure out whether the message was for a menu that was opening, and if it was, add yourself to the menu, and subclass the window. Then, when the menu closes, you could undo the subclass and remove yourself from the menu. -- Tim

Re: [python-win32] Problem creating a shortcut

2008-05-15 Thread Tim Roberts
, 'CurrentVersion' )[0] print ffver ffmainkey = _winreg.OpenKey( ffkey, sub + \\Main ) ffpath = _winreg.QueryValueEx( ffmainkey, 'PathToExe' )[0] _winreg.CloseKey( ffkey ) _winreg.CloseKey( ffmainkey ) -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc

Re: [python-win32] Volume Serial Number

2008-05-16 Thread Tim Roberts
) print UnsignedHex( win32api.GetVolumeInformation('C:\\')[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] [OT] Anyone happen to know the system-wide limit of HANDLEs in Windows 2000 Server?

2008-05-16 Thread Tim Roberts
are separate. http://blogs.msdn.com/oldnewthing/archive/2007/07/18/3926581.aspx http://msdn.microsoft.com/en-us/library/ms725486.aspx http://msdn.microsoft.com/en-us/library/ms724291.aspx -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc

Re: [python-win32] Volume Serial Number

2008-05-16 Thread Tim Roberts
Golden has a way to do just about everything, but this particular snippet has nothing to do with the original question. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http

Re: [python-win32] Volume Serial Number

2008-05-16 Thread Tim Roberts
are quite correct, I apologize. -- 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] Is WMI ever disabled?

2008-05-16 Thread Tim Roberts
is often exploited quite heavily for monitoring, logging, and administration. -- 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 the wave module for reading wave files

2008-05-20 Thread Tim Roberts
is that you can go look in the source. wave.py is in the standard library. Each frame is sample width X number of channels. If you have a 44100-S-16 audio stream, each frame is 4 bytes (stereo x 16 bits per sample). -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc

Re: [python-win32] Request for comments

2008-05-23 Thread Tim Roberts
rather than just go read the source. I think that each of these items is specifically talking about the Pythonwin editor here. Is that correct? I've never had problems cutting and pasting code, although I tend to use gvim and a command line instead. What issues do you see? -- Tim Roberts

Re: [python-win32] Request for comments - the spaces issue

2008-05-27 Thread Tim Roberts
). If anything, research shows that two spaces after a period increases reader comprehension, but font designers don't like the aesthetics. The general trend these days is toward one space, but they'll never stop me. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc

Re: [python-win32] Request for comments - the spaces issue

2008-05-28 Thread Tim Roberts
are discouraged by PEP8: obj = myFunction( one, two ) -- 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] Request for comments - the spaces issue

2008-05-28 Thread Tim Roberts
development team, and sample code contributed from the private library of a helpful member of the general public? -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org

Re: [python-win32] MSProject and export maps

2008-05-28 Thread Tim Roberts
storage document, which is the binary format used by all of the Microsoft Office programs prior to Office 2007. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org

Re: [python-win32] building pywin32 on Server 2003 x64

2008-05-30 Thread Tim Roberts
system, or are you cross-compiling? -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

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