my program writes wasd123wasd123, but i dont know how to make it writing 1ws2aasd22ww. How to make random presser? Can someone help me?
#include <iostream>
#include <windows.h>
#include <stdlib.h>
using namespace std;
int main ()
{
for(;;){
Sleep(1000);
rand();
keybd_event(VkKeyScan('w'),0,0,0);
Sleep(1000);
rand();
keybd_event(VkKeyScan('a'),0,0,0);
Sleep(1000);
rand();
keybd_event(VkKeyScan('s'),0,0,0);
Sleep(1000);
rand();
keybd_event(VkKeyScan('d'),0,0,0);
Sleep(1000);
rand();
keybd_event(VkKeyScan('1'),0,0,0);
Sleep(1000);
rand();
keybd_event(VkKeyScan('2'),0,0,0);
Sleep(1000);
rand();
keybd_event(VkKeyScan('3'),0,0,0);
}
return 0;
}