Search found 3 matches
- 21 Aug 2020 17:26
- Forum: DOS Batch Forum
- Topic: Arrow keys
- Replies: 5
- Views: 6238
Re: Arrow keys
I got it from here: http://manmrk.net/tutorials/DOS/msdos62 ... OICE_E.HTM
- 20 Aug 2020 16:20
- Forum: DOS Batch Forum
- Topic: Arrow keys
- Replies: 5
- Views: 6238
Arrow keys
I figured out an easy way to do arrow key detection in batch
This actually works
Edit:
Whoops I made a mistake I guess ¯\_(ツ)_/¯
![Idea :idea:](./images/smilies/icon_idea.gif)
Code: Select all
choice /cs /n /c HKPM
:: H is the up arrow
:: K is the left arrow
:: P is the down arrow
:: M is the right arrow
Edit:
Whoops I made a mistake I guess ¯\_(ツ)_/¯
- 20 Aug 2020 16:15
- Forum: DOS Batch Forum
- Topic: Read arrow keys and show color text in an efficient way
- Replies: 17
- Views: 69302
Re: Read arrow keys and show color text in an efficient way
A way to do this is with choice
Code: Select all
choice /s/n/c HKPM
::H is the up arrow key
::K is the left arrow key
::P is the down arrow key
::M is the right arrow key