jfp Posted February 16, 2017 Posted February 16, 2017 Just a copy and paste from my RL thread. This allows you to suspend processes when launching a game and resume when you exit. Download pssuspend.exe 1 place pssuspend in apps folder and run it once 2 finally edit your userfunction.ahk (in lib folder rocketlauncher) I used mpc.exe (media player classic) there was a problem with linking to program files(86)\ so i moved it ; This function gets ran after the module thread ends and before RL exits PostExit() { ; Run, C:\hyperspin\MPC-HC64\pssuspend.exe -r mpc.exe } 5; ; Use this function to define any code you want to run in every module on start StartUserFeatures() { ; Run, C:\hyperspin\MPC-HC64\pssuspend.exe mpc.exe } used media player classic klite edition in start up programs(HyperHQ) with these param C:\hyperspin\music\hyperspin.m3u /nofocus /minimized works like a charm also i set it to hidden Update Refer to red text below
demonseed Posted February 17, 2017 Posted February 17, 2017 Ok sounds great but the how to is a bit over my head ) do u have a dumbed down version of the instructions? I specifically looking to play random mp3 during wheels.
jfp Posted February 17, 2017 Author Posted February 17, 2017 as dumbed down as i could get it start by downloading pssuspend then media player classic put both of them in you hyperspin folder for simplicity and rename media player classic to mpc.exe then create a playlist with media player classic and save it in your hyperspin folder next open hyperHQ go to MAINSETTINGS/STARTUP/Exit and then select mpc.exe as a startup program. in Params add C:\hyperspin\playlist.WHATEVER /nofocus /minimized go into your rocketlauncher userfunction folder mine is in C:\Rocketlauncher\Lib\Classes\UserFunction\ there you will find the userfunction.ahk edit it (i use notepad++) it should look like this if mpc.exe is in hyperspin folder in c:\ Quote ; Use this function to define any code you want to run in every module on start StartUserFeatures() { ; Run, C:\hyperspin\pssuspend.exe mpc.exe } Quote ; This function gets ran after the module thread ends and before RL exits PostExit() { ; Run, C:\hyperspin\pssuspend.exe -r mpc.exe } There you are done oh and Make sure hyperspin is run as admin
demonseed Posted February 18, 2017 Posted February 18, 2017 Hey Ok I am following the steps however in HQ I already have a startup exe in the box for startup. I can not see how to add more?
jfp Posted February 18, 2017 Author Posted February 18, 2017 On 2017/02/18 at 5:01 AM, demonseed said: Hey Ok I am following the steps however in HQ I already have a startup exe in the box for startup. I can not see how to add more? lucky enough i just did this here is a few bat files just edit them and put then in startup and exit "Userfunction.ahk is a few posts down" startup.bat exit.bat
jfp Posted February 18, 2017 Author Posted February 18, 2017 Unfortunately pssuspend.exe ignores "Hide" param in autohotkey so no dice i can't hide the bloody windows from appearing for a split second after exiting a game Maybe someone can implement this through WinHide function or rocket launchers suspend function
jfp Posted February 18, 2017 Author Posted February 18, 2017 by using chp.exe i was able to hide the process http://www.commandline.co.uk/chp/
demonseed Posted February 19, 2017 Posted February 19, 2017 I appreciate all the help but seems too much effort for me. It should be something that is written into hs and be easy to setup.
jfp Posted February 19, 2017 Author Posted February 19, 2017 Ah just learned a bit about autohotkey now you can just set up your favorite music player to start with hyperspin like mpc above ( has to autoplay with your playlist) then copy this script over to your rocketlauncher folder. ps.. it simulates a play/pause button your music player has to support this This Doesn't require pssuspend.exe or chp.exe just choose one below Userfunction.ahk music main menu and pause .zip just music in main menu.zip
demonseed Posted February 21, 2017 Posted February 21, 2017 Hey I am not understanding this… I tried to add it to HyperHQ startup but I already have the start up script there? Can I add multiples?
jfp Posted February 21, 2017 Author Posted February 21, 2017 Just add it to the bat file........ sigh if you give me the location of your mpc.exe and playlist and the "hyperspin start up script.exe" ill do it for you.
demonseed Posted February 21, 2017 Posted February 21, 2017 H:/Hyperspin/mpc.exe H:/Hyperspin/mix/playlist Just what lines do I add?
jfp Posted February 22, 2017 Author Posted February 22, 2017 what is the extension of the playlist? playlist.M3u?
Recommended Posts
Archived
This topic is now archived and is closed to further replies.