zachmorris Wrote:I'm using this plugin with XBMC in windows XP
It works great for windowed applications, but I've got an issue where I'm trying to start games (like World of Goo or Crayon Physics Delux) that run in full screen mode.
After I add them to the launcher and try to run the game, XBMC minimizes, but the application never starts. I've tried it with and without the 'Wait' function, but get the same result. Is there something that should be added in the arg to make this work more smoothly?
Thanks!
I have found the perfect work around to this problem, i use autohotkey (
www.autohotkey.com)
its a scripting language.
For every game i want to launch i wrote a launcher script that kills kbmc, runs the game and waits for it to close,
when the game closes it re launches xbmc.
I compile the script into an exe and point the launcher to it
heres the script
Quote:dash = D:\Apps\XBMC\XBMC.exe -p ;this is the path to xbmc
gamepath = "D:\Games\Bcommando\bcr.exe" ;this is the path to your game
gamedir = "D:\Games\Bcommando\" ;this is the path to your games folder
IfWinActive, XBMC Media
{
WinClose
RunWait, %gamepath%,%gamedir%,HIDE,appPID
Run, %dash%
}
best part about autohotkey is you can launch apps from launcher plugin seamlessly, i hid my task bar and have a black desktop, with no shortcuts on it so you dont see windows.
if you've ever owned a modded xbox this achieves the same effect. xbox would kill xbmc before launching a game too.
For extra xbox like behaviour, i also set up the following code in the ahk script to watch for the press of the back button and both triggers.(im using an xbox 360 controller of cource) but with some minor changes this would work with any gamepad what this does is quit the active application. causing the the game to exit, and xbmc magically relaunches.
add the following line to the script above
Quote: ;For 360 Joystick must push LB , BACK & Start within a second of each other in that order
$Joy7::
KeyWait, Joy5, D T1
If Errorlevel
Return
KeyWait, Joy6, D T1
If Errorlevel
Return
if not GetKeyState("Joy5", "P") or not GetKeyState("Joy6", "P")
Return
else
GoSub,killit
return
killit:
WinGetTitle, myTitle, A ;Gets the Title of the active window
if(myTitle and myTitle != "Program Manager")
{
WinGet, active_pid, PID, A
Process, Close, %active_pid%
WinWaitClose, ahk_pid %active_pid% ;closes active window and waits till its closed
} else
Run, %dash%
return
hope that wasnt too complicated. you can copy and paste the script into a text document and call it whateveryouwant.ahk then right click it and choose compile to make an exe change the paths to match your setup of course. i quickly copied and pasted this code so there may be an error but...i hope not