[pywin32-bugs] problem on conversor
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Patricio S. <kp...@ho...> - 2009-08-28 22:06:49
|
Hello to all, I am trying to use an activex component that has a property named Display: """ _prop_map_get_ = { "AcquisitionMode": (1610743818, 2, (3, 0), (), "AcquisitionMode", None), "Display": (1610743816, 2, (3, 0), (), "Display", None), "TimeOut": (1610743820, 2, (3, 0), (), "TimeOut", None), } _prop_map_put_ = { "AcquisitionMode": ((1610743818, LCID, 4, 0),()), "Display": ((1610743816, LCID, 4, 0),()), "TimeOut": ((1610743820, LCID, 4, 0),()), } """ This works: print l__acq.Display However this doesnt: l__acq.Display = 135780 # 135780 is the handle to a window on my screen and I get this: *** com_error: (-2147467262, 'Interfaz no compatible', None, None) It seems that pywin is correctly converting from 1610743816 to an int, but is not doing the other way (from int to win handle variant). Is there a way to create a Variable of that type 1610743816 somehow ? Thank you ! _________________________________________________________________ With Windows Live, you can organize, edit, and share your photos. http://www.microsoft.com/middleeast/windows/windowslive/products/photo-gallery-edit.aspx |