5thWolf Posted August 3 Share Posted August 3 (edited) With several DOS games once you run the EXE it ask for setup selections like this: Anyone help me a make a DOS .bat file that runs the exe and hits the keys I choose. Example: start.exe 4 2 y Edited August 3 by 5thWolf Quote Link to comment Share on other sites More sharing options...
JoeViking245 Posted August 3 Share Posted August 3 Adapted from here, this MIGHT work. If nothing else, it gets you in the right direction of what you need to do. @if (@CodeSection == @Batch) @then @echo off set SendKeys=CScript //nologo //E:JScript "%~F0" start "" start.exe ping -n 2 -w 1 127.0.0.1 > NUL %SendKeys% "4" ping -n 2 -w 1 127.0.0.1 > NUL %SendKeys% "2" ping -n 2 -w 1 127.0.0.1 > NUL %SendKeys% "y" goto :EOF @end var WshShell = WScript.CreateObject("WScript.Shell"); WshShell.SendKeys(WScript.Arguments(0)); The 2 in "ping -n 2..." is a 2 second 'pause'. Adjust accordingly It may (or may not) be easier to do this using an AutoHotkey script. 1 Quote Link to comment Share on other sites More sharing options...
5thWolf Posted August 6 Author Share Posted August 6 (edited) I will try it! I could also try AHK since LB allows per game if you know what it would be! Edited August 6 by 5thWolf 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.