Dogway Posted April 10, 2014 Posted April 10, 2014 I was getting all sorts of issues and I was already pulling my hair out of desperation, I thought it was xpadder or my Windows7 Orb Changer or something stealing focus, but now I think it's most likely an AHK issue. Because HyperSpin lacks Joystick support I decided to create an AHK script that loads an xpadder when HyperSpin starts. I was using an AHK scipt to start with, for using my HTPC only with the pad (like a mouse), so now that I got into it, I decided to make it full fledged. In the HTPC I use also Steam and XBMC, so those don't need xpadder, and I added an xpadder profile when viewing videos with MPC-HC. There are more things, like "start" activating the xpadder automation, or start+RB launching the virtual keyboard, I think the script is well coded but the real issue is that when using this script in HyperSpin, I get many conflicts with whatever AHK module HyperLaunch activates, especially noticeable with Desmume and SSF. If you don't mind help me make the script compatible with HyperSpin, maybe a make wait call or something to execute them in order... I don't know. I think it should go like this but not sure: if ProcessExists(HyperSVar) { if (the other AHK still active) {Wait} { if ProcessExists(HyperLVar) || ProcessExists(RetroVar) || ProcessExists(MameVar) Here my full script. Thanks a lot.
ghutch92 Posted April 10, 2014 Posted April 10, 2014 I don't know how you feel about this, but I would use the HyperLaunch keymapper feature. The reason being it should make the code a little easier. That way you will only need to load the hyperspin profile when the hyperspin.exe process first starts and unload it when the hyperspin.exe process closes. It may interest you that hyperspin has an option in hyperhq to run a program when hyperspin starts and when hyperspin closes. How to Install HyperSpin and more RocketLauncher HyperSpin Startup Script
Dogway Posted April 10, 2014 Author Posted April 10, 2014 I know I was going to get a reply of that kind (do everything within HyperLaunch) the problem is that my scope goes a bit beyond that because the explained reasons. I also find it good practice. Not being able to run AHK scripts other than HyperLaunch's can be seen as a bug (?) probably (?). load the hyperspin profile when the hyperspin.exe process first starts and unload it when the hyperspin.exe process closes If you inspect my script, it already does that.
ghutch92 Posted April 10, 2014 Posted April 10, 2014 I've never had issues running an ahk script while HyperLaunch is running. In fact I have 1 that runs all the time and another that continuously is on when the hyperspin.exe is running. I'm not saying do everything with HL just the part when you are using hyperspin. What kind of conflict? How to Install HyperSpin and more RocketLauncher HyperSpin Startup Script
Dogway Posted April 10, 2014 Author Posted April 10, 2014 Ok, I'm gonna try, how do you say I can control HS with joystick? The HyperHQ check is not supported anymore I had on HyperLaunch.ini: Exit_Emulator_Key=~Esc || Joy10 instead of: Exit_Emulator_Key=~Esc || ~Joy10 Not sure if that was the trigger. Will keep testing
ghutch92 Posted April 11, 2014 Posted April 11, 2014 in the startup program you can do something as simple as Startup Program: C:\path to xpadder here\xpadder.exe Parameters: "C:\path to profile here\hyperspin.xpadderprofile" /M Exit Program: C:\path to xpadder here\xpadder.exe Parameters: /C and then let HyperLaunch handle xpadder when you are playing games through hyperspin. I personally use something more complex than simply launching xpadder for my startup program (I've shared my startup script in the 3rd party section). You can set the startup and exit programs in HyperHQ. How to Install HyperSpin and more RocketLauncher HyperSpin Startup Script
Dogway Posted April 11, 2014 Author Posted April 11, 2014 I can try to use that workaround if the "fix" I did above doesn't solve the issue I was having, I tested numerous times, and it seems fixed, but who knows, it's nice to have a plan b. What file does HyperHQ edits for the startup program? I also use a complex script (if you check the mediafire link in the OP).
Recommended Posts
Archived
This topic is now archived and is closed to further replies.