How can I send to application "Enter", or other keys? I mean:
Code:
Dim hwnd As Int32 = FindWindow("Notepad", Nothing)
If Not hwnd = 0 Then
      hwnd = FindWindowEx(hwnd, 0, "edit", Nothing)
      If Not hwnd = 0 Then
           SendMessage(hwnd, WM_PASTE, 0, 0)
      End If
End If
I won't "paste" something, but send key like "Enter" or "Esc".