Sending Keystrokes to Hidden Window via JNA
问题 Background: I'm sending keystrokes to a program (Text Editor) that I hide and then Send the F7 Key and after that four keys of text (kind of a password). I'm using JNA Library and the SendMessage function of Win32API to send the messages, can't use sendInput() because I need to send to a specific window handle. Code: private static void sendInputToWindow(WinDef.HWND editorWindowHandle, char[] password) throws InterruptedException { User32.INSTANCE.ShowWindow(editorWindowHandle, WinUser.SW