复制到c++打开

#include<bits/stdc++.h>
#include<windows.h>
using namespace std;
#define down(a) keybd_event(a,0,0,0)
#define up(a) keybd_event(a,0,2,0)
#define press(a) down(a),up(a)
#define KEY_DOWN(VK_NONAME) ((GetAsyncKeyState(VK_NONAME) & 0x8000) ? 1:0)
int main() {
	while(1) {
		if(KEY_DOWN('T')) {
			while(KEY_DOWN('T'));
			for(int i=10;i>=1;--i) { 
				press(48+i%10);Sleep(200);
			}
		}
		if(KEY_DOWN('Y')) {
			while(!KEY_DOWN('Y')){
				press(49);
				Sleep(200);
				press(49);
				Sleep(200);
			}
		}
	}
	return 0;
}

按T使用machine gun,按Y自动切阴阳,长按Y停止

更好用的yinyang machine:

#include<bits/stdc++.h>
#include<windows.h>
using namespace std;
#define down(a) keybd_event(a,0,0,0)
#define up(a) keybd_event(a,0,2,0)
#define press(a) down(a),up(a)
#define KEY_DOWN(VK_NONAME) ((GetAsyncKeyState(VK_NONAME) & 0x8000) ? 1:0)
#define stop (KEY_DOWN('Y'))
int main() {
	while(!stop);
	while(stop);
	while(1) {
		press('0');
		Sleep(100);
		if(stop) {
			while(stop);
			while(!stop);
			while(stop);
		}
	}
	return 0;
}