Widescreen Gaming Forum

[-noun] Web community dedicated to ensuring PC games run properly on your tablet, netbook, personal computer, HDTV and multi-monitor gaming rig.
It is currently 07 Jul 2024, 11:51

All times are UTC [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: 29 Aug 2010, 11:35 
Offline

Joined: 11 Dec 2009, 03:31
Posts: 48
I want to be able to run and exit certain programs when I change display profiles. Is this possible?
I see, in the profile manager, you can also run a certain program or shortcut. So that solves the run problem, but how do i make a file that will exit a program? I'm guessing something to do with a .bat file... but i have no clue where to start with that.

I basically want to be able to run desktop enhancement progs like rainmeter, objectdock, and johns background switcher, but I want these programs to close when I'm in my eyefinity display profile. The reason being, some games don't play nice with these programs leading to crashes, errors, or corruption. Its not fun :/

TL;DR
How do you make a shortcut close a program?

Edit:
So i did like 5 mins of searching google and found my answer... derp ><
In case anyone wants to know, you can create a .bat file with this script:
Code:
@echo off
   TSKILL BackgroundSwitcher /A
   tskill rainmeter /a
   tskill gmailnotifierplus /a
   

This will kill all open instances of those programs.
To open them use something like this:
Code:
@echo off
   @echo off
   start &quot;&quot; &quot;C:Program Files (x86)johnsadventures.comJohn's Background SwitcherBackgroundSwitcher.exe&quot;
   start &quot;&quot; &quot;C:Program FilesRainmeterRainmeter.exe&quot;
   start &quot;&quot; &quot;C:UsersAdamDocumentsProgramsgmailnotifierplus.exe&quot;
   

You put these scripts into something like notepad, save as .bat, and point the profile manager to launch this at switch.


Top
 Profile  
 


Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  




Powered by phpBB® Forum Software © phpBB Group