Results 1 to 3 of 3
  1. #1
    Itsumi's Avatar
    Join Date
    Jan 2018
    Gender
    male
    Location
    Vladivostok, Russia
    Posts
    13
    Reputation
    10
    Thanks
    15
    My Mood
    Hot

    Lightbulb Hour Idler - Need some info and suggestions

    Overwatch Hour Idler


    Okayyyy, haven't been on here in a while. I have recently been studying computer science at college and focusing on that. However, I recently just bought Overwatch, and I noticed your total hours played is only what you spend in game, not in the actual menu screen or what not. So I wanted to make an hour idler, I'm not too familiar with how Overwatch tracks hours and kicks you for inactivity. I'm way too lazy to trail and error it, so I was wondering if any of ya'll had any information on how that works. Or if you think this would even be worth it to make, I am decent at the game but find myself getting kicked from groups because of my low hours.

    Anyway, if any of you have some information, I was just thinking of throwing together a simple c++ program that posts key messages to the game moving around and shooting randomly. Not sure if it will work, but I might try it when I get some feedback. Thanks for taking the time to read this shit-post. (not actually a shit-post).

    Cheers,
    Itsumi



    Whoever said "nothing is impossible" clearly never tried slamming a revolving door.
    Fuck you Ryan.


  2. #2
    Chloe97's Avatar
    Join Date
    Feb 2019
    Gender
    female
    Posts
    3
    Reputation
    10
    Thanks
    0
    In quickplay/comp there's an inactivity timer that relies on you doing or taking damage, so you can't just sit around in spawn. However, there might be a way to automate leaving spawn. If you wanna talk about this some more, add me on dis cord: Chloe97#1088

  3. #3
    Itsumi's Avatar
    Join Date
    Jan 2018
    Gender
    male
    Location
    Vladivostok, Russia
    Posts
    13
    Reputation
    10
    Thanks
    15
    My Mood
    Hot
    Quote Originally Posted by Chloe97 View Post
    In quickplay/comp there's an inactivity timer that relies on you doing or taking damage, so you can't just sit around in spawn. However, there might be a way to automate leaving spawn. If you wanna talk about this some more, add me on dis cord: Chloe97#1088
    I've done some testing and you're absolutely right. Even in 'v.s. AI' it will kick you if you're not doing damage. Because every map spawn is slightly different, i'm not sure how I would go about just shooting randomly and hoping to get some damage every so often. Here's the code I've written so far, it will move your character in a square and shoot at an interval. Not fantastic, but it's something to build off of. So feel free to add on, reply or DM on d1sc0rd (Maysen#0001) if you get anywhere.

     

    Code:
    #include <iostream>
    #include <string>
    #include <windows.h>
    #include <winuser.h>
    #include <iomanip>
    #include <windows.h>
    #include <Lmcons.h>
    #include <conio.h>
    
    using namespace std;
    
    int main();
    void startup();
    void w(string par1);
    void cl(int par1);
    void pressKey(int keycode);
    void holdKey(int key);
    void releaseKey(int key);
    
    string trim(string par1);
    string flag = "";
    char username[UNLEN+1];
    string un;
    DWORD username_len = UNLEN+1;
    RECT gr;
    
    HWND gHandle;
    HANDLE cHandle = GetStdHandle(STD_OUTPUT_HANDLE);
    
    int main()
    {
        // Set Title
        SetConsoleTitle((LPCSTR)"Overwatch Hour Idler by ItsumiMPGH");
    
        cout << "Type the passphrase from the original thread: ";
        string input;
        cin >> input;
        if (input != "moiraistrash") {
            exit(-1);
        }
    
        system("cls");
    
        // Startup and attach to game
        startup();
    
        // Set overwatch text
        cl(0x6);w("OHI/" + un);cl(0x7);w(" >> Hooking game...\n");
        SetWindowText(gHandle, (LPCSTR)"Overwatch, Idling Hours by ItsumiMPGH");
        GetWindowRect(gHandle, &gr);
    
        // Greet the user
        cl(0x6);w("OHI/" + un);cl(0x7);w(" >> ");cl(0xa);w("Welcome to ");cl(0xd);w("O");cl(0xa);w("verwatch ");cl(0xd);w("H");cl(0xa);w("our ");cl(0xd);w("I");cl(0xa);w("dler!\n");cl(0x7);
    
        // Give the user instructions
        cl(0x6);w("OHI/" + un);cl(0x7);w(" >> Please type 'help' for commands.\n");
    
        // Let the user type commands
    returntocommand:
        while (flag == trim("")) {
            cl(0x6);w("OHI/" + un);cl(0x7);w(" >> ");
            cin >> flag;
        }
    
        if (flag == "exit") {
            goto exitme;
        } else if(flag == "help") {
            cl(0x6);w("OHI/" + un);cl(0x7);w(" >> Command List:\n");
            cl(0xa);
            cout << setw(10) << "help" << " - Lists all available commands.\n";
            cout << setw(10) << "exit" << " - Exits the program and cleans up attachment.\n";
            cout << setw(10) << "idle" << " - Prompts you to join game and then idles for you.\n";
        } else if (flag == "idle") {
            cl(0x6);w("OHI/" + un);cl(0x7);w(" >> ");cl(0xa);w("Please enter any game. Then press Y. Hold Ctrl+V to stop.\n");cl(0x7);
            if (getch() == 'y') {
                cl(0x6);w("OHI/" + un);cl(0x7);w(" >> ");cl(0x6);w("Currently Idling...\n");
                while (!(GetKeyState(VK_CONTROL) && GetKeyState('V'))) {
                    mouse_event(MOUSEEVENTF_LEFTDOWN, 90, gr.bottom - 155, 0, 0);
                    mouse_event(MOUSEEVENTF_LEFTUP, 90, gr.bottom - 155, 0, 0);
                    Sleep(60);
                    mouse_event(MOUSEEVENTF_LEFTDOWN, 90, gr.bottom - 155, 0, 0);
                    mouse_event(MOUSEEVENTF_LEFTUP, 90, gr.bottom - 155, 0, 0);
                    holdKey(0x57);
                    mouse_event(MOUSEEVENTF_LEFTDOWN, 90, gr.bottom - 155, 0, 0);
                    Sleep(500);
                    mouse_event(MOUSEEVENTF_LEFTUP, 90, gr.bottom - 155, 0, 0);
                    releaseKey(0x57);
                    holdKey(0x44);
                    mouse_event(MOUSEEVENTF_LEFTDOWN, 90, gr.bottom - 155, 0, 0);
                    Sleep(500);
                    mouse_event(MOUSEEVENTF_LEFTUP, 90, gr.bottom - 155, 0, 0);
                    releaseKey(0x44);
                    holdKey(0x53);
                    mouse_event(MOUSEEVENTF_LEFTDOWN, 90, gr.bottom - 155, 0, 0);
                    Sleep(500);
                    mouse_event(MOUSEEVENTF_LEFTUP, 90, gr.bottom - 155, 0, 0);
                    releaseKey(0x53);
                    holdKey(0x41);
                    mouse_event(MOUSEEVENTF_LEFTDOWN, 90, gr.bottom - 155, 0, 0);
                    Sleep(500);
                    mouse_event(MOUSEEVENTF_LEFTUP, 90, gr.bottom - 155, 0, 0);
                    releaseKey(0x41);
                }
            cl(0x6);w("OHI/" + un);cl(0x7);w(" >> ");cl(0xc);w("Stopped Idling...\n");
            MessageBoxA(gHandle, "OHI has stopped idling.", "Idling Complete", 0);
            }
        } else {
            cl(0x6);w("OHI/" + un);cl(0x7);w(" >> ");cl(0xc);w("'" + flag + "' is not recognized as a command.\n");cl(0x7);
        }
        flag = "";
        goto returntocommand;
    
    exitme:
        // Clean up
        cl(0x6);w("OHI/" + un);cl(0x7);w(" >> Cleaning up...\n");
        SetWindowText(gHandle, (LPCSTR)"Overwatch");
        Sleep(2000);
        return 0;
    }
    
    void startup() {
        cl(0x6);
        w("OHI/" + un);
        cl(0x7);
        w(" >> Starting up...\n");
        Sleep(2000);
        GetUserName(username, &username_len);
        un = (string)username;
        gHandle = FindWindowA(NULL, static_cast<LPCSTR>("Overwatch, Idling Hours by ItsumiMPGH"));
        if (gHandle == NULL) {
                gHandle = FindWindowA(NULL, static_cast<LPCSTR>("Overwatch"));
        } else if (gHandle == NULL) {
            cl(0x6);w("OHI/" + un);cl(0x7);w(" >> ");cl(0xc);w("Game is not running!!");cl(0x7);
            Sleep(3000);
            exit(-1);
        }
    }
    
    void w(string par1) {
        cout << par1;
    }
    
    void cl(int par1) {
        SetConsoleTextAttribute(cHandle, par1);
    }
    
    string trim(string par1) {
        return par1.erase(par1.find_last_not_of(" \n\r\t")+1);
    }
    
    void pressKey(int key) {
        SetForegroundWindow(gHandle);
        keybd_event(key, 0, 0, 0); //Press down the Key
        keybd_event(key, 0, KEYEVENTF_KEYUP, 0); //Release the Key
    }
    
    void holdKey(int key) {
        SetForegroundWindow(gHandle);
        keybd_event(key, 0, 0, 0); // Press Down Key
    }
    
    void releaseKey(int key) {
        SetForegroundWindow(gHandle);
        keybd_event(key, 0, KEYEVENTF_KEYUP, 0); // Release Key
    }



    Whoever said "nothing is impossible" clearly never tried slamming a revolving door.
    Fuck you Ryan.


Similar Threads

  1. introduction and also need some info
    By kickass_cf in forum Member Introduction & Return
    Replies: 4
    Last Post: 09-03-2014, 02:59 PM
  2. Ayee chefs, I need some quality music suggestions :D
    By xdesignerx in forum Member Introduction & Return
    Replies: 1
    Last Post: 03-17-2010, 03:24 PM
  3. [Help] Need some help and reporting...
    By sfgwerg in forum Battlefield Heroes Hacks
    Replies: 3
    Last Post: 12-21-2009, 10:38 PM
  4. i need some info
    By uselessnoob in forum Call of Duty 4 - Modern Warfare (MW) Hacks
    Replies: 0
    Last Post: 12-18-2008, 11:20 AM
  5. [help request]Need some info in order to make my own aimbot
    By wolfff in forum Combat Arms Hacks & Cheats
    Replies: 90
    Last Post: 11-07-2008, 04:03 PM

Tags for this Thread