Jump to content
LaunchBox Community Forums

Dreygor

Members
  • Posts

    3
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Dreygor's Achievements

1-Bit Wonder

1-Bit Wonder (1/7)

0

Reputation

  1. ...and back to square one. The TIMEOUT I had to add apearantly broke the taskkill command and so when the timer ran out it was going ahead and killing the game.exe . I guess the real fix would be on the game tab, in Launchbox, if it's a Steam game it might help for it to have a box where the actual exe goes so when the game is exited it knows what to really look for so it can execute the app on game exit.
  2. OK i found a work around of sorts but it definately not a very good solution as I have to create a .bat file for every Windows / Steam game I want to run. In additional applications I add the batch file specific for that game and set it to start prior to the game starting.. EXAMPLE: SoulcaliburVI.bat start VirtualController.exe /load Custom.vcd /run /minimize D:\Steam\steamapps\common\SoulcaliburVI\SoulcaliburVI\Binaries\Win64\SoulcaliburVI.exe TIMEOUT 70 taskkill /IM VirtualController.exe /F What this does is launch VirtualController.exe loading the dual xbox 360 controller profile I made, starts running, then minimizes it. Then next line tells it what to watch for. The timeout 70 gives the game 70 seconds to launch before taskkill starts watching to see if the program is still running or not. This is needed because some games take a while to start up. Without the timeout I kept running into the issue of the scirpt immediately killing VirtualController.exe because SoulcaliburVI.exe had not even started up yet, Then the last line kills VirtualController.exe when SoulcaliburVI.exe stops running using /f (force quit). i am by no means a scripter and this is VERY sloppy, but it was the best solution I could cobble together until someone who knows what they are doing comes up with a better solution. *EDIT* Oh I forgot to mention all the .bat files are residing in the same folder where VirtualController.exe is.
  3. So here is the scenario. I have a control panel with a JPC2 / IPAC control style set up that converts everything into key strokes. it seems to work fine with everything except Steam / Windows games and the Xenia emulator which Work better using an Xbox 360 controller. So the work around I found for this was using the Virtual Controller and Vjoy combination ( https://sourceforge.net/p/vjoy-controller/discussion/general/thread/4855b925cd/?limit=25 ) I used the instructions and managed to get everything bound and working good. I have managed to figure out how to get it to start when the Steam / Windows game starts but the issue I am having is how to get the bat file to kill the process to kick in after I exit from the game. Normally I am able to kill the process using an AHK script command on exit. However for Windows / Steam games I do not appear to have this capability as there is no emulator tied to it. Then I thought I could do it as an App that kicks in after the program exits. That did not seem to work as when I checked the box for execute after application exits it seemed to want to kill it as soon as the program started. So here are the .bat files I am using.. VC_Start.bat.. @echo off CLS start VirtualController.exe /load Custom.vcd /run /minimize CLS Exit VC_KILL.bat... @echo off CLS nircmd.exe killprocess VirtualController.exe CLS Exit As I said I got it to where it will run VC_Start.bat when the game starts but I can not figure out how to get the VC_Kill.bat to kick in on exit. I considered starting it at Windows boot up BUT it creates some other issues. So the main path to follow is starting at game start then killing it on game exit. i would be extremely grateful for any assistance.
×
×
  • Create New...