Re: [python-win32] win32console attach problems

2008-10-07 Thread Tim Roberts
are seeing an issue with the underlying Win32 APIs, not in the win32console module itself. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo

Re: [python-win32] win32console attach problems

2008-10-06 Thread Tim Roberts
APIs to kill your console app, just to make sure that the sequence does work as expected. Print out the pid, then pass that to the C app by hand. Remember to make it a Windows app (WinMain instead of main) so that you don't get your own console. -- Tim Roberts, [EMAIL PROTECTED] Providenza

Re: [python-win32] win32console attach problems

2008-10-03 Thread Tim Roberts
the AttachConsole fails, throwing an exception. Fair enough. My issue is that after one such a failing attempt all following AttachConsole attempts will fail the same way. What error do you get? MSDN describes several different error returns. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide

Re: [python-win32] help with python COM server needed

2008-10-03 Thread Tim Roberts
extra parentheses (that is, use ? not (?) ). Also, you don't need the backslash at end of line; Python will keep continuing the statement as long as you are inside an open set of parentheses. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc

Re: [python-win32] win32console attach problems

2008-10-03 Thread Tim Roberts
. But if this was the case - shouldn't it be fixed with the win32console.FreeConsole I always call before attaching? Well, let me ask a silly question. Are you running this from a pyw app, using Pythonw.exe, so you don't have a console of your own? -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc

Re: [python-win32] Controlling Excel via COM: errors with conditional formatting

2008-09-24 Thread Tim Roberts
Basic. By the way, after you use Dispatch, all of Excel's xl constants are available to you. import win32com.client xl = win32com.client.dispatch( Excel.Application ) print win32com.clients.constants.xlLandscape -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc

Re: [python-win32] Virtual print driver - similiar to winpdf

2008-09-22 Thread Tim Roberts
it dump to a text file? (That's one of the standard printer drivers built-in to Windows.) If you really need a driver, you are not going to be able to do this from Python. There are a sample printer drivers in the WDK (Windows Driver Kit). It is not a project to be undertaken lightly. -- Tim

Re: [python-win32] Pythonwin telit

2008-09-18 Thread Tim Roberts
bugs in quite a long time. What version are you using, and what bugs do you 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] Fwd: Modifying the system menu

2008-09-17 Thread Tim Roberts
in order to catch the menu item being chosen anyway. There are Python modules to handle some kinds of hooks, but overall this would be much easier in C. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ python-win32 mailing list python

Re: [python-win32] VARIANT as byref parameter

2008-09-17 Thread Tim Roberts
that the buffer is an in/out variant, not an output. I'm not sure how to construct a buffer Pythoncom will correctly translate in this instance. Mark, maybe? -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ python-win32 mailing list

Re: [python-win32] VARIANT as byref parameter

2008-09-16 Thread Tim Roberts
this in the web. It would be great if someone could help me. Is the parameter declared as [out,retval] in the type library? If so, then Python should create the variant and return it to you: varData = QueryNote.ReadVarBlock( 0, lValue ) -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc

Re: [python-win32] ImportError: No system modul

2008-09-10 Thread Tim Roberts
did you install pywin32? Where does it exist? And what does this say? import sys print sys.path -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org

Re: [python-win32] Accessing other interfaces of a Dispatch created COM object

2008-09-10 Thread Tim Roberts
. What's the root problem? Is it still the Library not registered issue when you call a method in Interface_2? Was this all registered through a type library, or through a regsvr32 call, or what? -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc

Re: [python-win32] Accessing other interfaces of a Dispatch created COM object

2008-09-10 Thread Tim Roberts
. HKEY_CLASSES_ROOT is just a symbolic link shortcut to HKEY_LOCAL_MACHINE\Software\Classes. Everything in one will be in the other. No solution yet, but maybe this provides more background information. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc

Re: [python-win32] Accessing other interfaces of a Dispatch created COM object

2008-09-10 Thread Tim Roberts
be a path to the TLB. Make sure the path is correct. You might also try running regsvr32 on the DLL file associated with I2. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http

Re: [python-win32] Detect if user has a window opened in full screen mode?

2008-08-21 Thread Tim Roberts
. Note that DirectX games use a very different method of going fullscreen than maximized applications. For maximized applications, you could enumerate through all of the top-level windows and find their window rectangles. For DirectX games, that wouldn't work. -- Tim Roberts, [EMAIL PROTECTED

Re: [python-win32] help with parsing email

2008-08-19 Thread Tim Roberts
. I thought I wrote this to the list, but I don't see it. Outlook and Exchange communicate through a private set of protocols. They do not use POP. The POP gateway is an optional extension for Exchange, and in many corporate environments it is disabled. -- Tim Roberts, [EMAIL PROTECTED

Re: [python-win32] Change account email option

2008-08-19 Thread Tim Roberts
this up. Mailman doesn't provide a way to do simple renaming, other than running a shell command on the server itself. The easiest way is to unsubscribe the old and resubscribe the new. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc

Re: [python-win32] Play MP3s from Windows, Just Works

2008-08-18 Thread Tim Roberts
they will not assert their patent rights on free and/or open source decoders and encoders. However, you are correct to point out that the legal situation is murky. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ python-win32 mailing

Re: [python-win32] GetModuleFileName requires Process or Thread handle?

2008-08-18 Thread Tim Roberts
). You cannot call GetModuleFileName across processes. -- 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 with parsing email

2008-08-18 Thread Tim Roberts
, 'Connection refused') Are you absolutely sure that your Exchange server includes the POP gateway? Remember that Outlook communicates with Exchange through a custom set of protocols. The POP gateway is optional, and many corporate environments turn it off. -- Tim Roberts, [EMAIL PROTECTED

Re: [python-win32] PyCEdit issue

2008-08-18 Thread Tim Roberts
Marc-André Belzile wrote: Ok that works. Is it a limitation with the windows control or PyCEdit? The Windows multi-line edit control requires \r\n between lines. If that's what PyCEdit uses, then that's where it comes from. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc

Re: [python-win32] Friendlier pywintypes.com_error messages

2008-08-08 Thread Tim Roberts
. There are HRESULT error numbers spread all over the include files in the Platform SDK. The most common (like the three you mentioned) are in WinError.h. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ python-win32 mailing list python

Re: [python-win32] How to find a Type Library for makepy?

2008-08-01 Thread Tim Roberts
of the control is LMDocViewer.LMDocView, or at least it was in version 11, so you should be able to do vwr = win32com.client.Dispatch( 'LMDocViewer.LMDocView' ) -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ python-win32 mailing

Re: [python-win32] IronPython COM

2008-07-31 Thread Tim Roberts
suggest you sign up for the IronPython mailing list here: http://lists.ironpython.com/listinfo.cgi/users-ironpython.com It only gets a few messages a day. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ python-win32 mailing list

Re: [python-win32] Python and COM

2008-07-31 Thread Tim Roberts
what you tried and tell us what happened when you tried it? Thank you very much,please answer my question in code. Morse code? -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org

Re: [python-win32] name not defined

2008-07-30 Thread Tim Roberts
call last): # File maya console, line 1, in module # NameError: name 'A2' is not defined # There is nothing in your code that refers to a name 'A2', so this must be something maya-specific. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc

Re: [python-win32] How can I modify owner file in windows??

2008-07-29 Thread Tim Roberts
_ _ wrote: Hi... Thanks... I try this but I have errors: pywintypes.error: (1307, FYI, this is ERROR_INVALID_OWNER. or pywintypes.error: (5, This is ERROR_ACCESS_DENIED. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc

Re: [python-win32] Access is denied while retriving 64 bit registry from 32bit

2008-07-29 Thread Tim Roberts
] The system cannot find the file specified Well, this makes the pretty strong argument that the Value Systems\ValApp\Instance001 key in your 64-bit HKLM hive does not contain a value called sPhysicalNodeName. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc

Re: [python-win32] i have this code, how do i passed to word

2008-07-25 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] i have this code, how do i passed to word

2008-07-25 Thread Tim Roberts
( Word.Application ) word.Visible = 1 # if you want to watch the process doc = app.Documents.Add() doc.Content.Text = This is the string to add to the document. doc.Content.MoveEnd() doc.Close() word.Quit() -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc

Re: [python-win32] SetCursor

2008-07-25 Thread Tim Roberts
immediately, do you have a runnable sample that shows this? -- 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] SetCursor

2008-07-25 Thread Tim Roberts
it. It uses PyQt4, could that be causing the problem? It changes the Icon on any key press when the window has focus. Hmmm, I don't know enough about Qt to answer that. It's quite possible that Qt is doing its own cursor management, and is not expecting you to call the API behind its back. -- Tim

Re: [python-win32] How to replace the values with keys ?

2008-07-24 Thread Tim Roberts
: aList = [ 'str1\n', 'str2\n', 'str3\n', 'str4\n' ... ] You would use it exactly the same way: from aDict import aList ... newValue = aList[ i ] -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ python-win32 mailing list python

Re: [python-win32] FW: MSMQ - cannot catch COM_ERROR with pythoncom.com_error

2008-07-23 Thread Tim Roberts
, by unanimous acclaim. Real men use command lines. -- 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 Visual Basic Integration

2008-07-23 Thread Tim Roberts
, with some glue. You can turn your Python script into a COM server, and then use the .NET COM Interop to invoke it from your VB code. Is that more trouble than starting a process and monitoring its results? You'll have to judge that yourself... -- Tim Roberts, [EMAIL PROTECTED] Providenza

Re: [python-win32] how to automate VB fron python

2008-07-23 Thread Tim Roberts
class that i create This is kind of the inverse of the last question! Partly, this depends on which version of VB you are using. Your VB program can become a COM server. Once you do that, your Python code can use it, just like Word.Application and Excel.Application. -- Tim Roberts, [EMAIL

Re: [python-win32] How to replace the values with keys ?

2008-07-23 Thread Tim Roberts
as aDict.py. I want the replaced values in a separate file text3.txt. You need to show us exactly what aDict.py contains. If it looks like this: aDict = { 'a': '1', ... } then you should probably start your program with this: from aDict import aDict -- Tim Roberts, [EMAIL PROTECTED

Re: [python-win32] how to automate VB fron python

2008-07-23 Thread Tim Roberts
Emanuel Sotelo wrote: hi Tim Roberts, well a have install visual basic 6.0 Are you aware that Visual Basic 6.0 is now 10 years old? Software is not like wine and cheese. It does not get better with age. can you help me by telling me how to make mi VB programa into a COM Server

Re: [python-win32] How to replace the values with keys ?

2008-07-22 Thread Tim Roberts
in text1 to be replaced with the keys, say like 0 1 0 2 0 3 0 6 1 2... so on.. Is there some way I could do it in python? reverseText2 = dict( (b,a) for a,b in Text2.items() ) -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ python

Re: [python-win32] about wmi exception

2008-07-14 Thread Tim Roberts
to use the Adobe Acrobat Reader. Adobe has made the incredibly stupid decision to have the Acrobat Reader phone home now and then using this service, and if it is not present, Acrobat simply refuses to run. Scrcons.exe is part of WMI. Why do you want to kill it? -- Tim Roberts, [EMAIL

Re: [python-win32] Implementing Collections / Shim-ing Word

2008-07-02 Thread Tim Roberts
consist of nothing but function pointers. -- 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 Do You Make Your Speech or SAPI 5 Voices Portable?

2008-06-26 Thread Tim Roberts
( 'dist', dll ) ) You may think this is nitpicking, and you're probably right, but once you start trying to release code into the wild, you have to start thinking about the issues you encounter in the strange and magical world of the average user. -- Tim Roberts, [EMAIL PROTECTED] Providenza

Re: [python-win32] Keystrokes Python

2008-06-16 Thread Tim Roberts
. There is no Fn key in the standard virtual key set, so there is no way for you to simulate one. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman

Re: [python-win32] Python Service does not start at Windows boot but at user's logon

2008-06-11 Thread Tim Roberts
, there's nothing you can do, unless there's a way to notify the other process to re-read its settings. -- 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

Re: [python-win32] Exception setting a string using COM

2008-05-30 Thread Tim Roberts
creates a separate method for setting. You might try: item.setPath( ) -- 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
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] 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

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

<    4   5   6   7   8   9   10   11   12   >