How can I implement a select/menu feature?

It's kind of hard to explain in words by I'd like to let the user select an option using arrow keys and enter rather than typing in a character/integer.

Example (In-Console):

Option 1
Option 2 < // < is the pointer
Option 3

---

Then you use the arrow keys to move the pointer up and down. I see this in a lot of other programs. Could you explain how I could implement this in a program, or if I need to call a file?
This is platrform dependent. You must move cursor.
https://docs.microsoft.com/en-us/windows/console/setconsolecursorposition
Hello Anoraki,

I think is along the lines of what you want. I can not guarantee that the code works, but the concept is similar to something I have seen in the last year. I did a search here on "menu with getasynckeystate" or try a variation of this.

Here is one post I found: http://www.cplusplus.com/forum/beginner/197247/

Look for messages of 190000 or above to keep it within the last year. Older messages may also be useful.

If this is something you can use I see what else I can find.

Hope that helps,

Andy
Topic archived. No new replies allowed.