当前位置:网站首页>My younger brother Dan Teng, yincuisiting, is a robot human typewriter~~~~~~
My younger brother Dan Teng, yincuisiting, is a robot human typewriter~~~~~~
2022-06-09 18:38:00 【Thomas Train spray and smoke】
Good brother Shan Teng , Because cuisiting , Machine human typing ~~~~~~
There is no nutrition in the blog content. After reading it, you will not only suffer from malnutrition, but also impotence.
import java.awt.Robot;
import java.awt.event.KeyEvent;
import java.util.stream.IntStream;
/**
*
* @author Thomas Train spray and smoke
*
*/
public class CrazyTypist {
private static final int[] KEYS = {
KeyEvent.VK_T, KeyEvent.VK_U, KeyEvent.VK_O,
KeyEvent.VK_M, KeyEvent.VK_A,
KeyEvent.VK_S, KeyEvent.VK_I,
KeyEvent.VK_X, KeyEvent.VK_I, KeyEvent.VK_A, KeyEvent.VK_O,
KeyEvent.VK_H, KeyEvent.VK_U, KeyEvent.VK_O,
KeyEvent.VK_C, KeyEvent.VK_H, KeyEvent.VK_E
};
public static void main(String[] args) throws Exception {
// establish Windows Command open Notepad
Runtime.getRuntime().exec("notepad");
Robot robot = new Robot();
robot.delay(1000);
// Call up Chinese input method
robot.keyPress(KeyEvent.VK_CONTROL);
robot.keyPress(KeyEvent.VK_SHIFT);
robot.keyRelease(KeyEvent.VK_SHIFT);
robot.keyRelease(KeyEvent.VK_CONTROL);
// Input text
IntStream.of(KEYS).forEach(key -> {
robot.keyPress(key);
robot.keyRelease(key);
robot.delay(200);
});
robot.keyPress(KeyEvent.VK_SPACE);
}
}

边栏推荐
- Chen's technology exchange group recruits~
- Kubectl latest common command --v1.24 version
- CAM350 checking Gerber and drilling files
- Alibaba open source TTL is used in microservices to gracefully realize inter thread reuse of identity information
- 转:彼得·德鲁克:什么样的老师才是真正的老师?
- 一些我平常用到的软件
- CORTEX-A9三星iTOP-4412开发开发板入门嵌入式
- 图解|高性能服务器设计之缓存系统一致性
- 混合云存储发展方向
- How to set up wireless host link communication between Kingview and OMRON PLC?
猜你喜欢

Illustration | cache system consistency for high performance server design

AD PCB画图透明度

QUIC会成为互联网传输的颠覆者吗?

【PB03F 环境搭建】蓝牙5.2安信可PB-03F-Kit开发板二次开发环境搭建

Win10安装WSL1在D、E、F盘

刷脸认证如何实现人脸又快又准完成校验?

C# 32. Select a network card from the static class implementation drop-down box

How to set up wireless host link communication between Kingview and OMRON PLC?

20220603怎么查询公网IP

Loop structure programming 2
随机推荐
尽一份孝心,为家人做一个老人防摔报警系统
11年程序员给本科、研究生应届生以及准备从事后台开发同学的建议,学习进阶之路
函数及其应用
DM8 5 methods to view SQL execution plan (for test + tuning)
深度学习与CV教程(10) | 轻量化CNN架构 (SqueezeNet,ShuffleNet,MobileNet等)
解析:稳定币不是“稳定的币” 其本质是一种产品
Singular Value Decomposition(SVD)
Do your filial duty to make an old people's fall prevention alarm system for your family
DL|循环神经网络部分
[operation tutorial] how to correctly use the Hikvision demo tool to configure the channel to go online?
Golang基础(4)
C# 30. 字符串截取
Twitter plans to provide musk with access to relevant databases as early as this week
有源差分探头在USB2.0一致性分析测试的准备工作
155_ Model_ Safety stock of power Bi & power pivot purchase, sales and inventory
MySQL并行复制(MTS)原理(完整版)
STLink-V2-1烧录成CMSIS-DAP
选择结构程序设计
推特计划向马斯克提供相关数据库访问权限,最早或于本周提供
Golang Foundation (4)