Hi, im trying to create a program so that when i hit certian keys on my keyboard it will input the special letters used in the German language. eg "Ä", "Ö" etc...
I have managed to do this with the GetAsyncKeyState and the SendKeys statments, however when i press my key, it displays the original character then the german letter.
Example: one of my selected keys is the "[{" key. when i press it the output displays "[Ä"
How can i stop the original character from inputing? here is an example of my code.
Thanks.
Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vKey As Long) As Integer
Private Const VK_OEM_4 = &HDB
Private Sub Timer1_Timer()
Dim A As String
A = "Ä"
If GetAsyncKeyState(VK_OEM_4) Then
SendKeys (A)
End If
End Sub