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?

Ann Zen
  • 25,080
  • 7
  • 31
  • 51
harunB10
  • 4,155
  • 13
  • 52
  • 94

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
  • 629
  • 5
  • 16