1# uinput 2 3 4**uinput** provides commands to simulate user operations on devices. It can be used in stability test and other pressure tests. 5 6 7## Prerequisites 8 9- The [environment setup](hdc.md#environment-setup) is complete. 10 11- The devices are properly connected. 12 13 14## Features 15 16| Command| Description| 17| -------- | -------- | 18| -K --keyboard | Injects a key event.| 19| -T --touch | Injects a touch event.| 20| -M --mouse | Injects a mouse event.| 21| -k --knuckle | Injects a knuckle event.| 22| -? --help | Displays help information.| 23 24 25## Example 26 271. Run **uinput -K -d 18 -u 18** to press and release the **Power** button. For details about the keycode values, see [KeyCode](../reference/apis-input-kit/js-apis-keycode.md). 28 292. Run **uinput -T -m 100 200 500 800 1000** to move finger from coordinate (100, 200) to (500, 800) in 1 second. 30