Bill, The general method I've found for the function keys is:
Kybd: a$="" WHILE a$=""
a$=INKEY$ WEND
ON ASC(a$)-128 GOTO F1,F2,F3,F4,F5,F6,F7,F8,F9,F10,Help_key ' process for
a single character input ' blah…blah…blah ' end process GOTO
Kybd
F1: process for Function key #1 F2: process for Function key #2
Help_key: print help file
END
This is based on the fact that the function keys return an Ascii code ranging
from 129 to 139. None of the manuals are very clear about this (found by
experimentation).
Can't help you about the second part of the question, but I've found that
AmigaBasic doesn't seem to be too friendly towards other programs. Sid