Importing win32api
Posted: Sun Jun 25, 2017 12:00 pm
Hi,
I'm trying to make a game, where one of the characters can break the 4th wall, by turning on and off the Caps Lock.
I'm trying to do this by using the win32api module, to make virtual keypresses. The problem is, I can't import the module.
I downloaded it to python 2.7, and copied the files from
C:\Python27\Lib\site-packages
to
the_question\game\python-packages
Sadly it's not working (even though, other modules do).
ImportError: No module named win32api
It's a possible issue, that this is a library, and also win32api has a .pyd extension not .py.
I tried with copying only win32api.pyd, but I got the same error.
Any idea how to solve it?
I'm trying to make a game, where one of the characters can break the 4th wall, by turning on and off the Caps Lock.
I'm trying to do this by using the win32api module, to make virtual keypresses. The problem is, I can't import the module.
I downloaded it to python 2.7, and copied the files from
C:\Python27\Lib\site-packages
to
the_question\game\python-packages
Sadly it's not working (even though, other modules do).
ImportError: No module named win32api
It's a possible issue, that this is a library, and also win32api has a .pyd extension not .py.
I tried with copying only win32api.pyd, but I got the same error.
Any idea how to solve it?