ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

Using Escape key as a function key

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Using Escape key as a function key

    Can anyone tell me if there is a way to use the Escape key as a function key.
    The application I have currently uses all 24 function keys. We are wanting to standardize a certain function with the escape key, and I can't find any information on how to do this.

  • #2
    Re: Using Escape key as a function key

    Try this from Cozzi
    Never trust a dog to watch your food.

    Comment


    • #3
      Re: Using Escape key as a function key

      You may also want to look into activation jobs which uses the escape key. Do a google on activation jobs as400
      Never trust a dog to watch your food.

      Comment


      • #4
        Re: Using Escape key as a function key

        Thats a great article.....I think now we need to write a generic menu system that displays options by userid........
        we could also pass it the calling program name..........

        I have one somewhere I will try to find it .......
        If anyone else wants to help let me know....

        Jamie
        All my answers were extracted from the "Big Dummy's Guide to the As400"
        and I take no responsibility for any of them.

        www.code400.com

        Comment


        • #5
          Re: Using Escape key as a function key

          You can try using SETATNPGM to call your own attn progrgam.

          Another way is to use the Clear key or Record Backspace key
          which are seldom used.

          Define a File information DS for the Worstation file and use a Hex field
          in position 369 to receive the Cmd/Function key pressed by the user.

          The Hex values (according to an old Data management book) translates to:

          Hex Codes Function Keys
          hex 31 1
          hex 32 2
          hex 33 3
          hex 34 4
          hex 35 5
          hex 36 6
          hex 37 7
          hex 38 8
          hex 39 9
          hex 3A 10
          hex 3B 11
          hex 3C 12
          hex B1 13
          hex B2 14
          hex B3 15
          hex B4 16
          hex B5 17
          hex B6 18
          hex B7 19
          hex B8 20
          hex B9 21
          hex BA 22
          hex BB 23
          hex BC 24
          hex BD Clear
          hex F1 Enter/Rec Adv
          hex F3 Help (not in operator-error mode)
          hex F4 Roll Down
          hex F5 Roll Up
          hex F6 Print
          hex F8 Record Backspace
          hex 3F Auto Enter (for Selector Light Pen)

          Comment

          Working...
          X