1234567891011121314151617181920212223242526272829303132333435363738394041
#include <iostream> #include <string> #include <windows.h> #include <WinBase.h> #include <stdio.h> using namespace std; int i = 0; int size; char ToKey[]; bool Spam = false; string Chars; int a; void Sendkey(char Key1) { keybd_event(VkKeyScan(Key1),0x9d,0,0); keybd_event(VkKeyScan(Key1),0x9d,KEYEVENTF_KEYUP,0); } int main() { auto size = sizeof(*ToKey)/sizeof(ToKey[0]); cout << "Enter Text." <<endl; cin >> ToKey; cout << "Put in the word 'start' to activate it!"; cin >> Chars; while(true) { if (Chars=="start") { if (Spam == false) { Spam = true; } else{ Spam = false;}} if (Spam) {Sendkey(ToKey[i]);} if (i==size) { Sleep(10);} i++;} cin.get(); return 0; }
#include <iostream> #include <string> #include <windows.h> #include <WinBase.h> #include <stdio.h> using namespace std; int i = 0; int size; char ToKey[]; bool Spam = false; string Chars; int a; bool Start = true; void Sendkey(char Key1) { keybd_event(VkKeyScan(Key1),0x9d,0,0); keybd_event(VkKeyScan(Key1),0x9d,KEYEVENTF_KEYUP,0); } int main() { auto size = sizeof(*ToKey)/sizeof(ToKey[0]); cout << "Enter Text." <<endl; cin >> ToKey; cout << "Put in the word 'start' to activate it!"; cin >> Chars; while(Start) { if (Chars=="start") { if (Spam == false) { Spam = true; } else{ return 0;}} if (Spam) {Sendkey(ToKey[i]);} if (i==size) { i = 0; Sleep(10);} i++;} }