Blueboy Posted July 24, 2007 Share Posted July 24, 2007 Hi AllI'm trying to get Karafun (karaoke software) to work with Gameex by setting it up as an emulator..Everything is fine except the fact that when a song finishes focus is not returned to Gameex (until you press the back button etc).I would like Karafun to exit as soon as the song finishes and return to the song list..Karafun itself does not support any /exit or /quit commands etc from the command line..I'm not sure it can be done but I just thought I ask just in case !!!!ThanksBlueboy Link to comment Share on other sites More sharing options...
bkenobi Posted July 24, 2007 Share Posted July 24, 2007 GameEx detects when the process (program) it launches no longer exists. When that happens it takes over control again. If you want to exit the program before the program is ready to quit, you can press a predefined exit key which will send a command to the program to quit and take control. The only reason I can think that GameEx doesn't take control back when the song is done is if the process is still in memory for some reason.If you can't get it to work the way you have it, it might be possible to write an AHK or AI script as a wrapper. Basically, the script would launch your program and when it was done, the script would detect that it was done and clean up in whatever way was necessary (kill the process most likely). If a wrapper is needed, nologic might be the best one to talk to since he has written a TON of them. Link to comment Share on other sites More sharing options...
Stu1983 Posted July 24, 2007 Share Posted July 24, 2007 I've made a AHK script for you to try...Extract KaraFunLauncherEXE.zip to your KaraFun directory (default is "C:\Program Files\KaraFun\")Make sure you have KaraFun set to start in fullscreenIn your EmuConfig set the command line to: KaraFunLauncher.exe "[ROMPath]\[RomFile]"Thats it... the script will launch karaFun and your file then wait for the fullscreen display to close before closing KaraFun which should return you back to GameExI haven't tested it from within GameEx because I'm not near my cabinet so let me know how you get onThe uncompiled script is in the KaraFunLauncherSource.zip if you want to see how it's doneStuKaraFunLauncherEXE.zipKaraFunLauncherSource.zip Link to comment Share on other sites More sharing options...
Blueboy Posted July 25, 2007 Author Share Posted July 25, 2007 That worked exactly how I wanted it!!! Just like to say thanks a lot for the script and the advice from both of you.Although I new to Gameex I finding it a great piece of software and the community help here is excellent tooThanks AgainBlueboy Link to comment Share on other sites More sharing options...
Phantom Posted August 5, 2007 Share Posted August 5, 2007 I've made a AHK script for you to try...Extract KaraFunLauncherEXE.zip to your KaraFun directory (default is "C:\Program Files\KaraFun\")Make sure you have KaraFun set to start in fullscreenIn your EmuConfig set the command line to: KaraFunLauncher.exe "[ROMPath]\[RomFile]"Thats it... the script will launch karaFun and your file then wait for the fullscreen display to close before closing KaraFun which should return you back to GameExI haven't tested it from within GameEx because I'm not near my cabinet so let me know how you get onThe uncompiled script is in the KaraFunLauncherSource.zip if you want to see how it's doneStuHi PimpDaddyStu,I've been using the script you made up top for awhile now and it's great. But recently I ran into a problem with KaraFun. I have some songs that come in an MPG movie. And for some reason the script no longer works properly when only the MPG movies come on. I used Autoit3 (used it once or twice but I have NOOO Idea what I'm doing, its more trial and error) to check out your script and edit it but nothing works. I think the problem is that the Window Title for MPG files changes from "KaraFun3" to the actual name of the file being played. Also the "Class" is not "Direct3d" but something that starts with "TKFNViewFrmfilename" Like I said I have no idea how any of this works but those are the differences I found. I tried to edit your script to call on the "Class" but honestly I don't know how to pass on the GameEx parameters to the compiled script. (Like once I have the exe I don't know how to get it to open "[RomPath]\[RomFile]" Anyways if you could point me in the right direction that would be awesome. Hope I gave you a good chuckle with my in depth Non-Knowledge of codingPhantom Link to comment Share on other sites More sharing options...
Stu1983 Posted August 5, 2007 Share Posted August 5, 2007 Hi PimpDaddyStu,I've been using the script you made up top for awhile now and it's great. But recently I ran into a problem with KaraFun. I have some songs that come in an MPG movie. And for some reason the script no longer works properly when only the MPG movies come on. I used Autoit3 (used it once or twice but I have NOOO Idea what I'm doing, its more trial and error) to check out your script and edit it but nothing works. I think the problem is that the Window Title for MPG files changes from "KaraFun3" to the actual name of the file being played. Also the "Class" is not "Direct3d" but something that starts with "TKFNViewFrmfilename" Like I said I have no idea how any of this works but those are the differences I found. I tried to edit your script to call on the "Class" but honestly I don't know how to pass on the GameEx parameters to the compiled script. (Like once I have the exe I don't know how to get it to open "[RomPath]\[RomFile]" Anyways if you could point me in the right direction that would be awesome. Hope I gave you a good chuckle with my in depth Non-Knowledge of codingPhantomI've uploaded a new exe and source which should also support videosStu Link to comment Share on other sites More sharing options...
Stu1983 Posted August 5, 2007 Share Posted August 5, 2007 What microphone are you'se using for KarFun? I set this up in my cab the other day but the mic I'm trying isn't making my voice come through the speakers, if I bag the top of the mic really hard I can here it through the speakers, in windows if I record myself I can just about hear myself but if there was music in the background my voice would be drowned out... it's only a wee cheapo mic a bought I'm just wondering if its likely to be the mic or my sound card... I checked that everything is turned up full but no difference I'm just getting alot of staticStu Link to comment Share on other sites More sharing options...
Phantom Posted August 5, 2007 Share Posted August 5, 2007 What microphone are you'se using for KarFun? I set this up in my cab the other day but the mic I'm trying isn't making my voice come through the speakers, if I bag the top of the mic really hard I can here it through the speakers, in windows if I record myself I can just about hear myself but if there was music in the background my voice would be drowned out... it's only a wee cheapo mic a bought I'm just wondering if its likely to be the mic or my sound card... I checked that everything is turned up full but no difference I'm just getting alot of staticStuThanks its working great. The little control panel comes up in front of the screen but its nothing one mouse click doesn't fix.As for the Mic's I actually have 2 mics hooked up to a splitter. They're real karaoke mics. But when I first hooked them up I also noticed that the volume was was too low. In my windows audio mixer I actually have a Mic Boost check box that seems to have fixed it, but not every soundcard has that. I tried other mics and some were better then others so I would try out a few if you can. Thanks again for the file. Link to comment Share on other sites More sharing options...
Stu1983 Posted August 5, 2007 Share Posted August 5, 2007 The little control panel comes up in front of the screen but its nothing one mouse click doesn't fix.Give the new version a try, it should hide the panel after 2 secondsYeah I had tried the boost mode but all it done was boost the static I'll try and get my hands on a new microphone and see how it goesStu Link to comment Share on other sites More sharing options...
Phantom Posted November 30, 2007 Share Posted November 30, 2007 Give the new version a try, it should hide the panel after 2 secondsYeah I had tried the boost mode but all it done was boost the static I'll try and get my hands on a new microphone and see how it goesStuHey again,I've been using the script Stu made and its been perfect. I just redid my controls and I need to remap some buttons for certain emulators. I'm using Autohotkey and so far so good. I just have a question sice I'm new to the scripting. How would I add lctrl::rdown::xup::gspace::5to the Karafunlauncher script. I've tried placing it in different places in the script and it does what its supposed too, except for exiting. (I know i'm not doing it right by just randomly throwing it in)Could someone let me know what I need to do.Thanks Link to comment Share on other sites More sharing options...
popcorrin Posted March 3, 2008 Share Posted March 3, 2008 I tried the script and it isn't working. It will launch karafun and the song just fine but when karafun exits from full screen the script does not close karafun. I am using the latest version of karafun. Link to comment Share on other sites More sharing options...
popcorrin Posted March 3, 2008 Share Posted March 3, 2008 I had another question. If a person exits back to gameex before the song is done will this cause the script to hang and create problems when you try to launch another song? Link to comment Share on other sites More sharing options...
popcorrin Posted March 4, 2008 Share Posted March 4, 2008 I was going to try an older version of karafun to see if it would work but previous versions aren't offered for download. Does anyone have an older version I could try?Thanks Link to comment Share on other sites More sharing options...
popcorrin Posted March 5, 2008 Share Posted March 5, 2008 I tried looking at the AHK source to see what was going on but I have no experience with AHK and couldn't make much out of it. Any chance one of the resident AHK experts could take a look at it.I have been trying to get a working Karaoke set up with GameEx for awhile now and I haven't had any luck. I hate to keep asking for help but I have tried extensively on my own and I can't figure it out.Thanks Link to comment Share on other sites More sharing options...
Brian Hoffman Posted March 5, 2008 Share Posted March 5, 2008 I tried looking at the AHK source to see what was going on but I have no experience with AHK and couldn't make much out of it. Any chance one of the resident AHK experts could take a look at it.I have been trying to get a working Karaoke set up with GameEx for awhile now and I haven't had any luck. I hate to keep asking for help but I have tried extensively on my own and I can't figure it out.ThanksBy the end of the week I should be able to get it and take a looksey. But I cannot guarntee anything Link to comment Share on other sites More sharing options...
popcorrin Posted March 5, 2008 Share Posted March 5, 2008 By the end of the week I should be able to get it and take a looksey. But I cannot guarntee anything Thanks Hoffman. I truly appreciate it. Link to comment Share on other sites More sharing options...
Brian Hoffman Posted March 6, 2008 Share Posted March 6, 2008 It works fine for me without a loader. As pimpdaddystu said make it launch fullscreen. Ill attach a pic and my working config.I grabbed the latest version from here: http://www.karafun.com/down/karafun_setup.exeI installed it to c:\karafunRun the program and goto options(see attached pic).Here is the config for gameex. I just used the sample songs that came with the install so if you have many diffrent files types you will want to edit the rom filter. Now gameex supports karaoke so I must admit I feel dirty doing this.. so before anyone asks (no I will not create a config in gameex to launch maximus arcade) with out further delay.[Emulator_28]Enabled=TrueSTARTPAGENAME=KarafunTITLETEXT=KarafunStartPageLogo=ROMFilter=RomPath=C:\KaraFun\SongsSnapPath=TitlePath=BoxPath=CartPath=ManualPath=ControlPanelPath=InstructionsPath=WorkingPath=C:\KaraFun\MapKeys=TrueWaitBeforeKeys=SendKeys=ReplaceDash=ReplaceUnder=Capitals=RemoveBrackets=ShowDesktop=FalseDebug=FalseMAPFile=AlsoLaunch=Command=KaraFun.exe "[rompath]/[romfile]"OLDatZip=LaunchBefore=LaunchAfter=configFile=ExcludedFiles=CustomBackground=PlayMusic=DontShowInfo=PlaySelectionMusic=SelectionMusicFolder=PCGame=DATABASE=GamesIn7Zips=PlayInScreenSaver=TrueShowMostPlayed=RandomMostPlayed=CDCheck=CDCheckFile=[GENERAL]DumbyValue= Link to comment Share on other sites More sharing options...
popcorrin Posted March 6, 2008 Share Posted March 6, 2008 It works fine for me without a loader. As pimpdaddystu said make it launch fullscreen. Ill attach a pic and my working config.I grabbed the latest version from here: http://www.karafun.com/down/karafun_setup.exeI installed it to c:\karafunRun the program and goto options(see attached pic).Here is the config for gameex. I just used the sample songs that came with the install so if you have many diffrent files types you will want to edit the rom filter. Now gameex supports karaoke so I must admit I feel dirty doing this.. so before anyone asks (no I will not create a config in gameex to launch maximus arcade) with out further delay.[Emulator_28]Enabled=TrueSTARTPAGENAME=KarafunTITLETEXT=KarafunStartPageLogo=ROMFilter=RomPath=C:\KaraFun\SongsSnapPath=TitlePath=BoxPath=CartPath=ManualPath=ControlPanelPath=InstructionsPath=WorkingPath=C:\KaraFun\MapKeys=TrueWaitBeforeKeys=SendKeys=ReplaceDash=ReplaceUnder=Capitals=RemoveBrackets=ShowDesktop=FalseDebug=FalseMAPFile=AlsoLaunch=Command=KaraFun.exe "[rompath]/[romfile]"OLDatZip=LaunchBefore=LaunchAfter=configFile=ExcludedFiles=CustomBackground=PlayMusic=DontShowInfo=PlaySelectionMusic=SelectionMusicFolder=PCGame=DATABASE=GamesIn7Zips=PlayInScreenSaver=TrueShowMostPlayed=RandomMostPlayed=CDCheck=CDCheckFile=[GENERAL]DumbyValue=When the song is done it automatically exits back to gameex? Link to comment Share on other sites More sharing options...
Brian Hoffman Posted March 6, 2008 Share Posted March 6, 2008 When the song is done it automatically exits back to gameex?No when karafun is closed it goes back to gameex. You can goino advanced controls and setup a key or key sequence to close the emu.Perhaps I didnt understand what ezactly you were after. ill take another look. Link to comment Share on other sites More sharing options...
Brian Hoffman Posted March 7, 2008 Share Posted March 7, 2008 When the song is done it automatically exits back to gameex?Ok I took another look at the launcher. Since gameex is using the launcher as its process. Gameex is waiting for the loader to be exited before gameex comes back into focus. The loader exits itself when the video isnt playing which is bringing gameex back into focus but never closes the karafun process.I edited the laucher to close karafun also. Please unzip the attached archive and place in your karafun folder.Note: Run the pskill.exe to accept the EULA berfore editing your gameex config.Make your command in gameex look like.command= KaraFunLauncher2.exe "[rompath]/[romfile]"Let me know how it works for you.. It seems to work fine here. Also be sure to do the above steps in my previous post.KaraFunloader.zip Link to comment Share on other sites More sharing options...
popcorrin Posted March 8, 2008 Share Posted March 8, 2008 That did the trick. It works great! Thanks Brian. Link to comment Share on other sites More sharing options...
Brian Hoffman Posted March 8, 2008 Share Posted March 8, 2008 That did the trick. It works great! Thanks Brian.Your welcome.. But the real credit goes to pimpdaddystu 3 cheers for stu... hip hip horray...hip hip horray....hip hip horray Link to comment Share on other sites More sharing options...
popcorrin Posted March 8, 2008 Share Posted March 8, 2008 (edited) Your welcome.. But the real credit goes to pimpdaddystu 3 cheers for stu... hip hip horray...hip hip horray....hip hip horrayYes, I didn't mean to leave Stu out. Thanks Stu and always thanks to Tom for a great frontend. Edited September 17, 2012 by Draco1962 This thread is now closed. If the problem re-occurs, please start a new thread. Link to comment Share on other sites More sharing options...
Recommended Posts