Jump to content

All my products and services are free. All my costs are met by donations I receive from my users. If you enjoy using any of my products, please donate to support me. My bare hosting costs are currently not met so please consider becoming a contibuting member by either clicking this text or the Patreon link on the right.

Patreon

Recommended Posts

Posted
I also had this problem. When you launch xpadder and a pc game from the same batchfile, the batchfile stops after executing the first line of code which launches xpadder.

If you run xpadder separately first, and then run a batchfile which launches an xpadderprofile together with the PC game, it will start normally.

I solved it by launching xpadder on gameex startup (advanced configuration -> Tweaks/Performance -> Launch on startup don't wait -> enter the following entry

C:\Emulation\Xpadder\xpadder.exe

Then you can launch PC games from a batch file, in which the first line of code launches the xpadder profile, and the second line runs the PC game .lnk.

Good luck,

Arjen

Oh and when i have xpadder launch on gamex start up then xpadder loads up but game ex wont untill i close xpadder...

Posted

Ok so i found this awsome command line processor killer http://www.beyondlogic.org/solutions/proce...processutil.htm . I made a .bat file that kills Xpadder. So now if i can get this to work after i exit my pc game so it will kill xpadder and send me back to gamex but.... i made a shortcut and put the path to it in the launch after and it doesnt work! grrrr. The batch file works if i launch it outside of game ex with xpadder open. it kills it.. im almost there!

Posted

Ok im done flooding the fourms with this post lol sry :) So i got a way to get around my problem thanks to everyone! Brain's way of launching it works best for me. I have it set up so that it just sees all my links to my games and i can select and play one and then it loads a bat file which loads xpadder. When i exit my pc game it doesnt close xpadder but at least it sends me back to game ex. From there if im done playing pc games , I have another link in there for my kill.bat which kills xpadder! Then everything is back to normal yay! So im good to go for now thanks to everyone that helped!

Posted

Man you guys make things way too complicated. Its best to make a script using autoit or autohotkey and perform all your actions. Then after exiting your pc game then have it close all other processes. That way you only have one executable and it will give focus to GameEx upon exit and you won't be running into all these problems.

Posted

Yeah, maybe, but not all of us know autoit. (But I downloaded it right away, and I am trying to learn myself some scripting after your remark, wish me luck...)

Arjen

Posted
Yeah, maybe, but not all of us know autoit. (But I downloaded it right away, and I am trying to learn myself some scripting after your remark, wish me luck...)

Arjen

I didn't know it either and now I can script pretty much anything. All it takes is some looking into. ;)

You don't need luck. You'll be alright. :P

Posted

Hey man, this autoit stuff is really great, it takes me back to the days of programming little tools with MSX-basic. I was really missing doing some programming in windows.

Thanks fRequEnCy, for bringing this to my attention :lol:

Cheers,

Arjen

Posted

Here is a loader I wrote up the other day

It launches xpadder, hides the mouse and launches the game.. Waits for the game to end then closes xpadder, unhides the mouse

Using autohotkey

Run, C:\Program Files\nomousy1.5\nomousy.exe /h
Run, C:\roms\PC\maelstrom-3.0.6\maelstrom.exe -fullscreen
Run, C:\Program Files\Xpadder\Xpadder.exe dcp2 dcp1 p1 p2
Run, remap.exe
Process, WaitClose, Maelstrom.exe
Run, C:\Program Files\nomousy1.5\nomousy.exe
Run, PSkill.exe remap.exe
Run, PSkill.exe xpadder.exe
ExitApp

Posted

Damn Brian, you literally beat me to posting your solution by a minute. ;)

Jester, sorry not to suggest this right away, I learned it myself from Brian. AHK is really easy to use, very similar to batch files with a little different syntax. Once installed you're just creating text docs with a .ahk extension. Below is more of a step-by-step overview.

1. Download and install AHK

2. Create a new text doc, copy paste the code above into this text doc as a starting point

3. Save text doc. You can save it wherever and call it whatever but the ext needs to be .ahk

5. Note: ahk text docs can be made into .exe's by right clicking and selecting 'compile'

6. Download pskill it's easiest to keep it in the folder with the ahk file you just created. Your app killer may work as well

7. The run commands in the ahk script above launch apps. Should be pretty self explanatory, if the app isn't in the same folder as the script you need a full path.

8. The only run command that should give you pause is the remap.exe. This is just another ahk script turned into an exe file that remaps the Escape key to be a Q, needed for this particular game. An ahk file was created with this text Escape::Q saved and then turned into an exe. The syntax for remapping keys is KEYA::KEYB and it has to be separate from the above or it will halt the script

9. Process, WaitClose should be pretty self explanatory, it's waiting for maelstrom to quit (no path needed)

10. When it quits we're killing off xpadder, nomousy or any app you want by running pskill and then ExitApp

I call the above script by making a shortcut of it in my roms/pc folder and then filter in GameEx by .lnk.

It's much less difficult than the above makes it out to be. Should be enough for you to reverse engineer anyway. Good luck. :)

Guest
This topic is now closed to further replies.
×
×
  • Create New...