Jump to content
LaunchBox Community Forums

Recommended Posts

Posted

So i'm trying to launch a game that requires a different desktop resolution and I have an additional program all set up that automatically sets the resolution and reverts it after the game closes. The problem is the game starts a bit too quickly for it to register the resolution change. Is there a simple command line parameter that delays the games launch?

Posted

In other threads on the forums, and in posts around the net, I have seen it mostly be used in batch files. So that may be your best solution, but the command should be something like this:

timeout /t 10
(where the number is the amount of seconds)

It used to be sleep, but that may have been deprecated, and from what I can tell may try and make Windows 10 go to sleep, and since we really only support W7 and up now, Timeout should be it,

Here are some more resources:

http://www.wikihow.com/Delay-a-Batch-File

Also, I found the below thread just by searching "delay".

 

Posted (edited)

I figured it out. It was as simple as changing a .txt file to a .cmd file, puting it the root folder, and typing 

Sleep 5
start "" /w "loco.exe"

the /w makes the cmd window not close until the exe closes making apps that run after the launchbox target closes still work.

Edited by RecycledKaos
Posted

Sleep doesn't work though on Windows 8 or 10, at least from what I remember reading. The syntax has been changed, and in my previous post I did mention that. So, if someone on Windows 8 or 10 tries to use Sleep, it may not work.

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