RecycledKaos Posted March 26, 2017 Share Posted March 26, 2017 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? Quote Link to comment Share on other sites More sharing options...
SentaiBrad Posted March 26, 2017 Share Posted March 26, 2017 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". Quote Link to comment Share on other sites More sharing options...
RecycledKaos Posted March 30, 2017 Author Share Posted March 30, 2017 (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 March 30, 2017 by RecycledKaos Quote Link to comment Share on other sites More sharing options...
SentaiBrad Posted March 30, 2017 Share Posted March 30, 2017 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.