boppreh / mouse

Hook and simulate global mouse events in pure Python
MIT License
900 stars 135 forks source link

Mouse hook callback is not being called while python code running as windows service #98

Open coder-maddy opened 3 years ago

coder-maddy commented 3 years ago

We have a requirement of counting mouse clicking of particular time period .So for that we have developed a windows service using Python. But mouse click callback is not being called while running as service. If we call script directly then it does work.

pynput-poc.txt Attached source file as text file.