Keyboard-Based Menus

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • jdanniel2004
    Forum Member
    • Feb 2004
    • 4

    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
  • Stefan_M
    Indigo Rose Customer
    • Nov 2003
    • 315

    #2
    There are some actions to navigate available:

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


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

    Douglas Adams, The Hitchhiker's Guide to the Galaxy

    Comment

    • jdanniel2004
      Forum Member
      • Feb 2004
      • 4

      #3
      Stefan,

      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.

      Comment

      • Stefan_M
        Indigo Rose Customer
        • Nov 2003
        • 315

        #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
        Script:
        if (e_Key == 50) then
        Page.Jump("Page2");
        elseif (e_Key == 51) then
        Page.Jump("Page3");
        end

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

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

        Douglas Adams, The Hitchhiker's Guide to the Galaxy

        Comment

        • niceness
          Forum Member
          • Jun 2004
          • 19

          #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

          Comment

          • niceness
            Forum Member
            • Jun 2004
            • 19

            #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?

            thanx

            Comment

            • Derek
              Indigo Rose Customer
              • May 2001
              • 1254

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

              Comment

              • Corey
                Indigo Rose Staff Alumni
                • Aug 2002
                • 9745

                #8
                Great example. :yes

                Comment

                Working...
                X