[python-win32] Re: Help on using win32api.SendMessage to sendkeystrokes

2005-04-03 Thread Roel Schroeven
Mark Hammond wrote: > PostMessage wants a Python integer object (or a long that could fit in an > int). In practice, that means sending a negative integer when you want the > MSB set. > > Sadly (IMO), in Python 2.4, all these bitwise operations have become more > "pythonic" rather than like C. T

[python-win32] Sparse files and Pickle

2005-04-03 Thread Graeme Glass
Could anyone tell me if it is possible to create a sparse file on win32 platform using python, and if so how? And just out of interest, what is the practical limit for pickling an object? I pickled a 89MB binary read from a disk file, and although it worked, hogged my PC for about 8minutes making

Re: [python-win32] Handle to a Driver

2005-04-03 Thread Chi Tai
i've found the faulty. For those interested in: win32file.DeviceIoControl transfers a string or character array, thus a numerical value like a handle is also transfered as a character array and the cast operation within the driver does not result in a valid handle. str(ReadEvent) would give you a

[python-win32] Fnorb problems

2005-04-03 Thread Rodrigo Baptista
Hi im using Python-2.3.5.exe and Fnorb-1.3.win32.exe and i want to use the fnidl to compile idl files. The instalation of fnorb goes ok, but when i execute fnidl it comes this: C:\Python23\Scripts>fnidl Traceback (most recent call last): File "C:\Python23\Lib\site-packages\Fnorb\script\fnidl.py",