Simulate Keycode and Key Status
Can be used with:
Simulates a key code for a key.
Possible key codes are the characters in the ASCII table between 20h and 7Fh.
For the simulation of a function key simply use the relevant code from the key allocation.
Function key 1, for example, is simulated with key code 192.
The second parameter defines the mode:
0 - Auto : In this mode the key is transferred as pressed or released.
1 - Pressed : Only the setting of the keycode is transferred.
2 - Released : Only the release of the keycode is transferred.
3 - Repeat : This function generates a character repetition as is usual with a standard keyboard.