Skip to content
This repository was archived by the owner on Apr 23, 2025. It is now read-only.
This repository was archived by the owner on Apr 23, 2025. It is now read-only.

Running a Windows command line after switching profile #41

@stevienc

Description

@stevienc

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

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions