Jump to content
LaunchBox Community Forums

Emulator Settings for All Platforms


Jason Carr

Recommended Posts

In the options menu turn off the confirm on exit

and use this AHK script in your edit emulator > autohotkey scripts tab to close it out with Escape or your controller button combo, it will also move your mouse if its not disappearing. It will also move your mouse off screen if it's not disappearing though you may have to change the 2160 to 1920 if using a 1920x1080 display.

Sleep, 3000
SetKeyDelay, -1, 110
MouseMove, 0, 2160, 0, R

$Esc::
{
    Process, Close, {{{StartupEXE}}}
}

 

  • Like 1
Link to comment
Share on other sites

17 minutes ago, ericcannon said:

That does work but when I exit the game it takes me out of fullscreen to confirm exit and then the next time I load a game it is not in fullscreen mode.

I see what you mean.

I completely forgot that I have Citra configured through Rocket Launcher to use a bezel and fade with it and it uses an auto-hotkey profile to force Citra into fullscreen every time you run it.

Unfortunately, it doesn't appear that you can use the script outside of Rocket Launcher though. I tried pasting it into the AHK section for the emulator in LB and it just kicked out errors. I tried editing it and removing the bits I figured were giving it issues, but it would still give errors, so not sure.

You could just configure Citra into Rocket Launcher (not difficult if you don't want to use bezels and such), but if you want to try messing with the script (or if someone else that's more savvy with AHK wants to look at how it might work for the AHK section in LB), I've posted it below:

 

MEmu := "Citra"
MEmuV := "2016-11-23"
MURL := ["http://citra-emu.org/"]
MAuthor := ["djvj","bleasby"]
MVersion := "1.0.1"
MCRC := "B2CEA0A2"
iCRC := "8131AB6F"
MID := "635740704032217117"
MSystem := ["Nintendo 3DS"]
;---------------------------------------------------------------------------- 
; Notes:
; Roms must be decrypted to run in the emu
; See here for a guide on decrypting games you own: https://gbatemp.net/threads/tutorial-how-to-decrypt-extract-rebuild-3ds-roms-run-xy-oras-without-update.383055/
;---------------------------------------------------------------------------- 
StartModule()
BezelGUI()
FadeInStart()

primaryExe := new Emulator(emuPath . "\" . executable)					; instantiate emulator executable object
primaryWindowClassName := "Qt5QWindowIcon"
emuPrimaryWindow := new Window(new WindowTitle("Citra",primaryWindowClassName))	; instantiate primary emulator window object
emuConsoleWindow := new Window(new WindowTitle(,"ConsoleWindowClass"))

Fullscreen := moduleIni.Read("Settings", "Fullscreen","true",,1)
bezelTopOffset := moduleIni.Read("Settings", "Bezel_Top_Offset","30",,1)
bezelBottomOffset := moduleIni.Read("Settings", "Bezel_Bottom_Offset","8",,1)
bezelRightOffset := moduleIni.Read("Settings", "Bezel_Right_Offset", "8",,1)
bezelLeftOffset := moduleIni.Read("Settings", "Bezel_Left_Offset", "8",,1)

CitraIni := new IniFile(emuPath . "\user\config\qt-config.ini")
CitraIni.CheckFile("Could not find Citra's ini file. Please run Citra manually first and make sure that you use the module recomended emulator version.")

; Disabling the emu exit confirmation
confirmClose := CitraIni.Read("UI", "confirmClose")
If (confirmClose = "true")
	CitraIni.Write("false", "UI", "confirmClose")

; Setting the game to launch on an extra window. 
singleWindowMode := CitraIni.Read("UI", "singleWindowMode")
If (singleWindowMode = "true")
	CitraIni.Write("false", "UI", "singleWindowMode")

BezelStart()

hideEmuObj := Object(emuConsoleWindow,0,emuPrimaryWindow,1)

7z(romPath, romName, romExtension, SevenZExtractPath)

HideAppStart(hideEmuObj,hideEmu)
primaryExe.Run("""" . romPath . "\" . romName . romExtension . """")

; Waiting for main emu window
emuPrimaryWindow.Wait()
emuPrimaryWindow.WaitActive()

; Hiding citra console window
emuConsoleWindow.Set("Transparent",0)

; Waiting for game to load
TimeOut := 3000
StartTime := A_TickCount
Loop, {
	WinGet, IDList, List, ahk_class %primaryWindowClassName% ; get a list of all windows which match this windowTitle
	Loop, % IDList ; IDList set to number of matches found
	{	id := IDList%A_Index%
		ControlGet, OutputVar, Hwnd,, Qt5QWindowOwnDCIcon1, ahk_id %id%
		If !ErrorLevel
		{	gameWindowID := id
			Break
		}
	}
	If (TimeOut && A_TickCount - StartTime > TimeOut)
		Break
}
; Saving id of extra emulator window to be hidden
WinGet, IDList, List, ahk_class %primaryWindowClassName% ; Get a list of all windows which match this windowTitle
Loop, % IDList ; IDList set to number of matches found
{	id := IDList%A_Index%
	If !(id = gameWindowID) {
		launchWindowID := id
		launchWindow := new Window(new WindowTitle(,,,launchWindowID))
		Break
	}
}

; Hiding extra emulator window
If (launchWindowID)  {
	launchWindow.Hide()
}

; Waiting for game window to be active if it is not
gameWindow := new Window(new WindowTitle(,,,gameWindowID))
gameWindow.WaitActive()

if (Fullscreen = "true"){  ; Creating fake full screen as the emu always launches in windowed mode
	WinGet emulatorID, ID, A
	emulatorWindow := new Window(new WindowTitle(,,,emulatorID))
	RLObject.hideWindowTitleBar(emulatorID)
	RLObject.hideWindowBorder(emulatorID)
	emulatorWindow.Move(0,0,A_screenWidth,A_screenHeight + 38)
}

BezelDraw()
HideAppEnd(hideEmuObj,hideEmu)
FadeInExit()
primaryExe.Process("WaitClose")
7zCleanUp()
BezelExit()
FadeOutExit()
ExitModule()


CloseProcess:
	FadeOutStart()
	If (launchWindowID)
		launchWindow.Close()
	Else
		gameWindow.Close()
Return

BezelLabel:
	disableHideBorder := "true"
	disableHideTitleBar := "true"
	disableHideToggleMenu := "true"
Return

 

Link to comment
Share on other sites

  • 4 weeks later...

Hello everyone, I am soooo new to this.

I cannot manage to add/install/play old windows games in to LaunchBox.

I need help to find an emulator for old windows games like commandos behind enemy lines and so .. also it will be great to mention what else I need to know

I have those old games on CDs and when I run the installer on windows it says what is in the attached capture.

Thanks a lot

commandos.PNG

Link to comment
Share on other sites

On 1/20/2018 at 10:05 PM, Lordmonkus said:

autohotkey scripts tab to close it out with Escape or your controller button combo

What would the syntax be if I wanted to use a controller button combo to exit an emulator? I'd like to use a 2 buttons combo to exit Dolphin. And if you know off the top of your head, where an easy place to find what name a button registers on the system. So if I press "button1" and the system recognizes the press as "joy0but5" or whatever, where can that recognized callout be found?

Link to comment
Share on other sites

  • 2 weeks later...

Hi guys. Seems the devs of daemon tools decided to change sintaxis on every update. To annoy customers I guess.

 

I was using this with old version:

 

set var=%1%
 
"C:\Program Files\DAEMON Tools Lite\DTAgent.exe" -unmount F
"C:\Program Files\DAEMON Tools Lite\DTAgent.exe" -mount_to F, %1%
"C:\SSF_012_beta_R3\SSF.exe"

 

 

With 10.8I tried this according to new sintaxis:

set var=%1%
 
"C:\Program Files\DAEMON Tools Lite\DTCommandLine.exe" DTCommandLine.exe -u -l "F"
"C:\Program Files\DAEMON Tools Lite\DTCommandLine.exe --mount_to --letter "F" --ro --path %1%
"C:\SSF_012_beta_R3\SSF.exe"

 

But I get invalid directory. Directory is correct. Any ideas?

 

Also changeeeeed this --path %1% to --path "%1%", but the same.

 

Thanks

 

Edited by Trihy
Link to comment
Share on other sites

On 2018-04-07 at 7:52 PM, Trihy said:

Hi guys. Seems the devs of daemon tools decided to change sintaxis on every update. To annoy customers I guess.

 

I was using this with old version:

 

set var=%1%
 
"C:\Program Files\DAEMON Tools Lite\DTAgent.exe" -unmount F
"C:\Program Files\DAEMON Tools Lite\DTAgent.exe" -mount_to F, %1%
"C:\SSF_012_beta_R3\SSF.exe"

 

 

With 10.8I tried this according to new sintaxis:

set var=%1%
 
"C:\Program Files\DAEMON Tools Lite\DTCommandLine.exe" DTCommandLine.exe -u -l "F"
"C:\Program Files\DAEMON Tools Lite\DTCommandLine.exe --mount_to --letter "F" --ro --path %1%
"C:\SSF_012_beta_R3\SSF.exe"

 

But I get invalid directory. Directory is correct. Any ideas?

 

Also changeeeeed this --path %1% to --path "%1%", but the same.

 

Thanks

 

Since a very long time ago i started using Virtual CloneDrive which is also free and doesn't force you to reboot when installing and just works. I searched a little and it seems you mount and unmount like this;

"For mounting: vcdmount.exe image name, e. g. vcdmount.exe "m:\image name.iso" For unmounting: vcdmount.exe /u

For mounting in different virtual drives:
vcdmount /d=X imagefile
where x is your "virtual drive number-1", e. g. you want to mount the image into virtual drive 1 you have to use 0 for x, for drive 8 you have to use 7.
when you want to unmount image in drive 8 you have to use "vcdmount.exe /d=7 /u"
VCDMount only knows the switches /u for unmounting and /d=x for selecting which drive should mount/unmount image. "

Hope your able to use this because i will try as well soon ;)

Link to comment
Share on other sites

  • 4 weeks later...
  • 3 weeks later...

What i would like to see, if those who got many systems up and running

If you could post screen shots with command line and associated platform and what systems for it?

Screen shots is easy to take upload put it here

Would like to see what other are using

Im using winvice 1.6 and can run commodore 64 and 128 in full screen just like i want it, other might use other win vice run 4:3 instead

Edited by Zeaede
Link to comment
Share on other sites

Another reason i would like screenshots of associated platforms. If we go after GCE Vectrex for MESS   

It says

 vectrex -cart -skip_gameinfo -nowindow

But when i saw the turtorial video only vectrex -cart is in the associated platform windows

-skip_gameinfo - nowindow in the edit emulator windows

So if you are new into this it can be a bit confusing see 2 command lines on the same line when it's actually 2 different command lines

 

 

     
Link to comment
Share on other sites

The -skip_gameinfo -nowindow is not necessary to load anything, those are extra commands to Mame / Mess which can be set in the mame.ini file.

Here's my Associated Platforms command line parameters window for my Mame Console emulator in Launchbox, it doesn't have every system, just the systems I either use or have setup just to test something.

 

2018-05-21 03_12_22-Edit Emulator.png

Link to comment
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
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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...