Re: [python-win32] Image capture

2005-01-05 Thread Tim Roberts
On Wed, 5 Jan 2005 10:28:22 +0100, "Catalin Lungu" <[EMAIL PROTECTED]> wrote: Can anybody help me to implement the following VB code in Python. Thanks in advance. Do you have the rest of the application converted? This is just one small part of a GUI-based application. This one subroutine i

Re: [python-win32] Image capture

2005-01-05 Thread Jens B. Jorgensen
A little RTFM would go a long way here. The win32 extensions tend to translate the win32 api fairly directly into python. The SendMessage function can be found in the win32api module. Most constants are found in the win32con module. So, your python code should look something like: import win32a

[python-win32] Image capture

2005-01-05 Thread Catalin Lungu
Hi,   Can anybody help me to implement the following VB code in Python. Thanks in advance.   Private Declare Function SendMessage Lib "user32.dll" Alias _   "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, _   ByVal wParam As Long, ByVal lParam As Long) As LongPrivate Const WM_PAINT =