On Error Resume Next
Dim hwnd As Long
hwnd = FindWindow(vbNullString, "Garena")
EnumChildWindows hwnd, AddressOf WndEnumChildProc, List1
If TextBoxHwnd > 0 Then
Beep
For x = 0 To 25
PostMessage TextBoxHwnd, WM_CHAR, &H3A9, 0
'EnableWindow TextBoxHwnd, 1
Next x
Else
MsgBox "<Тут сообщение об ошибке>", vbCritical, AppName
End If
On Error Resume Next
Dim hwnd As Long
hwnd = FindWindow(vbNullString, "Garena")
EnumChildWindows hwnd, AddressOf WndEnumChildProc, vbNull
If TextBoxHwnd > 0 Then
For x = 1 To Len(Text1.Text)
SendMessage TextBoxHwnd, WM_KEYDOWN, Asc(Mid(Text1.Text, x, 1)), 0
SendMessage TextBoxHwnd, WM_KEYUP, Asc(Mid(Text1.Text, x, 1)), 0
Next x
Else
MsgBox "<Тут мессага об ошибке>", vbCritical, AppName
End If
Сейчас этот форум просматривают: Yandex-бот и гости: 46