3
Contributors
10
Replies
11
Views
8 Years
Discussion Span
Last Post by scru
0

Yes, I've already seen that, but there's no such thing... I hear it's a windows vista api called dwm. Is there a way to access it from python?

0

Yes there is a way. Use python's ctypes

Maybe someone else can give you an example of how to use it. Or maybe you can just look at the documentation (it's not hard).

0

but how do I access that dll, I mean where is it placed. it should be dwm.dll or something (desktop window manager)

0

You don't need to know where the dll is placed (you don't redistribute it). In your python code, you just do:

import ctypes.windll.dwmapi as dwm
0

There is no such module

Traceback (most recent call last):
File "<pyshell#1>", line 1, in <module>
import ctypes.windll.dwmapi as dwm
ImportError: No module named windll.dwmapi

0

There is no such module

Traceback (most recent call last):
File "<pyshell#1>", line 1, in <module>
import ctypes.windll.dwmapi as dwm
ImportError: No module named windll.dwmapi

Yeah that's my bad:

import ctypes

dwm = ctypes.windll.dwmapi
0

I don't know :-/. I don't even really know what exactly you're trying to do except that it involves dwmapi.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.