From 3df595f816be3ed71fd3f5d34759263afdcd8cab Mon Sep 17 00:00:00 2001 From: Maxwell-Calhoun Date: Fri, 14 Jun 2024 04:51:42 -0700 Subject: [PATCH 1/2] adding reoccuring schedule task to run the script at an interval of 5 mins --- install.bat | 3 +++ 1 file changed, 3 insertions(+) diff --git a/install.bat b/install.bat index e1b63cb..5e3c719 100644 --- a/install.bat +++ b/install.bat @@ -64,6 +64,9 @@ del set-audiodg-affinity.bat 2>NUL :: add task scheduler job schtasks /create /sc ONLOGON /tn audiodg-affinity /delay 0000:20 /tr "wscript \"%UserProfile%\set-audiodg-affinity.vbs\"" /rl HIGHEST +:: Creating scheduled task so it is more persistently applying changes as the process is controlled by the Windows Audio service and will stop and restart process as needed +schtasks /create /sc MINUTE /tn audiodg-affinity-recurring /mo 5 /tr "wscript \"%UserProfile%\set-audiodg-affinity.vbs\"" /rl HIGHEST + :: run vbs script once to set the affinity for current session wscript "%UserProfile%\set-audiodg-affinity.vbs" From 524851e3311b9d3c99c7e26658e41d926a61f806 Mon Sep 17 00:00:00 2001 From: Adrian Groh Date: Mon, 17 Jun 2024 17:04:45 +0200 Subject: [PATCH 2/2] Add information about recurring task to README --- README.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 617bef3..31b7d19 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,12 @@ every login and wrote a new script that makes use of that. _Note: If you had v1 of the script installed, it is automatically uninstalled if you install v2._ +## New in v2.5 + +The affinity will now be set periodically in addition to only on login. For more +information, see +[#11](https://github.com/Gobidev/voicemeeter-auto-affinity/pull/11). + ## How to Install To install the script, download the `install.bat` file from the @@ -26,11 +32,12 @@ and run it. That's it! ## How to Uninstall -If you no longer want the audiodg affinity to be set at login, run the following -command from an administrator command prompt: +To remove the Task Scheduler tasks, run the following commands from an +administrator command prompt: ```bat schtasks /delete /f /tn audiodg-affinity +schtasks /delete /f /tn audiodg-affinity-recurring ``` ## The Problem