falahati / HeliosDisplayManagement

An open source display profile management program for Windows with support for NVIDIA Surround
GNU General Public License v2.0
265 stars 26 forks source link

Running a Windows command line after switching profile #41

Open stevienc opened 3 years ago

stevienc commented 3 years ago

First, thank you for the great app.

I would like to suggest perhaps a feature: After switching to a profile created shortcut, run a command line option to some other target/shortcut. Kind of like the "Process Monitoring" function, except just running Windows command line.

For example, When i switch between a 3 monitor surround and a single monitor, I use nircmd to switch sound device as well in Windows via a command: nircmd.exe -setdefaultsounddevice "Headphones" 1

Which would switch my Windows default sound device from Speakers to headphones when i switch monitor profile.

Right now i use a bat file to achieve this:

`@echo off cd "C:\Program Files\Helios Display Management" start HeliosDisplayManagement.exe -a SwitchProfile -p "{796ab1c1-a9f3-4502-a800-88147f3acddb}"

cd "C:\Program Files\nircmd-x64" start nircmd.exe setdefaultsounddevice "Headphones" 1

exit`

regards, Steven