Lol, I need some help with this:
It's an autotyper...
What I'm trying to make this one do is
• Ask you 'How many times should the spamming loop for?'
• How much delay/wait/sleep time in between messages?
• How many lines you want spammed
• Requests what you want in spammed and stores it in the corresponding cell of the array
• Spams!!
• Future plans: Make GUI(wayyy in future), Add a hotkey to stop / pause the program such as ctrl + s or F8
What it does right now:
• SUCKS!
If you have another autotyper, simpler or not hopefully more complex, please post, I want to learn from that.Code:#include <iostream> #include <windows.h> #include "SendKeys.h" //http://www.codeproject.com/KB/cpp/sendkeys_cpp_Article.aspx using namespace std; int MainLoop,TimesSpammed,ActualTimesSpammed,LinesSpammed,WhichSpamLine,Wait,null1,null2; const char *LinesToBeSpammed[LinesSpammed]; void defvar() { const char *LinesToBeSpammed [LinesSpammed]; printf("How much wait time do you want in between spammed messages?\n(This is in milliseconds, to convert multiply how many seconds times 1000)\n"); cin >> Wait; printf("How many lines would you like to spam?\n"); cin >> LinesSpammed; for (;LinesSpammed = *LinesToBeSpammed[LinesSpammed]; LinesSpammed++) { cout << "Please type what you would like spammed for line number "<<LinesSpammed<<".\n)"; cin >> LinesToBeSpammed[LinesSpammed]; } return 1; //will this close it? } int main() { const char *LinesToBeSpammed [LinesSpammed]; printf("How many times would you like to spam?\n"); cin >> TimesSpammed; if (TimesSpammed==0) { printf("Please enter a number higher then 0\n"); } else { int defvar(); } Sleep(Wait); //seconds or milliseconds? I keep forgetting. for (;ActualTimesSpammed != TimesSpammed;ActualTimesSpammed++) { SendKeys("{DELAY=Wait}LinesToBeSpammed[ActualTimesSpammed]~"); //ActualTimesSpammed++; } }





Reply With Quote

Bookmarks