Need a program to start and stop sporadically.

anthero

Junior Member
May 1, 2013
18
0
0
My goal is to use xpadder to control windows 7 with an xbox controller. Simple, but I need the program to stop emulating the mouse and keyboard when certain applications run fullscreen like a game that uses the gamepad. I also need xpadder to start again after the game closes. Are there any applications that can manage this? A script maybe? I would post this in PC Gaming but it is a program I need and not exclusively for gaming . Any ideas?
 

sm625

Diamond Member
May 6, 2011
8,172
137
106
You can use taskkill to kill xspadder before calling whatever game.exe you want to run. Place those commands in a batch file and place a shortcut to that batch file wherever your current game.exe shortcut exists. Use start /wait to ensure that the batch file stays running until you exit the game. Then as the last line of the batch file, reinvoke xpadder.

Example:
Code:
taskkill /im xspadder.exe
start /wait "C:\Game Folder\mygamethatusesgamepad.exe"
start xspadder.exe