Page 1 of 3 123 LastLast
Results 1 to 15 of 31
  1. #1
    Kallisti's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Location
    深い碧の果てに
    Posts
    4,019
    Reputation
    52
    Thanks
    376
    My Mood
    In Love

    [Code]Most productive thing i made that works for a while.

    you can comment about more efficient means of doing things, i wont listen.

    I already know it's dirty and inneficient as possible, and i know how to make it more efficient.

    if you want it, just c+p the source, im too lazy(and tired) to upload and get vscans

    ill add 16:10 Support later NYA~

    [php]
    #include <iostream>
    #include <windows.h>
    using namespace std;
    int main()
    {
    int xMax, yMax, ratio, ratioTest;
    int x = 0;
    int y = 0;
    cout << "Ratio:\n1.(4:3)\n2.(16:9)\n";
    cin >> ratio;

    if(ratio == 1)
    {
    cout << "Ratio set for 4:3\n";
    cout << "Enter the max X and Y for your monitor\n";
    cin >> xMax >> yMax;
    ratioTest = xMax * 0.75f;
    if(yMax != ratioTest)
    {
    cout << "Wrong x and y values for your monitor, exiting.\n";
    Sleep(3000);
    return 0;
    }
    if(yMax == ratioTest)
    {
    cout << "The x and y match the aspect ratio.\nNow Set the velocity(anything above 20 is insanely fast.)\n";
    int vel;
    cin >> vel;
    cout << "velocity set for " << vel << ". Commencing possestion in 3 seconds\n";
    Sleep(3000);

    while(true)
    {
    possess: //press thx now!
    SetCursorPos(x,y);
    x = vel+x;
    y = x * 0.75f;
    Sleep(15);
    if((x==xMax)&&(y==yMax))
    {
    x=0;
    y=0;
    goto possess;
    }
    if(GetAsyncKeyState(VK_END))
    {
    return 0;
    }
    }
    }
    }



    if(ratio == 2)
    {
    cout << "Ratio set for 16:9\n";
    cout << "Enter the max X and Y for your monitor\n";
    cin >> xMax >> yMax;
    ratioTest = xMax * 0.5625f;
    if(yMax != ratioTest)
    {
    cout << "Wrong x and y values for your monitor, exiting.\n";
    Sleep(3000);
    return 0;
    }
    if(yMax == ratioTest)
    {
    cout << "The x and y match the aspect ratio.\nNow Set the velocity(anything above 20 is insanely fast.)\n";
    int vel;
    cin >> vel;
    cout << "velocity set for " << vel << ". Commencing possestion in 3 seconds\n";
    Sleep(3000);

    while(true)
    {
    possess1: //press thx, get bacon, eat bacon
    SetCursorPos(x,y);
    x = vel+x;
    y = x * 0.5625f;
    Sleep(15);
    if((x==xMax)&&(y==yMax))
    {
    x=0;
    y=0;
    goto possess1;
    }
    if(GetAsyncKeyState(VK_END))
    {
    return 0;
    }
    }
    }
    }
    }


    [/php]
    Last edited by Kallisti; 10-07-2010 at 06:20 AM.

    未来が見えなくて怖いから
    未来が見えてしまって悲しいから
    目を閉じて優しい思い出に浸ってしまう




  2. #2
    Gab's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    6,716
    Reputation
    1755
    Thanks
    1,543
    And what does it do?

  3. #3
    Kallisti's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Location
    深い碧の果てに
    Posts
    4,019
    Reputation
    52
    Thanks
    376
    My Mood
    In Love
    Quote Originally Posted by xXModz View Post
    And what does it do?
    Read the code and find out

    未来が見えなくて怖いから
    未来が見えてしまって悲しいから
    目を閉じて優しい思い出に浸ってしまう




  4. #4
    doofbla's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    Biel*****/Germany
    Posts
    369
    Reputation
    10
    Thanks
    179
    My Mood
    Psychedelic
    Quote Originally Posted by xXModz View Post
    And what does it do?

    simple afk bot thing it just moves your mouse in the monitor


    @Kallisti: You could use this to get the screen settings then the user don't have to enter it:

    Code:
    x = GetSystemMetrics(SM_CXSCREEN);
    y = GetSystemMetrics(SM_CYSCREEN);
    Last edited by doofbla; 10-07-2010 at 06:14 AM.
    _____________________________________________

    READING TUTORIAL:

    1. READ MY POST
    2. THINK ABOUT MY POST
    3. PRESS THANKS
    4. MAYBE CORRECT MY POSTS :P




    Dijkstra:
    "Computer Science is no more about computers than astronomy is about
    telescopes."


    THANKS BUTTON RIGHT DOWN --->

  5. The Following User Says Thank You to doofbla For This Useful Post:

    Hell_Demon (10-07-2010)

  6. #5
    Kallisti's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Location
    深い碧の果てに
    Posts
    4,019
    Reputation
    52
    Thanks
    376
    My Mood
    In Love
    Quote Originally Posted by doofbla View Post
    simple afk bot thing it just moves your mouse in the monitor


    @Kallisti: You could use this to get the screen settings then the user don't have to enter it:

    Code:
    x = GetSystemMetrics(SM_CXSCREEN);
    y = GetSystemMetrics(SM_CYSCREEN);
    Actually, mouse possesser

    I want the user to enter it, because if they make a mistake they have to try again

    未来が見えなくて怖いから
    未来が見えてしまって悲しいから
    目を閉じて優しい思い出に浸ってしまう




  7. #6
    Kuro Tenshi's Avatar
    Join Date
    Jan 2009
    Gender
    male
    Location
    Where arth thou be
    Posts
    3,635
    Reputation
    70
    Thanks
    746
    My Mood
    Blah
    seems that u where abit high: //press thx, get bacon, eat bacon
    k my bases are full of crap too, nvm.

    dururuMAIN
    SMECKSYTHREADHOOK
    ect.

    this is unconventional but most of the time not patched by some game =3
    DigiDrawing|+ ( (Elfen Archer) )
    Link:
    https://www.mpgh.net/forum/148-showro...en-archer.html


    @ Anime Section,Otaku/weeabo (orz.) @Graphics Section, Novice DigiArtist


    neuest gift from Yura~Chan:
    https://bakyurayuu.deviantar*****m/#/d372taw
    2nd Place MOTM#9 Theme: CharMods - Combat Arms [No - Thanks] button
    come on you know that don't want to push that ordinary button

  8. #7
    Kallisti's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Location
    深い碧の果てに
    Posts
    4,019
    Reputation
    52
    Thanks
    376
    My Mood
    In Love
    I made a more "efficient" version, this time with autodetect.

    [php]#include <iostream>
    #include <Windows.h>
    using namespace std;


    //------------------------------------------Globals----------------------------------------------//
    //----------------------------------------------------------------------------------------------//
    int x = 0;
    int y = 0;
    int xMax = GetSystemMetrics(SM_CXSCREEN);
    int yMax = GetSystemMetrics(SM_CYSCREEN);
    int xFin = 0;
    int yFin = 0;
    int vel = 0;
    int i = 0;

    bool __43;
    bool __1610;
    bool __169;
    //---------------------------------------Functions-------------------------------------------------//
    //------------------------------------------------------------------------------------------------//
    void ret()
    {
    while(i != 6)
    {
    // just to look cool
    cout << "Retrieving your screen resolution and ratio.\n";
    Sleep(1000);
    i++;
    system("cls");
    cout << "Retrieving your screen resolution and ratio..\n";
    Sleep(1000);
    i++;
    system("cls");
    cout << "Retrieving your screen resolution and ratio...\n";
    Sleep(1000);
    i++;
    system("cls");
    cout << "Retrieving your screen resolution and ratio.\n";
    Sleep(1000);
    i++;
    system("cls");
    cout << "Retrieving your screen resolution and ratio..\n";
    Sleep(1000);
    i++;
    system("cls");
    cout << "Retrieving your screen resolution and ratio...\n";
    Sleep(1000);
    i++;
    system("cls");
    }

    cout << "Retrieved!\n";
    cout << "Resolution is " << xMax << " by " << yMax << '\n';
    xFin = xMax;
    yFin = yMax;

    if((xMax * 0.75f) == yMax)
    {
    cout << "Ratio is 4:3\n";
    __43 = true;

    }
    else if((xMax * 0.625f) == yMax)
    {
    cout << "Ratio is 16:10\n";
    __1610 = true;

    }
    else
    {
    cout << "Ratio is 16:9\n";
    __169 = true;

    }
    }



    //---------------------------------------Entry Point---------------------------------------------//
    //----------------------------------------------------------------------------------------------//
    int main()
    {
    ret();
    cout << "Now set the velocity (1-15)\n";
    cin >> vel;
    cout << "Velocity set for " << vel << '\n';
    //----------------------------------------------------------
    //----------------------------------------------------------
    if(__43 == true)
    {
    cout << "Possessing with velocity of " << vel << " in 3 seconds\n";
    Sleep(3000);
    while(true)
    {
    p1:
    SetCursorPos(x,y);
    x = vel+x;
    y = x * 0.75f;
    Sleep(15);

    if((x==xFin)&&(y==yFin))
    {
    x=xFin;
    y=0;
    goto p1;
    }

    if(GetAsyncKeyState(VK_END))
    {
    exit(0);
    }
    }
    }
    ////////////////////////////////////////////////////////////
    ///////////////////////////////////////////////////////////////
    else if(__1610 == true)
    {
    cout << "Possessing with velocity of " << vel << " in 3 seconds\n";
    Sleep(3000);
    while(true)
    {
    p2:
    SetCursorPos(x,y);
    x = vel+x;
    y = x * 0.625f;
    Sleep(15);

    if((x==xFin)&&(y==yFin))
    {
    x=0;
    y=0;
    goto p2;
    }

    if(GetAsyncKeyState(VK_END))
    {
    exit(0);
    }
    }
    }
    /////////////////////////////////////////////////////////////////
    ///////////////////////////////////////////////////////////////////
    else
    {
    cout << "Possessing with velocity of " << vel << " in 3 seconds\n";
    Sleep(3000);
    while(true)
    {
    p3:
    SetCursorPos(x,y);
    x = vel+x;
    y = x * 0.5625f;
    Sleep(15);

    if((x==xFin)&&(y==yFin))
    {
    x=0;
    y=0;
    goto p3;
    }

    if(GetAsyncKeyState(VK_END))
    {
    exit(0);
    }
    }
    }
    //-----------------------------------------------------------
    //-----------------------------------------------------------
    return 0;
    }
    [/php]
    Last edited by Kallisti; 10-07-2010 at 06:02 PM.

    未来が見えなくて怖いから
    未来が見えてしまって悲しいから
    目を閉じて優しい思い出に浸ってしまう




  9. #8
    'Bruno's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Portugal
    Posts
    2,883
    Reputation
    290
    Thanks
    1,036
    My Mood
    Busy
    Quote Originally Posted by Kallisti View Post
    I made a more "efficient" version, this time with autodetect.

    [php]#include <iostream>
    #include <Windows.h>
    using namespace std;


    //------------------------------------------Globals----------------------------------------------//
    //----------------------------------------------------------------------------------------------//
    int x = 0;
    int y = 0;
    int xMax = GetSystemMetrics(SM_CXSCREEN);
    int yMax = GetSystemMetrics(SM_CYSCREEN);
    int xFin = 0;
    int yFin = 0;
    int vel = 0;
    int i = 0;

    bool __43;
    bool __1610;
    bool __169;
    //---------------------------------------Functions-------------------------------------------------//
    //------------------------------------------------------------------------------------------------//
    void ret()
    {
    while(i != 6)
    {
    // just to look cool
    cout << "Retrieving your screen resolution and ratio.\n";
    Sleep(1000);
    i++;
    system("cls");
    cout << "Retrieving your screen resolution and ratio..\n";
    Sleep(1000);
    i++;
    system("cls");
    cout << "Retrieving your screen resolution and ratio...\n";
    Sleep(1000);
    i++;
    system("cls");
    cout << "Retrieving your screen resolution and ratio.\n";
    Sleep(1000);
    i++;
    system("cls");
    cout << "Retrieving your screen resolution and ratio..\n";
    Sleep(1000);
    i++;
    system("cls");
    cout << "Retrieving your screen resolution and ratio...\n";
    Sleep(1000);
    i++;
    system("cls");
    }

    cout << "Retrieved!\n";
    cout << "Resolution is " << xMax << " by " << yMax << '\n';
    xFin = xMax;
    yFin = yMax;

    if((xMax * 0.75f) == yMax)
    {
    cout << "Ratio is 4:3\n";
    __43 = true;

    }
    else if((xMax * 0.625f) == yMax)
    {
    cout << "Ratio is 16:10\n";
    __1610 = true;

    }
    else
    {
    cout << "Ratio is 16:9\n";
    __169 = true;

    }
    }



    //---------------------------------------Entry Point---------------------------------------------//
    //----------------------------------------------------------------------------------------------//
    int main()
    {
    ret();
    cout << "Now set the velocity (1-15)\n";
    cin >> vel;
    cout << "Velocity set for " << vel << '\n';
    //----------------------------------------------------------
    //----------------------------------------------------------
    if(__43 = true)
    {
    cout << "Possessing with velocity of " << vel << " in 3 seconds\n";
    Sleep(3000);
    while(true)
    {
    p1:
    SetCursorPos(x,y);
    x = vel+x;
    y = x * 0.75f;
    Sleep(15);

    if((x==xFin)&&(y==yFin))
    {
    x=xFin;
    y=0;
    goto p1;
    }

    if(GetAsyncKeyState(VK_END))
    {
    exit(0);
    }
    }
    }
    ////////////////////////////////////////////////////////////
    ///////////////////////////////////////////////////////////////
    else if(__1610 = true)
    {
    cout << "Possessing with velocity of " << vel << " in 3 seconds\n";
    Sleep(3000);
    while(true)
    {
    p2:
    SetCursorPos(x,y);
    x = vel+x;
    y = x * 0.625f;
    Sleep(15);

    if((x==xFin)&&(y==yFin))
    {
    x=0;
    y=0;
    goto p2;
    }

    if(GetAsyncKeyState(VK_END))
    {
    exit(0);
    }
    }
    }
    /////////////////////////////////////////////////////////////////
    ///////////////////////////////////////////////////////////////////
    else
    {
    cout << "Possessing with velocity of " << vel << " in 3 seconds\n";
    Sleep(3000);
    while(true)
    {
    p3:
    SetCursorPos(x,y);
    x = vel+x;
    y = x * 0.5625f;
    Sleep(15);

    if((x==xFin)&&(y==yFin))
    {
    x=0;
    y=0;
    goto p3;
    }

    if(GetAsyncKeyState(VK_END))
    {
    exit(0);
    }
    }
    }
    //-----------------------------------------------------------
    //-----------------------------------------------------------
    return 0;
    }
    [/php]
    remote those goto's or not worth reading
    Light travels faster than sound. That's why most people seem bright until you hear them speak.

  10. #9
    Void's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Inline.
    Posts
    3,198
    Reputation
    205
    Thanks
    1,445
    My Mood
    Mellow
    Quote Originally Posted by Brinuz View Post
    remote those goto's or not worth reading
    Gotos aren't all that bad. D:

  11. #10
    Kallisti's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Location
    深い碧の果てに
    Posts
    4,019
    Reputation
    52
    Thanks
    376
    My Mood
    In Love
    Quote Originally Posted by Brinuz View Post
    remote those goto's or not worth reading
    then tell an asm programmer not to use jmps

    未来が見えなくて怖いから
    未来が見えてしまって悲しいから
    目を閉じて優しい思い出に浸ってしまう




  12. #11
    Void's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Inline.
    Posts
    3,198
    Reputation
    205
    Thanks
    1,445
    My Mood
    Mellow
    Quote Originally Posted by Kallisti View Post


    then tell an asm programmer not to use jmps
    It's possible, just call instead of jumping. |:

  13. #12
    Kallisti's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Location
    深い碧の果てに
    Posts
    4,019
    Reputation
    52
    Thanks
    376
    My Mood
    In Love
    Quote Originally Posted by Void View Post
    It's possible, just call instead of jumping. |:
    I'm sure jumps are easier.

    未来が見えなくて怖いから
    未来が見えてしまって悲しいから
    目を閉じて優しい思い出に浸ってしまう




  14. #13
    Void's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Inline.
    Posts
    3,198
    Reputation
    205
    Thanks
    1,445
    My Mood
    Mellow
    Quote Originally Posted by Kallisti View Post


    I'm sure jumps are easier.
    Yes but you said not to use them. |:

  15. #14
    Kallisti's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Location
    深い碧の果てに
    Posts
    4,019
    Reputation
    52
    Thanks
    376
    My Mood
    In Love
    Quote Originally Posted by Void View Post
    Yes but you said not to use them. |:
    I said if he's got something against my gotos he should also have something against jmps

    未来が見えなくて怖いから
    未来が見えてしまって悲しいから
    目を閉じて優しい思い出に浸ってしまう




  16. #15
    Jason's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    /dev/null
    Posts
    5,704
    Reputation
    918
    Thanks
    7,676
    My Mood
    Mellow
    Quote Originally Posted by Kallisti View Post


    I said if he's got something against my gotos he should also have something against jmps
    I swear we resolved the goto business ages ago Patrick

    Quote Originally Posted by Jeremy S. Anderson
    There are only two things to come out of Berkley, Unix and LSD,
    and I don’t think this is a coincidence
    You can win the rat race,
    But you're still nothing but a fucking RAT.


    ++Latest Projects++
    [Open Source] Injection Library
    Simple PE Cipher
    FilthyHooker - Simple Hooking Class
    CLR Injector - Inject .NET dlls with ease
    Simple Injection - An in-depth look
    MPGH's .NET SDK
    eJect - Simple Injector
    Basic PE Explorer (BETA)

Page 1 of 3 123 LastLast

Similar Threads

  1. [request] video recording software that works for ca
    By Hautkopf1488 in forum Combat Arms Hacks & Cheats
    Replies: 15
    Last Post: 08-02-2009, 01:23 AM
  2. Does anyone have a hack that work for vista??
    By ryantjuh98 in forum Combat Arms Europe Hacks
    Replies: 14
    Last Post: 05-02-2009, 02:00 AM
  3. I am looking for a hack that works for cod4
    By got23 in forum Call of Duty 4 - Modern Warfare (MW) Hacks
    Replies: 9
    Last Post: 03-20-2009, 12:52 PM
  4. need chams ONLY hack THAT WORKS for september
    By killerkris14 in forum Combat Arms Hacks & Cheats
    Replies: 2
    Last Post: 09-24-2008, 03:14 PM
  5. [Trading] very new bypass that works for lvl 16 + wr
    By englishpom in forum Trade Accounts/Keys/Items
    Replies: 0
    Last Post: 05-20-2007, 09:16 AM