lee123abc July 21, 2008 at 09:52:03 Specs: win xp s/p 3, 3mhz/2 gig
Hi, I need to know how to enter a key in dos without pressing enter. Ie: at the command prompt the user must press 1 - 5 and as soon as the user presses the number that number automatically goes to the next step.
Hi there Mech. I was looking at some other posts you have helped with... quite a collection going there! Ok, I have a simple "Loop Menu" system here. ============================================= @ECHO OFF :MAINMENU CLS @ECHO Please Make Selection... @ECHO. @ECHO 1. DISPLAY THE NUMBER "1" @ECHO 2. DISPLAY THE NUMBER "2" AND EXIT SET CHOICE= @ECHO. SET /p CHOICE=Type the number to make selection. - IF '%CHOICE%'=='1' GOTO CHOOSE1 IF '%CHOICE%'=='2' GOTO EXIT COLOR 04 CLS @ECHO. @ECHO. ECHO "%CHOICE%" IS NOT VALID, PLEASE TRY AGAIN. PRESS ANY KEY TO RESET... PAUSE>NUL COLOR 07 GOTO MAINMENU :CHOOSE1 CLS @ECHO USER PRESSED "1". PAUSE GOTO END :EXIT CLS @ECHO USER PRESSED "2". PAUSE EXIT :END GOTO MAINMENU =============================================
NOW I KNOW YOU CAN, but please will you incorporate your answer into my menu as I did try, and I failed! Thanks Lee
Hi there, thank you for that. I downloaded Choice.exe and Sleep.exe and bat2exe. Now I can do what I originally wanted, however these days, most people dont want to download exe files as they cant use them on their 'work' computers. So I am going to settle for the user just pressing the selection and then pressing enter. Thank you for your help though. Keep up the good work.
The information on Computing.Net is the opinions of its users. Such
opinions may not be accurate and they are to be used at your own risk.
Computing.Net cannot verify the validity of the statements made on this
site. Computing.Net and BestOfMedia LLC hereby disclaim all responsibility
and liability for the content of Computing.Net and its accuracy.
PLEASE READ THE FULL DISCLAIMER AND LEGAL TERMS BY