Results 1 to 6 of 6
  1. #1
    nukeist_'s Avatar
    Join Date
    Jul 2007
    Location
    in HELL
    Posts
    295
    Reputation
    12
    Thanks
    92

    How to code a timer in visual C++ 6.0

    Yeah I'm having trouble with precisely that. I made a stamina hack just now and i put it on a "for" loop but it took up 50% of my cpu and lagged the server along with my internet connection. Help?

  2. #2
    deekay's Avatar
    Join Date
    Jan 2006
    Posts
    51
    Reputation
    11
    Thanks
    4
    Looping Timers are pretty bad stuff when your Timer is set to milliseconds.

    Shoul look like this when dobbleclicked on your timer:


    Code:
    private: System::Void timer1_Tick(System::Object *  sender, System::EventArgs *  e)
             {
                           if( WarRockRuns( ) )
                 {
                    if( vars.Stamina )
                    {
                        int Staminavalue = 1120403456;
                        data_process( ( void* )ADDR_STAMINA, &Staminavalue, sizeof( int ) );
                    }
                       }
                     }
    Plant a Checkbox on your Form and Dobble Click:



    Code:
    vars.stamina = !vars.stamina;

  3. #3
    Threadstarter
    Dual-Keyboard Member
    nukeist_'s Avatar
    Join Date
    Jul 2007
    Location
    in HELL
    Posts
    295
    Reputation
    12
    Thanks
    92
    Quote Originally Posted by deekay View Post
    Looping Timers are pretty bad stuff when your Timer is set to milliseconds.

    Shoul look like this when dobbleclicked on your timer:


    Code:
    private: System::Void timer1_Tick(System::Object *  sender, System::EventArgs *  e)
             {
                           if( WarRockRuns( ) )
                 {
                    if( vars.Stamina )
                    {
                        int Staminavalue = 1120403456;
                        data_process( ( void* )ADDR_STAMINA, &Staminavalue, sizeof( int ) );
                    }
                       }
                     }
    Plant a Checkbox on your Form and Dobble Click:



    Code:
    vars.stamina = !vars.stamina;
    I'm using visual C++ 6.0 Could you tell me where the timer is??? i can't seem to find one which led me to assume that there isn't one. ??? help?

  4. #4
    K2 Nemico's Avatar
    Join Date
    Jul 2007
    Gender
    male
    Posts
    160
    Reputation
    8
    Thanks
    29
    lol i cant find it too...

  5. #5
    HeXel's Avatar
    Join Date
    Apr 2007
    Gender
    male
    Location
    Portugal
    Posts
    1,093
    Reputation
    40
    Thanks
    57
    My Mood
    Amused
    how do i add a fucking timer on c++ ?

  6. #6
    masterboy120's Avatar
    Join Date
    Jul 2007
    Gender
    male
    Location
    The Netherlands
    Posts
    371
    Reputation
    10
    Thanks
    34
    My Mood
    Amazed
    Lol its easy to add a timer in C++ this is what u do:

    Go to classwizard than C(ur hacks name)Dlg

    at messages find WM_TIMER and add function and u got the timer..

Similar Threads

  1. [Help] How to code speed? [vb 2008]
    By m4c4r0ni3z in forum Visual Basic Programming
    Replies: 6
    Last Post: 05-04-2008, 02:45 PM
  2. How to code invis and boneshot?
    By Jaybird94 in forum WarRock - International Hacks
    Replies: 17
    Last Post: 03-06-2008, 12:15 AM
  3. How to code OPK?
    By Jaybird94 in forum WarRock - International Hacks
    Replies: 19
    Last Post: 03-03-2008, 01:42 PM
  4. How can i add hotkeys in Visual c++
    By nbr1dan in forum C++/C Programming
    Replies: 7
    Last Post: 11-03-2007, 03:32 PM
  5. Visual Basic 6 codes
    By jokuvaan11 in forum WarRock - International Hacks
    Replies: 13
    Last Post: 06-08-2007, 03:01 PM