Using a python script and task scheduler to auto update the Scrcpy.
Here're some of the project's best features:
- Reduces the hassle of manually downloading and updating the repo on your machine
- the script is easy to read so use it for your other favourite repos
-
The default directory where the files will be saved is "C://Tools//Scrcpy".
Remember to change it to your desired directory. -
Create a new task in the task scheduler:
-
In the general tab, Enter the task name.
Tick the checkbox for: "Run Whether user is logged in or not" & "Run with highest priviliges" -
In the trigger tab, add a new trigger: On a schedule
Set the timings as per your choice. -
In the Actions tab, add new action: Start a Program
addpython.exe
to the Program/Script & add "updater_script_path" to Add arguments - In the Conditions tab, tick the checkbox for Start only f following network connection is available. It's to make sure the script doesn't run when there's no internet connectivity.
-
In the general tab, Enter the task name.
- Save the task. Everything's set now so you won't need to auto update the repo.
All the credits goes toward the awesome developers involved in the development of Scrcpy. This is just a script i created in my free time.