O
O
Oleg Okhotnikov2020-06-07 09:51:57
Python
Oleg Okhotnikov, 2020-06-07 09:51:57

Track mouse cursor by windows service written in pyhon?

Wrote a script in python. Made it into an exe using pyinstaller. When you run the exe, all the functionality of the script works. I made a service out of exe using nssm. When the service is running, part of the functionality works, but the part tied to tracking movements and mouse clicks does not. I tried to follow the mouse with both ctypes.windll.user32 and pynput.mouse. How to implement the idea?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
none7, 2020-06-07
@gater

Services are not connected to the desktop. And what table should they be connected to? After all, there can be many users on the terminal server, and each has its own mouse pointer.
About Window Stations and Desktops

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question