7m…ôcU#\cd] INCLUDE "System.oxh"INCLUDE "const.oph"PROC GETKEY: GLOBAL handle&,ev&(16) handle&=CAPTUREKEY&:(%t,KModifierFunc&,KModifierFunc&) REM change %t to what ever key code you need (Here and below) runprog: CANCELCAPTUREKEY:(handle&)ENDPPROC runprog: while 1 getevent32 ev&() if ev&(1)=%tREM Don't forget to change %t here as well print "hello" setforeground: endif endwhENDPREM CaptureKey&:(Key&,Mask&,Modifier&)REMREM If you want a modifier to have to be depressed for the key to beREM captured (eg you want to capture Fn+t, but not t), then put thatREM modifier into both Modifier& and Mask&. If you don't want a modifierREM to be used (eg you want Fn+t but not Fn+Shift+t) put it into Mask&REM but not Modifier&, and if you don't mind (eg to capture Fn+tREM and Fn+Shift+t), miss it out completely.ĐĐ    \c}efd\c…efd‚.ĆA…*TextEd.app…‰