python3 anaconda installation pyhook3 pythoncom (pywin32)

Why not install pyhook

1.pyhook does not support python3

There are ways to download whl pyhook then pip install python3, can run on 2 network, but because of coding problems led move to contain non-ASCII window title when an error

 

TypeError: MouseSwitch() missing 8 required positional arguments: 'msg', 'x', 'y', 'data', 'time', 'hwnd', and 'window_name'

 

Then out of operation.

 

In summary installation pyhook3, solves the problem

 

First check the version of python, corresponding to the two extended version

Python 3.7,AMD64

 

Installation pyhook3 (anaconda)

1.conda install swig

2.pip install pyhook3

 

Call pyhook3

Note that with import PyHook3 (pyHook3 being given ..)

 

Installation pythoncom

Pycom That pywin32

https://github.com/mhammond/pywin32/releases

Guess you like

Origin www.cnblogs.com/lqerio/p/12096710.html