[python-win32] Windows Tablet Accelerometers

2017-03-04 Thread Kurt Eilander
Anybody use python to access built-in accelerometers on windoze? I found this: https://docs.microsoft.com/en-us/uwp/api/Windows.Devices.Sensors.Accelerometer but it appears to be an (COM??) object, so I hate to do battle with that if somebody has already done the leg-work. -Kurt _

[python-win32] win32api handle incompatible with ctypes?

2017-03-04 Thread Kurt Eilander
Hey all, I'm having another problem. I'm wanting to get the size of a dll resource, but... When I do: try: hLib=win32api.GetModuleHandle(fileName) except: hLib=win32api.LoadLibrary(fileName) if hLib==None: raise WindowsError('File not found, '+fileName)

Re: [python-win32] Windows Tablet Accelerometers

2017-03-04 Thread Tim Roberts
On Mar 4, 2017, at 11:33 AM, Kurt Eilander wrote: > > Anybody use python to access built-in accelerometers on windoze? > > I found this: > https://docs.microsoft.com/en-us/uwp/api/Windows.Devices.Sensors.Accelerometer > > but it appears to be an (COM??) object, so I hate to do battle with that

Re: [python-win32] win32api handle incompatible with ctypes?

2017-03-04 Thread eryk sun
On Sun, Mar 5, 2017 at 12:16 AM, Kurt Eilander wrote: > > I'm having another problem. I'm wanting to get the size of a dll resource, > but... > > When I do: > try: > hLib=win32api.GetModuleHandle(fileName) > except: > hLib=win32api.LoadLibrary(fileName) > if hLib==None