How to trap or capture PF keys pressed in Regina ReXX program ?
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.
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'.