-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.cpp
35 lines (33 loc) · 903 Bytes
/
app.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#include <iostream>
#include <WinUser.h>
#include <Windows.h>
using namespace std;
void spam(char str[], int spd){
keybd_event(VK_RETURN,0,0,0);
for(int i = 0; i < sizeof(str); i++){
keybd_event(str[i],0,0,0);
}
keybd_event(VK_RETURN,0,0,0);
Sleep(spd);
}
int main(){
char text[500];
unsigned long long int times;
unsigned int speed;
cout<<"Enter text[max 500 chars]:"<<endl;
cin>>text;
cout<<"Enter how many times to spam[max 18, 446, 744, 073, 709, 551, 615 - I don't recommend to use max value]:"<<endl;
cin>>times;
cout<<"Enter delay between messages[ms]:"<<endl;
cin>>speed;
system("cls");
for(int i = 0; i < 10; i++){
cout<<"Now click where you want to spam"<<endl;
cout<<"Countdown: "<<i<<endl;
Sleep(1000);
}
for(int i = 0; i < times; i++){
spam(text, speed);
}
return 0;
}