Run KVM switch in background and target DDM by monitor model

This commit is contained in:
Lago
2026-03-27 14:49:28 +01:00
parent 8591e22a7b
commit 33e762c182
5 changed files with 164 additions and 21 deletions
+7 -7
View File
@@ -30,8 +30,8 @@ Valid values are:
Examples:
- Tower role with UI port `DP1` -> on Samsung trigger `15`, send `DDM.exe /1:WriteActiveInput DP1`
- Laptop role with UI port `DP2` -> on Samsung trigger `19`, send `DDM.exe /1:WriteActiveInput DP2`
- Tower role with UI port `DP1` -> on Samsung trigger `15`, send `DDM.exe /MNT:AW3423DWF /WriteActiveInput DP1`
- Laptop role with UI port `DP2` -> on Samsung trigger `19`, send `DDM.exe /MNT:AW3423DWF /WriteActiveInput DP2`
Retry behavior:
@@ -92,10 +92,10 @@ shell:startup
3. Create a shortcut in that folder pointing to:
```text
C:\Users\LagoWorkStation\OneDrive\Documentos\BE-terna\Internal - KVM Switch\start_kvm_switch.cmd
C:\Users\LagoWorkStation\OneDrive\Documentos\BE-terna\Internal - KVM Switch\start_kvm_switch_background.vbs
```
This will start the app when you log in. It opens a console window.
This starts the app at logon in the background (no persistent console window).
### Cleaner option: Task Scheduler
@@ -104,13 +104,13 @@ Use Task Scheduler if you want it to start automatically at logon with better co
Program/script:
```text
cmd.exe
wscript.exe
```
Arguments:
```text
/c "C:\Users\LagoWorkStation\OneDrive\Documentos\BE-terna\Internal - KVM Switch\start_kvm_switch.cmd"
"C:\Users\LagoWorkStation\OneDrive\Documentos\BE-terna\Internal - KVM Switch\start_kvm_switch_background.vbs"
```
Set the trigger to `At log on`.
Set the trigger to `At log on`. Optional: enable `Hidden` in task settings.