Re: [python-win32] Pylons as service...

2009-05-19 Thread Tim Roberts
. That's how it knows which file to load and which class to instantiate. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Pylons as service...

2009-05-18 Thread Tim Roberts
to assert the stop_event event, which the SvcDoRun function is blocked on. That's the normal way. SvcStop sets an event, which allows SvcDoRun to return. When SvcDoRun returns, the service exits. However, the sys.exit method also works. It's just that you get this little traceback -- Tim Roberts

Re: [python-win32] python win-32, 64-bits, and services

2009-05-12 Thread Tim Roberts
a succinct test case that I can share. I would be interested in looking at it. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Win32 robustness against Microsoft version changes

2009-05-11 Thread Tim Roberts
this risk (we currently use Office2003 on WinXP)? With very few exceptions, Microsoft never removes a documented API. The risks, although not zero, are very slight. The same cannot be about, for example, Adobe... -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc

Re: [python-win32] Silent installation of pywin32

2009-05-08 Thread Tim Roberts
will automatically pull in whatever pieces of pywin32 are necessary to make your script run. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python

Re: [python-win32] Fwd: First line is a mix of text characters and binary, after the first line all is binary.

2009-05-05 Thread Tim Roberts
back to a new file. part1 = '\x1D'.join( sect1 ) part2 = '\x1D'.join( sect2 ) recreate = '\x1C'.join( [part1, part2, sections[-1]] ) open( 'newfile.nst','wb' ).write( recreate ) -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc

Re: [python-win32] Extract icon from exe files

2009-05-05 Thread Tim Roberts
) to find out what functions are available in a DC? hdc.FillSolidRect( (0,0, ico_x, ico_y), 0xff ) -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman

Re: [python-win32] What is the meaning of -1. #IND?

2009-05-04 Thread Tim Roberts
results in indefinite because it has no defined meaning. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Retrieve informations from NIST file.

2009-04-30 Thread Tim Roberts
','wb').write ('\x1c'.join(newsections) ) But that assumes there's nothing in that garbage 3rd section that needs to be changed. It's just a matter of dividing the problem up into smaller problems until the solution pops out. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc

Re: [python-win32] Extract icon from exe files

2009-04-30 Thread Tim Roberts
Nicolas EISEN wrote: Tim Roberts a écrit : EISEN Nicolas wrote: I'm lucky, I found ... My Source : /from win32gui import * import win32con from pywintypes import HANDLE import win32ui listHicon = ExtractIconEx(c:\OpenOffice.exe,0) tupleIcon = GetIconInfo

Re: [python-win32] Retrieve informations from NIST file.

2009-04-29 Thread Tim Roberts
with a hex editor to figure out what it really contains. If you want, you could send me one of the files, and a detailed description of what you want out of them. Perhaps we can come with a data structure that's easier to work with. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc

Re: [python-win32] Extract icon from exe files

2009-04-28 Thread Tim Roberts
, hicon is use ton create the variable nid and re use it to display on the screen, but i want get only the bitmap bits. I'm not sure why you think these two things are different. The way you get the bitmap bits is to draw the icon on a bitmap. -- Tim Roberts, t...@probo.com Providenza

Re: [python-win32] Extract icon from exe files

2009-04-27 Thread Tim Roberts
a usable image. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] activate an opened window through the server

2009-04-24 Thread Tim Roberts
either need to double the backslashes: cmd = 'idlede.exe ... -nosplash @C:\\SAMIR\\soil.run' or use the r syntax: cmd = r'idlede.exe ... @C:\SAMIR\soil.run' -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing

Re: [python-win32] Extract icon from exe files

2009-04-24 Thread Tim Roberts
problem is I didn’t found the python module for GetBitmapBits() function ... How much looking have you done? Did you know that the PyWin32 win32\Demos directory contains several example of programs that manipulate icons, including one that calls ExtractIconEx and draws the icon to a bitmap? -- Tim

Re: [python-win32] activate an opened window

2009-04-23 Thread Tim Roberts
of the top-level windows using EnumWindows, then call GetWindowThreadProcessId until you find a window that matches. Remember that an application can have several top-level windows. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32

Re: [python-win32] activate an opened window

2009-04-23 Thread Tim Roberts
to do, in detail. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] activate an opened window through the server

2009-04-23 Thread Tim Roberts
here? -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] activate an opened window through the server

2009-04-23 Thread Tim Roberts
to a web server. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] activate an opened window through the server

2009-04-23 Thread Tim Roberts
of experimentation, but it might be possible. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] activate an opened window through the server

2009-04-23 Thread Tim Roberts
that command you already showed. You can use subprocess.call to run that command and wait for the result. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo

Re: [python-win32] Extract icon from exe files

2009-04-20 Thread Tim Roberts
this might be easier in C. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] win32gui.GetMenu() return 0

2009-04-17 Thread Tim Roberts
. This is a Python wrapper around the Microsoft Active Accessibility library. http://www.cs.unc.edu/Research/assist/developer.shtml -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http

Re: [python-win32] Uninstall program form Registry

2009-04-17 Thread Tim Roberts
: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall Every subkey represents an app or update that can be uninstalled, and each key contains an UninstallString value that gives you the command to execute to do the uninstall. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc

Re: [python-win32] Uninstall program form Registry

2009-04-17 Thread Tim Roberts
had extra files in the folder that weren't installed by the installer. Most uninstall apps will not delete the root folder if it contains files that were created after installation time. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc

Re: [python-win32] win32gui.GetMenu() return 0

2009-04-16 Thread Tim Roberts
. Instead, it creates a whole series of movable toolbars, one of which happens to look like a menu. What are you actually trying to do? -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org

Re: [python-win32] win32gui.GetMenu() return 0

2009-04-16 Thread Tim Roberts
the Internet Explorer object model, to see if you can use that COM object you already created to access the tools through function call instead. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32

Re: [python-win32] Monitoring the active window

2009-04-10 Thread Tim Roberts
that, in virtually every case it is an ignorant rendition of the French word Voila! I'm amazed that a real company would choose that as a name. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32

Re: [python-win32] Might be a easy problem.

2009-04-06 Thread Tim Roberts
. The Win32 extensions to Python live in import packages that are not called win32. Now, it is QUITE possible that the IDE you are using has its own extension called win32. If so, we wouldn't know anything about that in this forum. You'd have to check the IDE's documentation. -- Tim Roberts, t

Re: [python-win32] is these modules available for IA64bit

2009-03-30 Thread Tim Roberts
this? Also i want to know if wmi module is availble for IA64 There is virtually no real development going on for IA64, because there are virtually no sales of IA64 systems. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32

Re: [python-win32] GDI+ text rendering screwed up

2009-03-19 Thread Tim Roberts
font is actually called Times New Roman. There is a substitution list for common font names, but I'm not sure I'd want to rely on it. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org

Re: [python-win32] Need help in MKS

2009-03-11 Thread Tim Roberts
of tasks, requiring very different approaches. The more specific you can be, the better the advice we can offer. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org

Re: [python-win32] Unreliable results with Winreg WMI

2009-02-25 Thread Tim Roberts
this redirection by calling RegDisableReflectionKey for the key you want to talk to. I do not know if this is exposed in _winreg. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org

Re: [python-win32] Unreliable results with Winreg WMI

2009-02-25 Thread Tim Roberts
Tim Roberts wrote: Ben wrote: I have generally been getting better results using winreg than using WMI, but even Winreg (or config problems on our server) are causing me problems. For example I'd use this code to find out if a certain I'm beginning to think this is because

Re: [python-win32] opening files with names in non-english characters.

2009-02-24 Thread Tim Roberts
. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Accessing Interfaces

2009-02-20 Thread Tim Roberts
(they are Win 7 only), so I seriously doubt anyone has played with them enough to know whether they do IDispatch. If they don't, it's always (well, almost always) possible to handle these with ctypes and comtypes. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc

Re: [python-win32] Accessing Interfaces

2009-02-20 Thread Tim Roberts
ctypes to call DWriteCreateFactory, and ctypes/comtypes to call the member functions. Are you sure you want to do this? ;) Until someone writes a wrapper layer, it would probably be more productive for you to use C++. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc

Re: [python-win32] Error with VixCom operation; TypeError: The VARIANT type is unknown (0x00000015)

2009-02-17 Thread Tim Roberts
integer as an error number, but that's what they're doing. As Mark said, pywin32 doesn't support VT_UI8 at all. There may be a hacky way to do this with comtypes. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list

Re: [python-win32] numpy and pylab on win64 ?

2009-02-11 Thread Tim Roberts
version would still work on my xp64 platform. If you install 32-bit Python, then the 32-bit add-ons continue to work just as they always have. If you install 64-bit Python, then you need 64-bit add-ons. Numpy, at least, uses C extensions. -- Tim Roberts, t...@probo.com Providenza Boekelheide

Re: [python-win32] How to calc amount of avail RAM in a process ?

2009-01-30 Thread Tim Roberts
of physical memory is reserved for non-paged pool in the kernel, which is used by drivers for critical buffers and for DMA, among other things. Thus, you can be out of paged pool even when there is unused physical memory remaining. Virtual memory is a surprisingly difficult thing to nail down. -- Tim

Re: [python-win32] Pb SxS for install

2009-01-30 Thread Tim Roberts
manifest override it? I'm not sure the answer is written down anywhere. Side-by-side is an abortion. It is an incredibly baroque solution to a problem that programmers outside of Redmond learned how to handle more than a decade ago. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc

Re: [python-win32] How to calc amount of avail RAM in a process ?

2009-01-29 Thread Tim Roberts
geoff wrote: I am hoping someone could steer me in the right direction on how to calculate the amount of RAM available to a process. I found the post below from Tim Roberts - a belated thanks Tim for your patient responses ! and it seems we regularly hit this limit. We have an application

Re: [python-win32] Opening and enumerating resource many times

2009-01-29 Thread Tim Roberts
any web articles about this. Very interesting... -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] How to calc amount of avail RAM in a process ?

2009-01-29 Thread Tim Roberts
GlobalMemoryStatusEx(): x = MEMORYSTATUSEX() x.dwLength = sizeof(x) windll.kernel32.GlobalMemoryStatusEx(byref(x)) return x z = GlobalMemoryStatusEx() print z.ullAvailVirtual -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc

Re: [python-win32] How to calc amount of avail RAM in a process ?

2009-01-29 Thread Tim Roberts
RAM, your process can still allocate up to 2GB of memory. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] How to calc amount of avail RAM in a process ?

2009-01-29 Thread Tim Roberts
that, if the page file gets low, the system will allocate more. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] ImportError: DLL load failed: The specified procedure could not be found.

2009-01-26 Thread Tim Roberts
directory. Of course; Windows does not allow multiple versions in a single directory. What Mark suggested is that you compare those versions to whatever versions are contained in your Python directory. For example: dir /s \Python25\py*.dll -- Tim Roberts, t...@probo.com Providenza

Re: [python-win32] (no subject)

2009-01-22 Thread Tim Roberts
(0,0) at the end of the loop, after the read, then it works. That is... CLIENT_PIPE.WRITE( 'C' ) CLIENT_PIPE.flush() ...it works after you fix the spelling of WRITE there. ;) -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc

Re: [python-win32] GetWindowsVersion on Longhorn

2009-01-22 Thread Tim Roberts
have what you need. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Dispatching a win32com from within a win32service

2009-01-19 Thread Tim Roberts
, in that iTunes needs to display a user interface, which it can't really do until someone has logged in, -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo

Re: [python-win32] Multiple Extraction - ArcGIS9.2

2009-01-06 Thread Tim Roberts
:\HfT Thesis_Bikash\thesis data\exactbound_gcs.shp' I may have the quoting wrong. You'll have to see what is required by ArcGIS. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http

Re: [python-win32] Windows Service and APPDATA for AUTO startup

2009-01-06 Thread Tim Roberts
for application-specific data; my preference is to avoid /pythonxx\Lib\site-packages\.../ APPDATA works if the account really does have a profile. If not, one common place is to use a folder in \Program Files. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc

Re: [python-win32] Windows Service and APPDATA for AUTO startup

2009-01-06 Thread Tim Roberts
Jim Vickroy wrote: Tim Roberts wrote: Is this a custom account you created? Does it actually have a profile (C:\Documents and Settings\Custom User\Application Data)? Yes, that folder does exist. When started manually (with that account) the Service works; the Service fails, as noted

Re: [python-win32] Multiple Extraction - ArcGIS9.2

2009-01-05 Thread Tim Roberts
path, of course: assoc .py=Python.File ftype Python.File=C:\Python24\python.exe %1 %* assoc .pyw=Python.NoConFile ftype Python.NoConFile=C:\Python24\pythonw.exe %1 %* -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc

Re: [python-win32] building pywin32 for python 2.6...

2009-01-05 Thread Tim Roberts
are using the very latest SDK (6001) but an old compiler (Visual Studio 2003). If you read the release notes, you'll see that the 6001 SDK no longer supports Visual Studio 2003. You need to switch to VS2005 or VS2008. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc

Re: [python-win32] Welcome to the python-win32 mailing list

2008-12-29 Thread Tim Roberts
( self._fdmap, [], [] )[0] if fdi: self._ProcessInput( fdi[0] ) else: logger.error( select returned empty. ) -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list

Re: [python-win32] Welcome to the python-win32 mailing list

2008-12-29 Thread Tim Roberts
Tim Roberts wrote: Well, select is not just a drop-in replacement for poll, although it can serve the same function. Without looking at the rest of the source, you probably want something like this: def Run( self ): self._fdmap = {} self._PrepareSockets() while

Re: [python-win32] kernal32.DeviceIoControl Operation Aborted

2008-12-19 Thread Tim Roberts
are almost always written in Python, because it's so easy to experiment. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Post Message

2008-12-15 Thread Tim Roberts
, and because it is modal, it has its own message loop. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] no array returned in output parameter

2008-12-15 Thread Tim Roberts
+ VT_BYREF, or a long integer output parameter. Are you 100% convinced that the object has an array of filters to return? How do you know? -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http

Re: [python-win32] Transmit HID device with python on Windows

2008-12-15 Thread Tim Roberts
://libhid.alioth.debian.org/ -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] no array returned in output parameter

2008-12-15 Thread Tim Roberts
. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Writing to Excel performance

2008-12-12 Thread Tim Roberts
. It reads the file to detect the file type. If you rename an executable to xxx.xls and try to open it within it Excel, it will complain about the format. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32

Re: [python-win32] Writing to Excel performance

2008-12-12 Thread Tim Roberts
in the registry. The old Mac OS used a fourcc scheme, where you embedded a code identifier in the resource fork of the file itself. That makes many things unnecessarily hard. Linux uses the shebang technique, where the first line of a file (#!) identifies the handler. -- Tim Roberts, t

Re: [python-win32] Getting active SMTP servers via python.

2008-12-10 Thread Tim Roberts
environments do not have SMTP servers at all (Exchange clients, for example). You must ask the user to configure this. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http

Re: [python-win32] Passing data in a windows message

2008-12-10 Thread Tim Roberts
block until the other end acknowledged 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] get window title

2008-12-09 Thread Tim Roberts
to make this happen. import win32gui def winEnumHandler( hwnd, ctx ): if win32gui.IsWindowVisible( hwnd ): print hex(hwnd), win32gui.GetWindowText( hwnd ) win32gui.EnumWindows( winEnumHandler, None ); -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc

Re: [python-win32] get window title

2008-12-09 Thread Tim Roberts
, it means the title bar text. For edit boxes, it means the contents. For static text, it means the text. For buttons, it means the button caption. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32

Re: [python-win32] Walking the registry and creating reg files

2008-12-08 Thread Tim Roberts
? Yes, but remember that RegSaveKey uses an undocumented binary format that matches the internal registry database format. Joe User isn't going to go in and modify the saved file. It was really designed for backup and restore. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc

Re: [python-win32] Walking the registry and creating reg files

2008-12-05 Thread Tim Roberts
is) sufficient. Almost. The RegSaveKey and RegRestoreKey functions, which export and import entire subtrees, need the SE_BACKUP_NAME privilege. The administrator account can get that privilege, but you have to use APIs to ask for it. http://msdn.microsoft.com/en-us/library/ms724917.aspx -- Tim

Re: [python-win32] Walking the registry and creating reg files

2008-12-05 Thread Tim Roberts
special permissions for that. You are quite correct. It's only those two specific functions (RegSaveKey and RegRestoreKey) that need special privileges. It just so happens that's what Tim G was talking about. So, we're all in violent agreement... -- Tim Roberts, [EMAIL PROTECTED] Providenza

Re: [python-win32] Simulating a mouse click - lParam

2008-12-05 Thread Tim Roberts
directly. Are you doing this from inside the owning wx application? If so, you should be able to get the tab control object and call the methods directly. Even if you can only get the handle, you can use TCM_SETCURSEL. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc

Re: [python-win32] Walking the registry and creating reg files

2008-12-05 Thread Tim Roberts
sticking to 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] Simulating a mouse click - lParam

2008-12-05 Thread Tim Roberts
to force the window to redraw. Do you have the Windows SDK installed? You can use the spyxx tool to explore the window configuration of the app you're examining. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ python-win32 mailing

Re: [python-win32] Problem in accessing the Sender and Receiver addresses of an outlook mail

2008-12-04 Thread Tim Roberts
that for delivery. If you really need the SMTP address for this person, you will have to go look it up in the Exchange address book using the address you got. Here's an article from microsoft.public.platformsdk.mapi that talks a little about this: *http://tinyurl.com/6mfqqo* -- Tim Roberts

Re: [python-win32] rebooting windows from Python?

2008-12-04 Thread Tim Roberts
, just to use the tools at my disposal: subprocess.call( shutdown, -r ) -- 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] Walking the registry and creating reg files

2008-12-04 Thread Tim Roberts
asked, but are you aware of the very handy reg tool included with XP? reg export can export a full key in a format that is compatible with regedit. reg export HKLM\system\CurrentControlSet\Services\vgasave xxx.reg -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc

Re: [python-win32] Walking the registry and creating reg files

2008-12-04 Thread Tim Roberts
registry for audit purposes. It's up to him to decide whether that's easier by writing Python or by using reg export. Is something a number? ;) -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32

Re: [python-win32] Problem in accessing the Sender and Receiver addresses of an outlook mail

2008-12-03 Thread Tim Roberts
Exchange, and are looking at an internal message, it's not using SMTP, and might be configured to deliver only to DN names. The Type property of the address tells you which address type it is. http://www.ssuet.edu.pk/taimoor/books/0-672-30928-9/ch4.htm -- Tim Roberts, [EMAIL PROTECTED] Providenza

Re: [python-win32] Simple context-menu question.

2008-11-25 Thread Tim Roberts
confusing user experience. -- 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: Accessing Modification Time of an Outlook Mail in Python

2008-11-25 Thread Tim Roberts
. The only thing they have is the Date: header, which is really the creation time (message.TimeCreated). -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo

Re: [python-win32] dispatch and minimize the window?

2008-11-20 Thread Tim Roberts
, you want to put an icon in the tray? If so, it's entirely up to your COM server to do this. There are a number of example on Google of how to put an icon in the tray. Here's one: http://www.brunningonline.net/simon/blog/archives/SysTrayIcon.py.html -- Tim Roberts, [EMAIL PROTECTED] Providenza

Re: [python-win32] How to make python scripts output to current cmd window? (like linux terminal)

2008-11-17 Thread Tim Roberts
%* I see that you wrote ./filename.py. Was that an accident, or are you using a shell other than cmd? -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman

Re: [python-win32] How to make python scripts output to current cmd window? (like linux terminal)

2008-11-17 Thread Tim Roberts
Tim Roberts wrote: sayeo87 wrote: Right now on Windows I have added .py to my PATHEXT so that I can run .py files by doing ./filename.py. But when I do this the output of the program goes to a new command prompt window which instantly disappears. How can I instead make the output go

Re: [python-win32] Scary message when opening the Interpreter

2008-11-14 Thread Tim Roberts
it without damaging everything... This looks like a problem with mixed versions. Are you saying that you built Python and Python-Win32 from source? If so, may I ask why? There is virtually no benefit to doing so on Windows. The pre-built executables provide everything you need. -- Tim Roberts

Re: [python-win32] PythonWin

2008-11-13 Thread Tim Roberts
with learning Python 2.x today. But to do that, I agree with Harald that you should probably start with Python 2.5. Virtually all of the major tools work with Python 2.5. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ python-win32

Re: [python-win32] how to call the dll in python

2008-11-03 Thread Tim Roberts
advice. -- 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] force outlook ui update

2008-10-30 Thread Tim Roberts
because it is sensible for it to do so, but it's an add-on. It's not a core part of Outlook's world, and as you can see, the integration is not particularly tight. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ python-win32 mailing

Re: [python-win32] Python and Microsoft Media Server

2008-10-30 Thread Tim Roberts
use the socket module to send a ping request to the port and see if you get a response. If you are actually trying to figure out whether the movie is playable, then you'll have to use a media player of some kind. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc

Re: [python-win32] force outlook ui update

2008-10-29 Thread Tim Roberts
Christan K. wrote: Tim Roberts timr at probo.com writes: Christian K. wrote: the subject field in the inbox list changes immedately but the subject line of the message itself (either shown in the embedded panel or in its own frame) does not. After a couple of other actions, i.e

Re: [python-win32] Interacting with the desktop as a service onVista

2008-10-24 Thread Tim Roberts
you are using should work. That's the mechanism Microsoft recommends. There's something going wrong in the process, but the concept is correct. I didn't reply because I couldn't spot the problem off the top of my head, but you are on the right track. -- Tim Roberts, [EMAIL PROTECTED] Providenza

Re: [python-win32] Feature request: adding unicode method to CDispatch

2008-10-21 Thread Tim Roberts
, if a method is returning a string, it will be a Unicode string, because that's the COM standard. If a method returns a single-byte string, it's probably better to convert it yourself. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc

Re: [python-win32] Feature request: adding unicode method to CDispatch

2008-10-21 Thread Tim Roberts
is the Text object, which IS a Unicode string. So, instead of relying on the default conversions, if you say this explicitly: for j = doc.Tables xxx = j.Range.Text you'll find that xxx *IS* a Unicode string. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc

Re: [python-win32] Problem in accessing the Message body of Outlook Inbox.

2008-10-16 Thread Tim Roberts
has a Recipients collection, which is a set of Recipient objects. Each Recipient has Address, Name, and Type properties. The Sender property has the From address. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ python-win32 mailing

Re: [python-win32] COM server and function parameters

2008-10-15 Thread Tim Roberts
. Are you returning a two-tuple? -- 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 I build pywin32?

2008-10-13 Thread Tim Roberts
need to install to properly build pywin32? It may be worth trying an older version of the SDK. The Vista SDK version of specstrings.h does not try to include sal.h. There is a 5 year gap between VS7.1 and the WS2008 SDK. Why are you building Python from scratch? Just curious. -- Tim Roberts

Re: [python-win32] how do I build pywin32?

2008-10-13 Thread Tim Roberts
in mapidefs.h. Didn't you have to install SWIG to run this? What version did you get? Perhaps you should check those files to see if anything looks unusual. Both of them are generated by SWIG. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc

Re: [python-win32] Problem in accessing the Message body of Outlook Inbox.

2008-10-10 Thread Tim Roberts
) f.write(message.Body+\n\n\n) Hope you could get some idea based on this.. I believe you want the Text property, not the Body property. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ python-win32 mailing

Re: [python-win32] Please help, run into a COM object issue using the windows media SDK, thanks!

2008-10-10 Thread Tim Roberts
of the GUI frameworks will supply a message loop. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Problem in accessing the Message body of Outlook Inbox.

2008-10-09 Thread Tim Roberts
to Outlook, and the solution depends on what you used. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

<    3   4   5   6   7   8   9   10   11   12   >