How to launch a program automatically after opening another program

AudioBeast

Honorable
Jan 27, 2014
39
0
10,530
Hopefully the title wasn't confusing.

What I am trying to do is launch a video game controller program such as MotionJoy or Pinnacle Game Profiler once a specific game is started through XBMC or Steam Big Picture. Now that I think about it I don't know if it will work with Steam Big Picture. Anyways, I know there must be a way to trigger a program to open once the game starts and then close it once I exit the game. Is this possible using EventGhost? Or through a batch file in the executable file for the game? Your help is much appreciated!

Thanks
 
You might be able to use the START command in a batch file. It has a /Wait switch that tells the system to wait for it to complete before continuing in the batch file. You would use this switch on your second program.

This won't however shut it down automatically but you may be able to do that if the program accepts a command line parameter to shut itself down.
 

AudioBeast

Honorable
Jan 27, 2014
39
0
10,530
The issue is more about closing MotionJoy as I don't want it to effect the controller buttons. For example, if I exit a game that is only keyboard and mouse (Amnesia) to one that supports controllers (Dishonored), I don't want the key bindings from the previous game to effect the controller in another game.
 

AudioBeast

Honorable
Jan 27, 2014
39
0
10,530
I found a solution to my problem. I messed around with the Pinnacle Game Profiler (as I have only used MotionJoy) and it has the capability to detect when the game is launched and it will only then use its configuration on your selected controller. Once I exit the game it no longer will affect the controllers configuration. So I am able to go back and forth between games that require keyboard and mouse to a Xbox 360 controller.

Thanks anyways everyone for helping me out!