How to make an app - Andromo App Maker


No announcement yet.

Keyboard-Based Menus

  • Filter
  • Time
  • Show
Clear All
new posts

  • Keyboard-Based Menus

    Hi everyone.

    I'm trying to create a CD menu that looks like DOS and is keyboard-driven. It will only emulate the appearance of DOS screens and not actually work in DOS.

    What I want to do, specifically, is create menu screens that look and work similarly to the FDISK screens, or the initial screen you see when you insert a bootable Windows 98 or ME floppy.

    I want the user to navigate through the menu pages with keystrokes, as well as launch files on the CD via keystrokes.

    I'm not 100% sure if this can be done with version 5.0. From reading the documentation, I can create an input object and use the On Key action to perform functions.

    There are two problems with this:
    1. I haven't figured out how to set a specific key. For example, if I want someone to press 2 to jump to Page Two, I don't know how.

    2. I would prefer to use text boxes rather than input boxes.

    What is the absolute easiest way to create a keyboard-driven menu as I've described it? Imagine yourself trying to recreate the FDISK screens...that's what I'm doing.

    Also, is this possible to do with version 4, rather than version 5?

    Thank you! Jack Danniel

  • #2
    There are some actions to navigate available:

    See Online help:
    Search for "On Key"
    and section "How do I..." -> Respond to Key Pressed

    Attached Files
    "With a rubber duck, one's never alone."

    Douglas Adams, The Hitchhiker's Guide to the Galaxy


    • #3

      I don't think you read my entire post.

      I did read that documentation but I don't fully grasp it. I don't see an example of how to choose a keystroke, for example.


      • #4
        Sorry, I didn't recognized it.

        Take a look at the demo.
        There are three pages. with key "1", "2" or "3" the selected page will be shown.
        Open "Page Properties" / "Actions" / "On Key" and you will see how it works.

        Page1/Actions/On Key
        if (e_Key == 50) then
        elseif (e_Key == 51) then

        other useful actions are "Page.GetFocus()" and "Page.SetFocus (ObjectName)"

        "With a rubber duck, one's never alone."

        Douglas Adams, The Hitchhiker's Guide to the Galaxy


        • #5
          Keystroke and Random Page Jump

          Is it possible to have an entire application respond to keystrokes.?

          Can those keystrokes also trigger a random page jump action?

          How is this done if possible?

          Thank You


          • #6
            Keystroke and/or mouse click

            would like my entire application to respond to keystrokes and/or mouse clicks.

            would like the keystroke and corresponding mouse click to activate a random page jump action.

            how can i accomplish this?



            • #7
              return to DOS
              Attached Files
              = Derek
              ["All glory comes from daring to begin" - fortune cookie]


              • #8
                Great example. :yes