home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD1.mdf
/
pascal
/
library
/
dos
/
keyboard
/
extkey
/
ektest.pas
next >
Wrap
Pascal/Delphi Source File
|
1988-02-09
|
4KB
|
102 lines
Program EKTest;
{ Test program for the EXTKEY.PAS unit - Dave Bennett }
Uses
ExtKey, Crt;
Var
Ch : Word; { A Key to be read must be defined as a Word }
Begin
ClrScr;
Repeat { Start the loop }
Ch := ExtendKey; { Get the extended key }
If ExtendedKey Then Case Ch Of { If the is and extended key }
Alt_A : Write('<Alt_A>'); { Show the extended keys }
Alt_B : Write('<Alt_B>'); { . }
Alt_C : Write('<Alt_C>'); { . }
Alt_D : Write('<Alt_D>'); { . }
Alt_E : Write('<Alt_E>');
Alt_F : Write('<Alt_F>');
Alt_G : Write('<Alt_G>');
Alt_H : Write('<Alt_H>');
Alt_I : Write('<Alt_I>');
Alt_J : Write('<Alt_J>');
Alt_K : Write('<Alt_K>');
Alt_L : Write('<Alt_L>');
Alt_M : Write('<Alt_M>');
Alt_N : Write('<Alt_N>');
Alt_O : Write('<Alt_O>');
Alt_P : Write('<Alt_P>');
Alt_Q : Write('<Alt_Q>');
Alt_R : Write('<Alt_R>');
Alt_S : Write('<Alt_S>');
Alt_T : Write('<Alt_T>');
Alt_U : Write('<Alt_U>');
Alt_V : Write('<Alt_V>');
Alt_W : Write('<Alt_W>');
Alt_X : Write('<Alt_X>');
Alt_Y : Write('<Alt_Y>');
Alt_Z : Write('<Alt_Z>');
UpKey : Write('<UpKey>');
DownKey : Write('<DownKey>');
LeftKey : Write('<LeftKey>');
RightKey : Write('<RightKey>');
Ctrl_LeftKey : Write('<Ctrl_LeftKey>');
Ctrl_RightKey : Write('<Ctrl_RightKey>');
InsKey : Write('<InsKey>');
DelKey : Write('<DelKey>');
HomeKey : Write('<HomeKey>');
EndKey : Write('<EndKey>');
PageUp : Write('<PageUp>');
PageDown : Write('<PageDown>');
Ctrl_HomeKey : Write('<Ctrl_HomeKey>');
Ctrl_EndKey : Write('<Ctrl_EndKey>');
Ctrl_PageUp : Write('<Ctrl_PageUp>');
Ctrl_PageDown : Write('<Ctrl_PageDown>');
F1 : Write('<F1>');
F2 : Write('<F2>');
F3 : Write('<F3>');
F4 : Write('<F4>');
F5 : Write('<F5>');
F6 : Write('<F6>');
F7 : Write('<F7>');
F8 : Write('<F8>');
F9 : Write('<F9>');
F10 : Write('<F10>');
Shift_F1 : Write('<Shift_F1>');
Shift_F2 : Write('<Shift_F2>');
Shift_F3 : Write('<Shift_F3>');
Shift_F4 : Write('<Shift_F4>');
Shift_F5 : Write('<Shift_F5>');
Shift_F6 : Write('<Shift_F6>');
Shift_F7 : Write('<Shift_F7>');
Shift_F8 : Write('<Shift_F8>');
Shift_F9 : Write('<Shift_F9>');
Shift_F10 : Write('<Shift_F10>');
Alt_F1 : Write('<Alt_F1>');
Alt_F2 : Write('<Alt_F2>');
Alt_F3 : Write('<Alt_F3>');
Alt_F4 : Write('<Alt_F4>');
Alt_F5 : Write('<Alt_F5>');
Alt_F6 : Write('<Alt_F6>');
Alt_F7 : Write('<Alt_F7>');
Alt_F8 : Write('<Alt_F8>');
Alt_F9 : Write('<Alt_F9>');
Alt_F10 : Write('<Alt_F10>');
Ctrl_F1 : Write('<Ctrl_F1>');
Ctrl_F2 : Write('<Ctrl_F2>');
Ctrl_F3 : Write('<Ctrl_F3>');
Ctrl_F4 : Write('<Ctrl_F4>');
Ctrl_F5 : Write('<Ctrl_F5>');
Ctrl_F6 : Write('<Ctrl_F6>');
Ctrl_F7 : Write('<Ctrl_F7>');
Ctrl_F8 : Write('<Ctrl_F8>');
Ctrl_F9 : Write('<Ctrl_F9>');
Ctrl_F10 : Write('<Ctrl_F10>');
End;
If ASCIIKey Then Write(Chr(Ch)); { If it's an ASCII key then display it }
Until Ch = $001B; { Continue program until ESC is pressed }
End.