I need something that will print some other character when a specific key is presses,even if my app has no focus. Like, if I press 'A', then 'E' will be printed instead of 'A'. I have tried the following code and it worked:
Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vKey As Long) As Integer
Private Sub Timer1_Timer()
If GetAsyncKeyState(vbKeyA) = True Then
But apart from this 'Sendkeys' technique, is there any way to capture the keyboard event (before it prints anyt character) and send another event that will print the character I want ....... instead of the original one ?
Waiting for your reply.
Thank you in advance