Re: [python-win32] Problem with win32gui and WM_CREATE

2012-01-13 Thread pierre baral
ARGH, too bad :) Does anyone know a message which is send only one time during the life of an application, just after the createwindow call? ;-p 2012/1/13 Amaury Forgeot d'Arc > Hi, > > 2012/1/13 pierre baral > >> and on my Windows, the message WM_CREATE is never sent.

[python-win32] Problem with win32gui and WM_CREATE

2012-01-13 Thread pierre baral
I have tried a lot of code found on the net such as the following: http://pastebin.com/raw.php?i=a19kZMeQ or also the following code: *import win32gui, win32con* *def wndProc(hwnd, msg, wParam, lParam): if msg == win32con.WM_CREATE: print 'message: WM_CREATE' if msg == win32con.WM_SIZE:

Re: [python-win32] WMI module - Properties Order

2012-01-04 Thread pierre baral
Thanks a lot Tim, I also thought about that hack! :) I could also parse the wql to put params in a list. (It would also have be nice to have a list of not ordered properties (after the wql parsing). Something like props = [getattr(obj, p) for p in obj.notordered_properties] :-P) c = wmi.WMI(

Re: [python-win32] WMI module - Properties Order

2012-01-04 Thread pierre baral
Hello Tim, In fact, I would like to generate a code that is generic... without knowing the name of the properties (so without calling obj.property) ! Check my example: c = wmi.WMI() wql = "Select Name, Caption, Description From Win32_Blabla" objs = c.query(wql) for obj in objs: props = [get

[python-win32] WMI module - Properties Order

2012-01-04 Thread pierre baral
I have a question on the WMI module done by Tim Golden. Maybe I can find help on this mailing list ;-) Let's take a short example to explain what I want: c = wmi.WMI() wql = "Select Name, Description, Caption From Win32_LogicalDisk" logical_disks = c.query(wql) ... instance of Win32_LogicalDisk