Skip to content

5KeyboardAPI

5.6 Press Keys

On Windows, you can use the KeyboardApi to simulate key presses on the host machine's keyboard.

Warning

This request is only available on Windows (JVM)!

Press keys on the keyboard of the host.

  • string String of keys to be pressed.
  • virtualKeyCodes True if virtual key codes should be used, false for Unicode mode. See WIN32 documentation for a list of virtual key codes.
KeyboardApi.pressKeys("test123", false)
KeyboardApi.INSTANCE.pressKeys("test123", false);