Re: [python-win32] optimizing code to read serial port

2014-02-16 Thread RayS
At 08:14 AM 2/15/2014, you wrote: Vernon Your suggestion is interesting but not practical for our needs. Have you profiled pySerial? http://pyserial.sourceforge.net/examples.html I use it in my LX200 serial telescope package http://rjs.org/Python/LX200/LXSerial.py/LXSerial.html http://rjs.org/

Re: [python-win32] Win32 GUI for beginners.

2014-01-18 Thread RayS
At 10:10 AM 1/18/2014, Christophe Dezé wrote: You can try boa constructor. It's simple.I've begun with it. PS it's a bit obsolete,but i works as well The one thing Boa hasn't been updated for is the AGI widgets, which would be nice. ___ python-wi

Re: [python-win32] Win32 GUI for beginners.

2013-12-31 Thread RayS
I was in a similar place about 12 years ago, and settled on wx http://wiki.wxpython.org/How%20to%20Learn%20wxPython and BoaConstructor http://sourceforge.net/projects/boa-constructor/, which has served well since. A good book I'd bought is now online http://eduunix.ccut.edu.cn/index2/pdf/Mannin

Re: [python-win32] Recurring DLL error with py2exe

2011-08-26 Thread RayS
At 06:02 AM 8/25/2011, Jacob Kruger wrote: The last 2 lines rendered in that window are then the following: *** finding dlls needed *** error: MSVCP90.dll: No such file or directory That specific DLL gets copied quite easily into the relevant subfolder of the dist folder when I run a similar c

Re: [python-win32] py2.7 and multiple DDE servers on Win32, possible?

2011-06-14 Thread RayS
Ahh, this http://www.codeproject.com/KB/MFC/MFCinVisualStudioExpress.aspx might help. I'll work through it later... I do have VS6, but I'm assuming that I really need 2008 (?). Thanks, Ray At 10:13 PM 6/13/2011, Roger Upole wrote: Compiling with VC 2008 Express is going to be a problem. The fr

Re: [python-win32] py2.7 and multiple DDE servers on Win32, possible?

2011-06-11 Thread RayS
Nice, I'll give it a shot, providing they compile with free VS2008 Express (?) The old page is a tad out of date http://starship.python.net/crew/mhammond/win32/BuildingExtensions.html but it seems this might help http://mattptr.net/2010/07/28/building-python-extensions-in-a-modern-windows-enviro

[python-win32] py2.7 and multiple DDE servers on Win32, possible?

2011-06-10 Thread RayS
Hello I know that the default behavior since 2.? has been only one DDE server allowed. Is it possible to back-hack this restriction? I asked similarly a while back http://mail.python.org/pipermail/python-win32/2010-October/010774.html and Roger replied: "It was done through some low-level hack

Re: [python-win32] Convert RGBA to BGRA using standard library?

2011-05-31 Thread RayS
Something like? >>> a=numpy.array([1,2,3,4,5,6,7,8]) >>> b=a.reshape(2,4).copy() >>> b array([[1, 2, 3, 4],    [5, 6, 7, 8]]) >>> b[:,0]=a.reshape(2,4)[:,2].copy() >>> b[:,2]=a.reshape(2,4)[:,0].copy() >>> b array([[3, 2, 1, 4],    [7, 6, 5, 8]]) See also http://www.mail-archive.com/nump

Re: [python-win32] First post to list, etc.

2011-05-17 Thread RayS
At 06:16 AM 5/17/2011, Jacob Kruger wrote: I’m now (finally) starting to actually try get started with python, etc., and aside from being partly interested in the symbian/phone implementation thereof, I am initially just starting off looking into python apps running on windows systems, but aside

[python-win32] DDE and OLE/COM

2011-01-17 Thread RayS
Does anyone have experience transitioning an old DDE (Python) app to OLE/COM with PyWin32? Pointers or links? Ray Schumacher Programmer/Consultant ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-w

Re: [python-win32] python sockets/proxy

2010-12-16 Thread RayS
d up: http://proxies.xhaus.com/python/ among other things. -- Randy Syring Intelicom Direct: 502-276-0459 Office: 502-212-9913 For the wages of sin is death, but the free gift of God is eternal life in Christ Jesus our Lord (Rom 6:23) On 12/16/2010 02:18 PM, RayS

[python-win32] python sockets/proxy

2010-12-16 Thread RayS
I was playing with some simple code I found for a proxy server, made some mods to trap exceptions it had etc, but still have odd behavior; one that (with Firefox at least) when the browser proxy is set to 127.0.0.1:8080, DNS seems to be cached, or ?. I run the script locally and browse through it

[python-win32] "access violation" debugging advice?

2010-11-06 Thread RayS
I'm accessing a 3rd party ctypes cDLL function and getting WindowsError "access violation at 0x" at seemingly random time intervals; what tips does the group have for debugging? The DLL author is an MS C++ guy and not Python literate. The DLL appears to run without error with his MSVC apps.

Re: [python-win32] How to take a snapshot of a specific control?

2006-12-07 Thread RayS
Check this post: http://mail.python.org/pipermail/python-win32/2003-June/001129.html win32gui.EnumWindows(_MyCallback, windows) for i in windows: if win32gui.IsWindowVisible(i): if win32gui.IsWindowVisible: windowsText.append(i)

Re: [python-win32] screen capture and win32gui.GetDesktopWindow()

2006-12-06 Thread RayS
At 05:02 PM 12/6/2006, Tim Roberts wrote: >Ray Schumacher wrote: > > I've been mulling screen capture code. I tried PIL's > > ImageGrab().grab() (with pymedia) but find PIL's method to be pretty > > slow, ~4grabs per second max with no other processes. > > pymedia is pretty quick once I hand it the

Re: [python-win32] sleep() for less than .001s?

2006-08-04 Thread RayS
At 02:59 AM 8/4/2006, Gabriel Genellina wrote: >I'm not sure if this really works, but you could try: >- Raise your thread/process's priority using SetPriorityClass or >SetThreadPriority. This is to minimize the (unpredictable) delay of sleep() I do launch the module with CreateProcess with RealT

[python-win32] pyHook on Win98; no events

2006-02-15 Thread RayS
To debug pyKeyLogger, I wrote this with pyHook (and compiled with py2exe on Win2K), which prints the ascii codes as expected on Win2K: import pyHook import time import pythoncom def OnKeyboardEvent(event): print event.Ascii def main(): hm = pyHook.HookManager() hm.KeyDown = OnKe

[python-win32] ATT DSP32C to IEEE

2006-01-06 Thread RayS
I'm trying to find an efficient way to convert from DSP32C binary files smmm to IEEE float seee emmm I tried struct and bit-shifting from a C manual example, but it failed. Has someone else coded this in Python? I'll post the early attempt

Re: [python-win32] closing processes

2005-09-10 Thread RayS
I use pv command line version on 9x ME Windows, and call it with os.system etc. http://www.pcworld.com/downloads/file_description/0,fid,6102,00.asp also http://www.beyondlogic.org/solutions/processutil/processutil.htm For newer OSs, use WMI, as in http://mail.python.org/pipermail/python-win32/2003

Re: [python-win32] list/kill processes on Win9x and NT+...

2005-07-12 Thread RayS
Ah, now I just found after searching for "CreateToolhelp32Snapshot" http://sourceforge.net/mailarchive/message.php?msg_id=8291643 Thanks Gabriel, Ray At 07:46 PM 7/12/2005, Gabriel Genellina wrote: >At Tuesday 12/7/2005 14:04, Ray Schumacher wrote: > >>I had looked over the methods to list/kill p

[python-win32] system() fails, win32process succeeds

2005-06-29 Thread RayS
Someone might be interested: I ran across an unexpected process issue this week. We have a converter app that is part of a suite, when it runs it needs to call an external DOS exe briefly (the exe does bit-shifting in a file etc.) I originally used system(), but found that _if_ one other part

Re: [python-win32] filling Windows properties "Summary" tab?

2005-06-29 Thread RayS
Hi Roger, At 11:23 AM 6/28/2005, Roger Upole wrote: >On NTFS 5 (Win2k or later), you can add Summary info to any file, >and it's stored in alternate data streams. However, if you copy the >file to a filesystem that doesn't support alternate data streams, the >properties are lost. I had also fo

Re: [python-win32] dde.pyd always dies after exactly 16378 Requests

2005-05-26 Thread RayS
Hi Mark, I'll try a version calling Excel via DDE as time permits. It's not a show stopper, I just have to be careful. Thanks, Ray At 04:16 PM 5/26/2005, Mark Hammond wrote: I can see no obvious leaks in the dde code.  It is possible the problem is at the "other end" of the conversation?  If it

Re: [python-win32] Re: sleep() fine-control in Python - RDTSC, select() etc.

2005-01-24 Thread RayS
At 11:48 PM 1/24/2005 -0300, Gabriel Genellina wrote: >At 24/1/2005 21:24, you wrote: > >>I have a need for a time.clock() with >0.16 second (16us) accuracy. >>The sleep() (on Python 2.3, Win32, at least) has a .001s limit. Is it >>lower/better on other's platforms? > >Try a waitable timer ><