Jump to content
LaunchBox Community Forums
smpetty

CXBX Reloaded script needed

Recommended Posts

When running CXBX-Reloaded from LB/BB, I am able to load games (default.xbe), but I need an AHK script that will do the following, after the game is loaded:

Pass keypress F5 to the emulator (starts emulation)

Pass keypress ALT-RETURN to the emulator (goes full screen)

There are no command line arguments that will do the same.  

 

Also, when quitting CXBX-Reloaded, I need an AHK script which will do the following:

Pass keypress F6 to the emulator (stops emulation)

Pass keypress ALT-F4 to the emulator (closes/exits the emulator)

Many thanks in advance!

Share this post


Link to post
Share on other sites

Admittedly I havent updated CXBX Reloaded in a few months but works fine here without any scripts.

Share this post


Link to post
Share on other sites

I’m using the latest development build.  If I run CXBX-R from LB or BB, passing the location of the default.xbe for the game, it will load the game into CXBX-R but it does not run the title.

Share this post


Link to post
Share on other sites

Turn on exclusive fullscreen mode, it auto loads into fullscreen though you have to see a resolution and it stretches the video instead of keeping the 4:3 aspect.

screenshot.88.jpg

Share this post


Link to post
Share on other sites

You can autolaunch an executable bypassing the GUI entirely by using the "/load" command line flag.
It's not officially suported behavior, so you may need to update your scripts for later Cxbx-R versions, but changes to this will be rare. 
 

cxbx.exe /load "path to xbe"

 

  • Thanks 1

Share this post


Link to post
Share on other sites

Many thanks JoeViking245, Lordmonkus, and LukeUsher!

LukeUsher, you’re the guy responsible for CXBX-R, correct?  Amazing to finally see a playable  XBox emulator.  Thank you.

Share this post


Link to post
Share on other sites

I have used the /load command line flag, combined with the “Use exclusive full screen mode” setting, with a video resolution of “Automatic (default)”.  This will sometimes work, but after one or more successes in LB/BB, it stops working.  When it stops working, if I double click a game in LB, there is a small pause where my arrow icon turns to a spinning circle icon, but CXBX never loads and after a few seconds I am back to LB with an arrow icon.  I have to reset the default settings of CXBX and delete the CXBX Reloaded folder in AppData to get everything working again.  The only other setting that I had changed is “Allow Admin Privilege”.  I don’t run CXBX as an administrator, but choosing this setting lets me skip warnings about “XBE Signature Failed.”  I am running only known working games that I have run multiple times successfully with CXBX.  

When I run the same titles outside of LB, running CXBX, choosing an .xbe file, loading it, starting emulation (F5), stopping emulation (F6), and then closing the emulator (ALT-F4 or just closing the window by clicking the top right corner), I don’t have the same problems.  As long as I am meticulous in starting and stopping the emulator in this fashion, CXBX continues to work.  I suspect that LB/BB are not shutting down CXBX completely or correctly, although I can’t find an open CXBX.exe with Task Manager when I have the problems.

I’m stumped.  Any ideas?

Share this post


Link to post
Share on other sites

Something seems to have changed with launching Cxbx reloaded. Before I just used the default settings with a script for "Alt+Enter" to get fullscreen. Now it just loads up the GUI and xbe but doesn't actually load. Anyone with similar issues? Also tried the /load command, and it doesn't seem to load at all. 

Share this post


Link to post
Share on other sites
Posted (edited)

same issue here, worked to begin with then just getting issues a second after launching a game. Hopefullythere is a fix? ❤️  @LukeUsher

Edited by zetec-s-joe

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...