Jump to content
LaunchBox Community Forums

ahk script for individual games


Michelle911

Recommended Posts

I can see from another thread that this isn't in LaunchBox (yet anyhow, the thread from 2017)...  but I'm not doing a controller,  but just one game (Race Drivin' Panorama)  so that once launched my ahk script will wait for the Mame window and then stretch it across my three gaming monitors via WinMove.  Besides dreaming up a more complex script,  any ideas?  I actually worked it out and then I realized my emulator setting was universal lol

Edited by Michelle911
Link to comment
Share on other sites

When you launch Race Drivin' Panorama directly from mame does it span the 3 monitors?

I think in mame, if you were to edit you mame.ini file in the section

#
# OSD PER-WINDOW VIDEO OPTIONS
#

and get it to work for RDP, save the file as "racedrivpan.ini" in put it in the ini folder of mame.  Then when you run RDP, it'll use those settings for that game [only].  Of course, keeping mame.ini in it's original sate for all other machines.

Link to comment
Share on other sites

Hey Joe, thanks for the reply.  The OSD PER-WINDOW was the first thing I tried,  I change the settings here for other multi-monitor games in Mame (like Punch-Out),  and it works great.  The problem with RDP is that it doesn't have different screens (or windows) like other multi-monitor games,  it actually puts all three game monitor displays into one window,  unlike everything else I've encountered so far.

It starts up like this and then I use my script to stretch it across all three monitors....  I probly wouldn't have this issue if I ran my displays in surround,  but I have to use extended desktops on account of my daw.

 

ZWAbwsc.jpg

Link to comment
Share on other sites

If I'm reading correctly, you already have a script that will 'stretch' the screen.  Maybe you could: Edit RDP, go to the Additional Apps tab and Add Additional Application and point to the script to stretch it and check Automatically Run Before Main Application.  Then add another 'app' that reverts it back to normal and check Automatically Run After...

Option B is to create a complete script and use it as your 'ROM File' under the Launcher tab. It would something like:

#SingleInstance force

SetWorkingDir, D:\Emulators\Mame  ;where mame is located. Note: No "\" after "Mame".
MAMERun = mame64.exe
GameRDP = D:\Emulators\MAME\roms\racedrivpan  ;Path and Machine (rom) folder

Run Stretch.ahk
Runwait, %MAMERun% "%GameRDP%", , Hide
Run UnStretch.ahk

Exitapp

It basically runs them in the same order, unfortunately. i.e. stretch before mame runs, vs after. Then UnStretch.  The smarter person could tell you to simply put in something like:

Run the mame game
Now run the stretch script process
Hang out until mame exits
When mame stops running, run Unstretch script process
ExitApp

  • Thanks 1
Link to comment
Share on other sites

Got it!  :D  

I just compiled the script and added it to Additional Apps for RDP,  set it to Run Before and it works!  Since it's a regular window there was nothing to run after,  the window just closes and that's that  ?

Thanks for pointing me in the proper direction  ?

Edited by Michelle911
  • Like 1
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...