im constructing a collection of video games for the command line (for example, business with or without a deal, tic tac toe, racing, maze, puzzle, connection four, wack a mole, etc.), however it would really make it easier for me if I could do so so that when the user makes a choice (for example, which direction to move in the game), as soon as they press the arrow keys, he performs the following IF statements. Instead of pressing enter after each selection. sort of...
: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?
source share