Jump to content
LaunchBox Community Forums

anyway to skip selection screen on PC games?


sirgubster9

Recommended Posts

Have a few PC games that when you double click on the exe it brings up like a setup menu where you select resolution and controller and settings and what not, then there is a run button that you press and bam the game is going, anyway to skip this screen so it just runs the game when you select the exe file?

Link to comment
Share on other sites

4 hours ago, sirgubster9 said:

Have a few PC games that when you double click on the exe it brings up like a setup menu where you select resolution and controller and settings and what not,

1) Look in the game folders for another exe that runs the game directly.

2) Look up your game on pcgamingwiki if your game supports a command-line argument to skip the launcher.

3) Write a script to press the Run button for you.

  • Like 1
Link to comment
Share on other sites

33 minutes ago, Your Friendly A.I Overlord said:

1) Look in the game folders for another exe that runs the game directly.

2) Look up your game on pcgamingwiki if your game supports a command-line argument to skip the launcher.

3) Write a script to press the Run button for you.

Thank you. I will look into the top two options. I'm hoping number 2 pans out because I have no clue how to do number 3 and I'm pretty sure number 1 doesn't exist for this game. 

Link to comment
Share on other sites

On 4/4/2022 at 7:21 PM, Your Friendly A.I Overlord said:

1) Look in the game folders for another exe that runs the game directly.

2) Look up your game on pcgamingwiki if your game supports a command-line argument to skip the launcher.

3) Write a script to press the Run button for you.

so sadly option 1 and 2 are a no go.  Any idea how to do number 3?  

Link to comment
Share on other sites

2 hours ago, sirgubster9 said:

so sadly option 1 and 2 are a no go.  Any idea how to do number 3?  

In short:

Download AutoHotkey.zip from the AutoHotKey site. It contains a script (WindowSpy.ahk) with which you can look up window titles and button names / numbers. Drop that script on AutoHotkey.exe. The WindowSpy tool will open. Start your game and look up the window title of your game's launcher, then the button number of the "Run" button. Write a script (just a text file) that waits for the game's launcher window to open, then sends a key press to the "Run" button. (Or if the "Run" button is already highlighted when you open your game's launcher, just sends a "Space" or "Enter" key press.) Save that script as a AutoHotKey script. (With an .ahk file extension). Add that script as an additional app to your game in LaunchBox.

Below I have an example for the game Trine 2:

WinWait, Trine 2 Launcher
WinActivate
Sleep, 1000
ControlSend, Button3, {Space}, Trine 2 Launcher
ExitApp

- The script waits for the Trine 2 launcher window to open.

- Activates the Trine 2 launcher window. (gives it focus)

- Waits 1 second.

- Sends a key press of the Space key to button 3 of the Trine 2 launcher window. (The '"Start Trine 2" button).

- Terminates the script.

 

If your "Run" button is already highlighted when the game's launcher is opened, you could just send a Space or Enter key press without specifying a specific button.

For example:

WinWait, Trine 2 Launcher
WinActivate
Sleep, 1000
Send {Enter}
ExitApp

If you want to test your script, drop your script (with an .ahk file extension) on AutoHotkey.exe. Then start your game.

More information on AutoHotKey's ControlSend and Send command.

*Edit*

I added a screenshot about how to use AutoHotKey's Window Spy tool to look up window titles and button numbers.

1988468261_Schermopname(66).thumb.jpg.2c62c6707048360c28d3d57ef45825d6.jpg

Edited by Your Friendly A.I Overlord
  • Like 2
Link to comment
Share on other sites

Wowzers! OK way past my skill level, but you laid it out super well. Thank you so much. I'll get started on this and come back with questions. While I'm here now the game only exits with alt f4 as far as I can find. Is there a way to add that in somehow as well. Right now all my other games end with esc which I have set to a button. 

Link to comment
Share on other sites

@sirgubster9 Try the following script.

#NoEnv
#SingleInstance
SetTitleMatchMode, 3
SendMode Input
SetWorkingDir %A_ScriptDir%

WinWait, Paw Patrol Configuration
WinActivate
Sleep, 500
ControlSend, Button3, {Enter}, Paw Patrol Configuration
WinWait, Paw Patrol ahk_class UnityWndClass
WinWaitClose
ExitApp

$Esc::
{
Send !{F4}
}

How to add the script as an additional app to your game in LaunchBox. Perhaps the easiest way:

Find a location on your computer where you want to save / keep the script. As I have installed my Windows games outside of the LaunchBox folders, I keep my scripts for Windows games in the LaunchBox\Games\Windows folder. Right click somewhere in the folder  --> New --> Text Document. Open the new text file in a text editor and copy / paste the script. Save --> Give your script a name and save it with an .ahk file extension. In my example I named it Paw_Patrol.ahk.

650191895_Schermopname(67).thumb.jpg.8484365b365ed8c4743ec08979bafc51.jpg

Now go to the LaunchBox\ThirdParty\AutoHotkey folder and copy AutoHotkey.exe to the same location as where you keep the script. Rename AutoHotkey.exe the same as you have named your script. Like this:

1901191255_Schermopname(68).thumb.jpg.6d442451cbfd08143b795e003a5b7cc0.jpg

Now go to your game in LaunchBox --> right click  --> Edit --> Edit Metadata / Media --> Additional Apps --> Add Application.

402488031_Schermopname(69).thumb.jpg.91664d01ccbabb1adfafdf433fa89ad4.jpg

- Give your additional app a name. In my case I named it Paw_Patrol.

- Browse to the folder where you have Paw_Patrol.ahk and Paw_Patrol.exe. Select Paw_Patrol.exe.

- Tick "Automatically Run Before Main Application". *important*

 

Now you should be good to go.

Alternatively you could compile the script to an executable and add that executable to LaunchBox as an aditional app.

 

*Bonus*

Completely hide the Paw Patrol launcher with the LaunchBox / BigBox startup screens.

Use this script:

#NoEnv
#SingleInstance
SetTitleMatchMode, 3
SendMode Input
SetWorkingDir %A_ScriptDir%

WinWait, Paw Patrol Configuration
WinActivate
Sleep, 500
ControlSend, Button3, {Enter}, Paw Patrol Configuration
WinWait, Paw Patrol ahk_class UnityWndClass
WinSet, Bottom, , LaunchBox Game Startup
WinWaitClose
ExitApp

$Esc::
{
Send !{F4}
}

Add the script to LaunchBox as described above. But for the LaunchBox / BigBox startup screens to work correctly with Paw Patrol, you must take one extra step:

Right click your game --> Edit --> Edit Metadata / Media --> Startup/Pause.

2134832743_Schermopname(70).thumb.jpg.b931d3fb3adcf82b161a5caebecacc7b.jpg

Tick "Override Default Startup Screen Settings" and click "Customize".

137577945_Schermopname(71).thumb.jpg.6c608163863abcca7426324d440278c1.jpg

Here tick: "Enable Game Startup Screen", "Enable Game Shutdown Screen" and "Hide All Windows that are not in Exclusive Fullscreen Mode."

Set the Startup Load Delay slider to the time it takes to load your game.

 

Edited by Your Friendly A.I Overlord
  • Unusual Gem 2
Link to comment
Share on other sites

  • 4 weeks later...

worked amazingly!!!! thank you so much. follow up question I wanted to also add an additional script where certain keys rgister as other keys like this?

q::x

w::y

e::b

esc::exitapp

so I did that but now whenever I press esc to exit the game that hotkey keeps on running, what am I doing wrong?

Link to comment
Share on other sites

I was thinking maybe it's because I'm running to different ahk, but I don't know how to combine them. In the past when I have had one key convert to a different key it's been per emulator and I've been able to add it to that auto generated closing script that you guys build into launchbox, since this isn't an emulator. I'm at a loss. 

Link to comment
Share on other sites

14 hours ago, sirgubster9 said:

I wanted to also add an additional script where certain keys rgister as other keys like this

You could just add those to the above script instead of having 2.

#NoEnv
#SingleInstance
SetTitleMatchMode, 3
SendMode Input
SetWorkingDir %A_ScriptDir%

WinWait, Paw Patrol Configuration
WinActivate
Sleep, 500
ControlSend, Button3, {Enter}, Paw Patrol Configuration
WinWait, Paw Patrol ahk_class UnityWndClass
WinSet, Bottom, , LaunchBox Game Startup
WinWaitClose
ExitApp

q::x
w::y
e::b

$Esc::
{
Send !{F4}
}

 

  • Game On 1
Link to comment
Share on other sites

is there any reason why this script wouldnt close like the other one you created for me, I basically just took yours copied and pasted and added in one extra line.  This one doesnt close when i close the game using ESC or using the exit to windows option on the game, what am I missing?

 

#NoEnv
#SingleInstance
SetTitleMatchMode, 3
SendMode Input
SetWorkingDir %A_ScriptDir%

WinWait, Select Controllers
WinActivate
Sleep, 500
ControlSend, Button3, {Enter}, Select Controllers
Sleep, 500
ControlSend, Button3, {Enter}, Select Video Mode
WinWait, Mashed Game ahk_class UnityWndClass
WinWaitClose
ExitApp

q::x
w::y
e::b

$Esc::
{
Send !{F4}
}

Link to comment
Share on other sites

5 minutes ago, JoeViking245 said:

I haven't followed exactly what you're trying to do, but try removing WinWaitClose before ExitApp.  It's doubling up the WinWait right before it.

sadly didnt fix the issue.  The AHK file still stays open.  What am I missing here? I thought ESC would kill it no?

Link to comment
Share on other sites

2 hours ago, sirgubster9 said:

The AHK file still stays open.

Now that I've read through the full post... 😊  You do need to have that WinWaitClose in there. (srry 'bout that)

if the previous scripts that @Your Friendly A.I Overlord wrote for you worked as expected (including exiting properly [closing the script]) and if the hotkey reassignments with the new script I shared work, but now it's not exiting correctly... my guess is that it's not finding what you've told it to look for. 

WinWait, Mashed Game ahk_class UnityWndClass

So what's happening is the script is still waiting [WinWait] for that to appear, so that it can then wait for it to close [WinWaitClose]... and then close itself [ExitApp].

Link to comment
Share on other sites

21 minutes ago, JoeViking245 said:

Now that I've read through the full post... 😊  You do need to have that WinWaitClose in there. (srry 'bout that)

if the previous scripts that @Your Friendly A.I Overlord wrote for you worked as expected (including exiting properly [closing the script]) and if the hotkey reassignments with the new script I shared work, but now it's not exiting correctly... my guess is that it's not finding what you've told it to look for. 

WinWait, Mashed Game ahk_class UnityWndClass

So what's happening is the script is still waiting [WinWait] for that to appear, so that it can then wait for it to close [WinWaitClose]... and then close itself [ExitApp].

Oh OK that makes sense. For my previous script the ahk file was call paw_patrol.ahk and the exe was called paw_patrol.exe. And in this new setup my ahk is called mashed_game.ahk and the exe file is called mashed_game.exe.  I don't know what the class unity wind class thing is I just copied it from the previous script. The game file was paw_patrol.exe from the last one and the new game file is mashed.exe. 

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...