KEYLOGGER
Dê uma olhada. Mas não consegui fazer que funcione. A intenção é que trocaria as letras ao digitar, nos programas.
Módulo
Attribute VB_Name = "Module1"
Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vKey As Long) As Integer
Sub main()
Form1.Show
End Sub
FORM1
Option Explicit
Private KeyAscii As Integer
Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vKey As Long) As Integer
Private Sub Form_Load()
txtmoitas.Text = ""
End Sub
Private Sub Timer1_Timer()
CheckForKeyPress
End Sub
Sub CheckForKeyPress()
With txtmoitas
If GetAsyncKeyState(vbKeyN) Then
'If txtmoitas = "ñ" Then
If KeyAscii = Asc("ñ") Then
End If
End If
End With
End Sub
End Sub