Advertisement
Jan-Langevad

ESP32FORTH-Fkeys

Dec 10th, 2024
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | Source Code | 0 0
  1. procedure TMyFFshell.Memo1KeyDown(Sender: TObject; var Key: Word;
  2. Shift: TShiftState);
  3. begin
  4.  
  5. // Test 241210 catch F0...F12 key presses and return $F0..$FC
  6. case word(Key) of
  7. VK_F1: Comport1.WriteStr(char($F1)) ;
  8. VK_F2: Comport1.WriteStr(char($F2)) ;
  9. VK_F3: Comport1.WriteStr(char($F3)) ;
  10. VK_F4: Comport1.WriteStr(char($F4)) ;
  11. VK_F5: Comport1.WriteStr(char($F5)) ;
  12. VK_F6: Comport1.WriteStr(char($F6)) ;
  13. VK_F7: Comport1.WriteStr(char($F7)) ;
  14. VK_F8: Comport1.WriteStr(char($F8)) ;
  15. VK_F9: Comport1.WriteStr(char($F9)) ;
  16. VK_F10: Comport1.WriteStr(char($FA)) ;
  17. VK_F11: Comport1.WriteStr(char($FB)) ;
  18. VK_F12: Comport1.WriteStr(char($FC)) ;
  19.  
  20. end;
  21.  
  22. end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement