PF keys in Regina ReXX

Help
Vasu
2005-07-19
2013-05-14
  • Vasu
    Vasu
    2005-07-19

    How to trap or capture PF keys pressed in Regina ReXX program ?

     
    • Dave
      Dave
      2005-07-19

      Using the Sysgetkey function in rexxutil.dll to capture the PF key, then convert the key captured to decimal using the C2D function.  You can then do the comparsion against the decimal number.  To determine what number is associated with each key, write yourself a small loop to display the converted results of each PF key pressed.

       
      • New B2
        New B2
        2005-07-19

        Be aware that you need to loop for CHARS() because PF keys are multi-byte - 003x and 004x.

        You also need to Sleep (say 1 sec at a time) with a CHARS() test if you want to have a TimeOut option - e.g. If no-Reply within 300s then Return 'TIMEOUT'.