terrymacdonald / DisplayMagician

DisplayMagician is an open source tool for automatically configuring your displays and sound for a game or application from a single Windows Shortcut.
https://displaymagician.littlebitbig.com
GNU General Public License v3.0
443 stars 18 forks source link

Add posibility to turn off applications when profile is loading #304

Closed fifowole closed 6 months ago

fifowole commented 6 months ago

- Describe the solution you'd like

Would be great to have possibility to select applications to be turned off when profile is loading. It could be under "Configure Game Shortcut" as part of "Choose what happens before", where you could select between "Start this program" and "End this program" For example when I'm starting iRacing, I don't need Steam, Epic, Dropbox and MS OneDrive and Teams to run..

terrymacdonald commented 6 months ago

Hi @fifowole,

You can do that already using the existing mechanisms. Simply add the 'taskkill' into the 'Start this program' field, and add '/im

.exe' to the 'Pass arguments to program' field. You also need to untick the 'Close started program when finished' checkbox. I've tested it myself. Here is an example that kills notepad.exe when you start your game. Just change your exe name to the program you want to stop. e.g. '/im msteams.exe' [image: image.png] I'll have a little think about if I could add this without complicating things too much for users. It might be a difficult thing to add and still be simple to use. Thanks *Terry* > > Message ID: > ***@***.*** > com> >
fifowole commented 6 months ago

Hi Terry, awesome ! Didn't come on my mind to use it this way. Thank you for info and keep up the good work ;)

fifowole commented 6 months ago

Solved by using "taskkill /im appname.exe" command