How can I send to application "Enter", or other keys? I mean:
I won't "paste" something, but send key like "Enter" or "Esc".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




Reply With Quote