keyboard - batch file that detects keystrokes. how? -


im designing collection of video games command line (such deal or no deal, tic tac toe, racing, maze puzzle, connect four, wack mole, etc.) make things easier me if make when user makes selection (such direction move in game) , press arrow keys carries out if statements follow. instead of having press enter after each selection. like...

:one1 set /p direction1= : if %direction1%== {arrow key left} goto two2 if %direction1%== {arrow key right} goto three3 if %direction1%== {arrow key up} goto four4 if %direction1%== {arrow key down} goto five5 goto one1 

any ideas?

:start  choice /c:hpkm /n "move arrow keys"  if "%errorlevel%"=="1" {command}  if "%errorlevel%"=="2" {command}  if "%errorlevel%"=="3" {command}  if "%errorlevel%"=="4" {command} 

Comments

Popular posts from this blog

Add email recipient to all new Trac tickets -

400 Bad Request on Apache/PHP AddHandler wrapper -

php - Change action and image src url's with jQuery -