Re: [python-win32] Using ctypes - solved

2010-12-27 Thread Dave Angel
On 01/-10/-28163 02:59 PM, Mico Siahaan wrote: æ«jYH·¬²‰oyÒ-Á«yÆ®±ì!zr­æ­yÛayø¥zëž �Ú0±ìi–ŠÞ¬×°Mìm‡.™éí·*^u×¥zצzÜmjÉÚ™ë(iËnjYr¶ŸŠW§jg°jÇ^•ë^™ëq¶ÜmEè­Û ‰Ê‰Ê,‰¨Zj|š†Š¢fÚž ¢rƒ«Š§jS²Æ

Re: [python-win32] Python script jumps back to 'main' in long running win32 event

2010-06-25 Thread Dave Angel
Robert Sudwarts wrote: Hi, I'm hoping that someone can help with this... I've seen some old posts which I think may refer to this same issue but I'm having difficulty understanding how to come up with a solution, and particularly where any PumpWaitingMessages should be located

[python-win32] ImportError on win32api

2010-03-15 Thread Dave Angel
Starting yesterday, one of my programs gets an import error trying to import win32api. The last time I ran the program was probably a month ago, and in the meantime I had updated the Python version, as follows: 2.6.4 (r264:75706, Jan 22 2010, 16:41:54) [MSC v.1500 32 bit (Intel)] This was

Re: [python-win32] permissions error

2010-02-12 Thread Dave Angel
Jeff Peery wrote: Hello, I'm running on vista and I'm getting a permissions error from win32com. I attached a print screen displaying the error message. It appears win32com is trying to write a file and vista UAC is blocking it. Why is win32com trying to do this and how do I fix it? the only

Re: [python-win32] Still looking for a method to get CPUID info ...

2010-01-08 Thread Dave Angel
Gertjan Klein wrote: Tim Roberts wrote: However, I'll bet I know what it is. CPUID trashes ebx, and in the x86 calling sequence, that's supposed to be saved and restored. That's it! Now, both Python 2.5 and 2.6 (and 3.1, if I change the print statement) run this code successfully.

Re: [python-win32] Unable to install PyWin32 with Python 2.6.2

2009-09-30 Thread Dave Angel
Terry Haran wrote: div class=moz-text-flowed style=font-family: -moz-fixedHi Chris: I'm getting: error: Unable to find vcvarsall.bat when running setup.py install with pywin32-214 and Python 2.6.2 under Microsoft Windows XP [Version 5.1.2600] on a Panasonic CF-19 Series Toughbook. Any help

[python-win32] Find IP address for a UNC path

2009-08-27 Thread Dave Angel
I'd like to be able to figure out the IP address for a Windows XP file server (on a local subnet, not across the Internet), based on a successfully connected share. So I know the UNC name of the share, for example \\server\sharename\... (which was enabled by a NET USE to some other share

Re: [python-win32] Find IP address for a UNC path

2009-08-27 Thread Dave Angel
= directedge@python.org] On Behalf Of Dave Angel Sent: Thursday, August 27, 2009 4:52 AM To: Python-Win32 List Subject: [python-win32] Find IP address for a UNC path I'd like to be able to figure out the IP address for a Windows XP file server (on a local subnet, not across the Internet), based

Re: [python-win32] Converting DD MM YYYY into YYYY-MM-DD?

2009-08-19 Thread Dave Angel
Gilles Ganault wrote: I find it odd that the regex library can't handle European characters :-/ Can you show us an example where regex doesn't handle Unicode strings reasonably? DaveA ___ python-win32 mailing list python-win32@python.org

Re: [python-win32] determining information about a window

2009-08-10 Thread Dave Angel
Eric Blade wrote: This is kind of a weird question - I have a process that has two windows with the exact same name. I need to figure out some way to differentiate between the two windows - what functions are there available that I can call to find out information about the two windows, so that

Re: [python-win32] File Time: win32file vs Python ?

2009-07-03 Thread Dave Angel
Tim Roberts wrote: Robert wrote: os.path.getmtime('x.txt') 1193160881 int(win32file.GetFileAttributesExW('x.txt')[-2]) 1193153681 int(win32file.GetFileAttributesExW('x.txt')[-2]) - os.path.getmtime('x.txt') -7200 (Win XP) is this a bug, or is

Re: [python-win32] FIle I/O on Windows XP

2009-06-15 Thread Dave Angel
Tony Cappellini wrote: I was trying to see if I could speed up processing huge files (in the 10's of Gigabytes) by passing various values to the readline() method of the file object. No matter what I passed to readline() each call was slower and slower than passing no argument at all. I've