Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running a Windows command line after switching profile #41

Open
stevienc opened this issue Dec 28, 2020 · 0 comments
Open

Running a Windows command line after switching profile #41

stevienc opened this issue Dec 28, 2020 · 0 comments
Assignees

Comments

@stevienc
Copy link

stevienc commented Dec 28, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants