java微信实现窗口自动输入(微信骚扰机)
直接在编程器里面输入就ok,然后在开始运行前,记得把光标移动到微信的对话窗口中。
package com;
import java.awt.AWTException;
import java.awt.Desktop;
import java.awt.Robot;
import java.awt.event.KeyEvent;
import java.io.File;
import java.io.IOException;
public class vx {
static Desktop deskapp = Desktop.getDesktop();
public static void main(String [] args) throws AWTException{
inputvx();
}
/**
* 仅供娱乐使用
* 重要事情说三遍
*仅供娱乐使用
*仅供娱乐使用
*仅供娱乐使用
**/
public static void openvx(){
//判断当前系统释放支持Desktop提供的接口
if(Desktop.isDesktopSupported()){
try {
deskapp.open(new File("D:\\Program Files\\WeChat\\Bin\\WeChatScLauncher.exe"));
} catch (IOException e) {
e.printStackTrace();
}
}
}
public static void inputvx() throws AWTException{
Robot robot = new Robot();
robot.delay(100);//可以控制发送间隔时间
//点击鼠标左键(目的是让光标放到vx上)
TestInput.mouseLeftHit(robot);
for(int i = 0 ; i < 20; i++){
//输入文案
TestInput.keyPressString(robot, "[Laugh] ,我可能需要杯蜜桃四季春");
//自动按下回车
TestInput.keyPress(robot, KeyEvent.VK_ENTER);
}
}
}
在最后附上一些微信的经典表情包:
祝各位玩得愉快。
替换关键字 | 英文代码 |
微笑 | [Smile] |
伤心 | [Grimace] |
美女 | [Drool] |
发呆 | [Scowl] |
墨镜 | [CoolGuy] |
哭 | [Sob] |
羞 | [Shy] |
哑 | [Silent] |
睡 | [Sleep] |
哭 | [Cry] |
囧 | [Awkward] |
怒 | [Angry] |
调皮 | [Tongue] |
笑 | [Grin] |
惊讶 | [Surprise] |
难过 | [Frown] |
酷 | [Ruthless] |
汗 | [Blush] |
抓狂 | [Scream] |
吐 | [Puke] |
笑 | [Chuckle] |
快乐 | [Joyful] |
奇 | [Slight] |
傲 | [Smug] |
饿 | [Hungry] |
累 | [Drowsy] |
吓 | [Panic] |
汗 | [Sweat] |
高兴 | [Laugh] |
闲 | [Commando] |
努力 | [Determined] |
骂 | [Scold] |
疑问 | [Shocked] |
秘密 | [Shhh] |
乱 | [Dizzy] |
疯 | [Tormented] |
哀 | [Toasted] |
鬼 | [Skull] |
打击 | [Hammer] |
bye | [Wave] |
汗 | [Speechless] |
抠 | [NosePick] |
鼓掌 | [Clap] |
糟糕 | [Shame] |
恶搞 | [Trick] |
什么 | [Bah!L] |
什么 | [Bah!R] |
累 | [Yawn] |
看 | [Pooh-pooh] |
难过 | [Shrunken] |
难过 | [TearingUp] |
坏 | [Sly] |
亲 | [Kiss] |
吓 | [Wrath] |
可怜 | [Whimper] |
刀 | [Cleaver] |
水果 | [Watermelon] |
酒 | [Beer] |
篮球 | [Basketball] |
乒乓 | [PingPong] |
咖啡 | [Coffee] |
美食 | [Rice] |
动物 | [Pig] |
鲜花 | [Rose] |
枯 | [Wilt] |
唇 | [Lips] |
爱 | [Heart] |
分手 | [BrokenHeart] |
生日 | [Cake] |
电 | [Lightning] |