Re: [python-win32] Dereferencing lParam pointer

2010-02-24 Thread Mark Hammond
On 25/02/2010 10:01 AM, Tim Roberts wrote: but I am not sure. Is there a way to get the array/list? You will have to use a package like ctypes to do that. Something like this: lst = ctypes.cast(lParam, ctypes.POINTER(ctypes.c_int)) print lst[0] print lst[1] Or use something like win32gui.Py

Re: [python-win32] Dereferencing lParam pointer

2010-02-24 Thread Tim Roberts
Ulrich Mierendorff wrote: > > I am doing some win32 programming with python and want to modify a > statusbar of a window. In my code I use > win32gui.SetWindowLong(statusbar_window, win32con.GWL_WNDPROC, > mystatusbarproc) > to set a custom window procedure. > > In "def mystatusbarproc(window,

[python-win32] Dereferencing lParam pointer

2010-02-24 Thread Ulrich Mierendorff
Hi, I am doing some win32 programming with python and want to modify a statusbar of a window. In my code I use win32gui.SetWindowLong(statusbar_window, win32con.GWL_WNDPROC, mystatusbarproc) to set a custom window procedure. In "def mystatusbarproc(window, message, wParam, lParam)" I wait f

Re: [python-win32] wmi error

2010-02-24 Thread Tim Roberts
Christophe Deze wrote: > > i'm looking for information about this error > > Traceback (most recent call last): > File "Frame1.pyo", line 235, in run > File "wmi.pyo", line 1267, in connect > File "wmi.pyo", line 241, in handle_com_error > x_wmi: produite.", (0, u'SWbemLocator', u'Non trouv\xe

[python-win32] wmi error

2010-02-24 Thread Christophe Deze
Hello i'm looking for information about this error Traceback (most recent call last): File "Frame1.pyo", line 235, in run File "wmi.pyo", line 1267, in connect File "wmi.pyo", line 241, in handle_com_error x_wmi: it run from windows XP u'Non trouv\xe9 ' means object not found I think