Page 2 of 2 FirstFirst 12
Results 16 to 22 of 22
  1. #16
    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 Brinuz View Post
    why global vars? i don't really advice doing it...
    I'm not a C++ boy, I don't know why I made them globals. If it makes you happy:

    [php]
    #include <windows.h>



    INT WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
    {
    int MaxX = (LONG)::GetSystemMetrics( SM_CXFULLSCREEN );
    int MaxY = (LONG)::GetSystemMetrics( SM_CYFULLSCREEN );
    int xAxis =0;
    int yAxis =0;

    do
    {

    yAxis++;
    if(yAxis == MaxY)
    {
    if(xAxis == MaxX)
    {
    xAxis = 0;
    yAxis = 0;
    }
    else
    {
    xAxis ++;
    yAxis = 0;
    }
    }
    SetCursorPos(xAxis,yAxis);

    }while(!GetAsyncKeyState(VK_END)&1);

    MessageBoxA(NULL, "How did you know!?", "Well done!", MB_OK);

    }
    [/php]


    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)

  2. #17
    'Bruno's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Portugal
    Posts
    2,883
    Reputation
    290
    Thanks
    1,036
    My Mood
    Busy
    oh btw just a little thing that it's not that special but it's kinda "useless", not that important

    Code:
    int MaxX = GetSystemMetrics( SM_CXFULLSCREEN ); 
    int MaxY = GetSystemMetrics( SM_CYFULLSCREEN );
    this will do fine, you don't need the cast to LONG.. neither include the scope operator (::, i think that's the name, it's like using "Me." at VB or "This." at C# to access functions inside your class/module, pointless).

    I just looked trough the code, and 2 nested for's it's easier to understand =D gj anyway ~.~
    Light travels faster than sound. That's why most people seem bright until you hear them speak.

  3. #18
    SuperEdo95's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Posts
    4
    Reputation
    10
    Thanks
    0
    My Mood
    Drunk
    Good tutorial

  4. #19
    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 Brinuz View Post
    oh btw just a little thing that it's not that special but it's kinda "useless", not that important

    Code:
    int MaxX = GetSystemMetrics( SM_CXFULLSCREEN ); 
    int MaxY = GetSystemMetrics( SM_CYFULLSCREEN );
    this will do fine, you don't need the cast to LONG.. neither include the scope operator (::, i think that's the name, it's like using "Me." at VB or "This." at C# to access functions inside your class/module, pointless).

    I just looked trough the code, and 2 nested for's it's easier to understand =D gj anyway ~.~
    Yeah but I don't know shit all about C++ so . I told you I C+Ped those GetSystemMetrics snippets from a site I googled

    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)

  5. #20
    NextGen1's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Not sure really.
    Posts
    6,312
    Reputation
    382
    Thanks
    3,019
    My Mood
    Amazed
    Quote Originally Posted by J-Deezy View Post


    Yeah but I don't know shit all about C++ so . I told you I C+Ped those GetSystemMetrics snippets from a site I googled
    Yeah, right after you did this ... ..... Noob /... j/k


     


     


     



    The Most complete application MPGH will ever offer - 68%




  6. #21
    Auxilium's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    深い碧の果てに
    Posts
    4,518
    Reputation
    445
    Thanks
    609
    My Mood
    Happy
    nice conversation guise

  7. #22
    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 NextGen1 View Post


    Yeah, right after you did this ... ..... Noob /... j/k
    .

























    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 2 of 2 FirstFirst 12

Similar Threads

  1. [Tutorial] How To Mack HotKeys On VB
    By TheRedEye in forum WarRock - International Hacks
    Replies: 32
    Last Post: 06-23-2007, 10:24 PM
  2. [Tutorial]How to set all maps FREE
    By tony94 in forum WarRock - International Hacks
    Replies: 18
    Last Post: 05-30-2007, 12:26 PM
  3. [Tutorial]How to find some Hacks
    By mental81 in forum WarRock - International Hacks
    Replies: 22
    Last Post: 04-06-2007, 10:50 AM
  4. [TUTORIAL]How to control an airplane :p and ofcourse insert it
    By System79 in forum WarRock - International Hacks
    Replies: 8
    Last Post: 07-09-2006, 03:44 PM
  5. Replies: 13
    Last Post: 02-09-2006, 10:25 PM