Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Note
titleContent Freeze

As of July 25th, 2023, there is a content freeze on this page.

This setting controls the pattern Genie uses to detect "special" function key labels on screen when creating links/buttons for function keys.  Special keys include Enter, Page Up/Down, Help and Print.  For normal function keys (the F1-F12 keys) see Function Key Pattern.

...

Code Block
pui["special key pattern"] = "^(Enter|PageUp|PageDown|Rollup|RollDown|PgUp|PgDn|Help|Print)([=-])(.*)$";

 


The default pattern locates the words Enter, PageUp, PageDown, etc, followed by a separator (equal sign or dash), followed by the text. The parenthesis shown are used to "capture" the different parts (key name, separator and text) so that the appropriate words can be placed on the resulting buttons or links that Genie places on the screen.

...

By default, the key name found must be a valid parameter to the pressKey API.  However, you can also map different key names to 5250 keys using the Special Key Map feature. 


Code Block
languagejavascript
titleAlternate Syntax
pui["special key pattern"] = /^(Enter|PageUp|PageDown|Rollup|RollDown|PgUp|PgDn|Help|Print)([=-])(.*)$/i;

...