Search found 3 matches

by Zai1208
21 Aug 2020 17:26
Forum: DOS Batch Forum
Topic: Arrow keys
Replies: 5
Views: 971

Re: Arrow keys

by Zai1208
20 Aug 2020 16:20
Forum: DOS Batch Forum
Topic: Arrow keys
Replies: 5
Views: 971

Arrow keys

I figured out an easy way to do arrow key detection in batch :idea:

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
This actually works

Edit:
Whoops I made a mistake I guess ¯\_(ツ)_/¯
by Zai1208
20 Aug 2020 16:15
Forum: DOS Batch Forum
Topic: Read arrow keys and show color text in an efficient way
Replies: 17
Views: 16867

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