[python-win32] Using Solid Edge from Python via COM

2006-12-11 Thread Reinhammar Maria
Hi folks! This is very Solid Edge-oriented but I found some entries on this list during a web-search recently. We wish to use Python as language/environment for creation of automation processes w.r.t. our CAD. So far I have successfully used makepy to create the Python interfaces from the ty

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

2006-12-11 Thread Ray Schumacher
Thanks for the reply, At 08:06 PM 12/10/2006, Mark Hammond wrote: > I'm trying to do a fast desktop capture myself, and having DC/pyDC > confusion. I'm not sure exactly what this means, but I'm guessing you are having trouble with the pythonwin/win32ui GetSafeHdc objects, versus those used by

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

2006-12-11 Thread Mark Hammond
> These lines all execute: > dtwnd = win32gui.GetDesktopWindow() > hdcSrc = win32gui.GetWindowDC(dtwnd) > hdcDestH = win32ui.CreateDCFromHandle(dtwnd) The last line above is a problem - try something like hdcDestH = win32gui.GetDC(dtwnd) > hdcDest = win32gui.CreateCompatibleDC(hdcSrc) > hBitmap =

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

2006-12-11 Thread Ray Schumacher
At 02:53 PM 12/11/2006, Mark Hammond wrote: > These lines all execute: > dtwnd = win32gui.GetDesktopWindow() > hdcSrc = win32gui.GetWindowDC(dtwnd) > hdcDestH = win32ui.CreateDCFromHandle(dtwnd) The last line above is a problem - try something like hdcDestH = win32gui.GetDC(dtwnd) > hdcDes