From: Andrew Lorimer Date: Sat, 22 May 2021 03:59:28 +0000 (+1000) Subject: rewrite readme instructions for starting daemon at boot X-Git-Tag: v0.0.3~8 X-Git-Url: https://git.lorimer.id.au/ppt-control.git/diff_plain/877b536b8d6cced921fa9333dc7fb310fec722db rewrite readme instructions for starting daemon at boot --- diff --git a/README.md b/README.md index 2c3eb4f..d8b8f82 100644 --- a/README.md +++ b/README.md @@ -24,11 +24,12 @@ from a command prompt (note the underscore). There are a few steps to set the pa ### Starting the daemon at bootup -To start the daemon automatically at login, run +There are several ways to start a Python program at login. Here is one method: -`pip show ppt-control` - -and get the location of the package. Create a shortcut to `ppt_control.py` in Explorer and put it in `%AppData%\Microsoft\Windows\Start Menu\Programs\Startup`. +1. Navigate to the directory containing the `pythonw` executable in Explorer (usually in `C:\Program Files\Python36` - run `python -c "import sys, print(sys.executable)"` to check) +2. Right click on `pythonw.exe` and click "Create shortcut" +3. A shortcut will be placed on the desktop. Go to the properties of this shortcut, and in the target field, append ` -m ppt_control` (after the quotes, including an initial space). You can also rename the shortcut if you like. +4. Copy this shortcut into the Startup folder (`%AppData%\Microsoft\Windows\Start Menu\Programs\Startup`). To quickly navigate to this folder, open an Explorer window and type `startup` in the address bar. ### Using the HTTP interface in OBS @@ -40,7 +41,7 @@ Keyboard shortcuts in OBS browser docks only work when the browser dock is focus `pip show ppt-control` -as above. It is a good idea to turn off the keyboard shortcuts in the HTTP interface after loading the OBS hotkey script, otherwise commands will be sent to the daemon twice when the browser dock is focused. +It is a good idea to turn off the keyboard shortcuts in the HTTP interface after loading the OBS hotkey script, otherwise commands will be sent to the daemon twice when the browser dock is focused. ## Configuration