0

I have a python script which does small automation of starting and stopping Windows service using keyboard shortcuts.

This is the code which does it:

with Listener(on_press=on_press, on_release=on_release) as listener:
    listener.join()

This works fine when I run it manually.

Is it possible to "install" this as a service in Windows 10 and run it on windows start? I mean is there a way to put it in something like exe file and give to someone so he/she can install it on his/her PC and be able to use these shortcuts?

Red
  • 26,798
  • 7
  • 36
  • 58
harunB10
  • 4,823
  • 15
  • 63
  • 107

1 Answers1

0

You can use a module like auto-py-to-exe (https://pypi.org/project/auto-py-to-exe/)

It works really well and you can make a standalone .exe with it.

Lukas Neumann
  • 656
  • 5
  • 18