Results 1 to 11 of 11
  1. #1
    ғᴜᴋᴏᴊʀ's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    1,557
    Reputation
    87
    Thanks
    141
    My Mood
    Inspired

    Redraw font at intervals

    Hey guys I haven't released anything yet so I figured now was a time to release something I personally made and found extremely useful with menu hacks. This comes with a noob-shield for anti-leech technology

    Place this in your globals:

    Code:
    int cTime = clock();
    Place this anywhere in the main loop:

    Code:
        if( clock() < cTime + 20000 ) goto Pause;
        if (clock() % 237 == 2){
                  //Recreate Font in HERE, leave the next line as it is
                  cTime = clock();
                  Thank(-TwEaK);
                  }
    And finally, place this RIGHT AFTER THE SECOND CODE BLOCK:

    Code:
    Pause:
    Last thing, I only tested with a loop running at

    Code:
    Sleep(10);
    Intervals. So just be careful. Running at 10 MS Sleep should recreate the font every 20 seconds or so. Never lose your font, ever...

    If you want to test different sleep intervals use this code in just a .cpp document:

    Code:
    #include <iostream>
    #include <ctime>
    #include <windows.h>
    
    using namespace std;
    
    int main(){
        int cTime = clock();
        while(1){
        if( clock() < cTime + 20000 ) goto Pause;
        if (clock() % 237 == 2){
                  cout << clock() << endl;
                  cTime = clock();
                  }
        Pause:
        Sleep(10);
        }
        return 0;
    }
    Code above is C&P and Compile

    Thank Me Please


    Minion/Mod please change post title to Recreate Font Automatically... Sorry I forgot to change it
    Last edited by ғᴜᴋᴏᴊʀ; 12-01-2010 at 07:13 PM.


    [IMG]https://i186.photobucke*****m/albums/x253/Rypleys/MNC/biohazard2.jpg[/IMG]

    MPGH in 5 words:

    Quote Originally Posted by ZEROProJect View Post
    1 in a million community

  2. #2
    whit's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    7,159
    Reputation
    490
    Thanks
    2,253
    You know using try and catch blocks would be better..
    Then you could recreate it everytime the device changes

  3. #3
    ғᴜᴋᴏᴊʀ's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    1,557
    Reputation
    87
    Thanks
    141
    My Mood
    Inspired
    Quote Originally Posted by whit View Post
    You know using try and catch blocks would be better..
    Then you could recreate it everytime the device changes
    I like this way better because I don't have to worry about the pointer. I just know I will have a font every 20 seconds or so
    Thanks for the constructive criticism, always appreciated over here


    [IMG]https://i186.photobucke*****m/albums/x253/Rypleys/MNC/biohazard2.jpg[/IMG]

    MPGH in 5 words:

    Quote Originally Posted by ZEROProJect View Post
    1 in a million community

  4. #4
    whit's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    7,159
    Reputation
    490
    Thanks
    2,253
    Quote Originally Posted by -TwEaK View Post


    I like this way better because I don't have to worry about the pointer. I just know I will have a font every 20 seconds or so
    Thanks for the constructive criticism, always appreciated over here
    Oh no not criticizing ...
    Do you use the method you posted?

  5. #5
    ғᴜᴋᴏᴊʀ's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    1,557
    Reputation
    87
    Thanks
    141
    My Mood
    Inspired
    Quote Originally Posted by whit View Post


    Oh no not criticizing ...
    Do you use the method you posted?
    Constructive criticism. Told me the way that could possibly work better.
    And yes, I do use the method that I posted. By the way PM me your MSN I'd like to talk programming with you...
    I take no offense to constructive criticism, without it people could never learn.


    [IMG]https://i186.photobucke*****m/albums/x253/Rypleys/MNC/biohazard2.jpg[/IMG]

    MPGH in 5 words:

    Quote Originally Posted by ZEROProJect View Post
    1 in a million community

  6. #6
    whit's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    7,159
    Reputation
    490
    Thanks
    2,253
    Quote Originally Posted by -TwEaK View Post


    Constructive criticism. Told me the way that could possibly work better.
    And yes, I do use the method that I posted. By the way PM me your MSN I'd like to talk programming with you...
    I take no offense to constructive criticism, without it people could never learn.
    okies mate

  7. #7
    ғᴜᴋᴏᴊʀ's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    1,557
    Reputation
    87
    Thanks
    141
    My Mood
    Inspired
    Quote Originally Posted by whit View Post


    okies mate
    I gotsta go mate. ttyl


    [IMG]https://i186.photobucke*****m/albums/x253/Rypleys/MNC/biohazard2.jpg[/IMG]

    MPGH in 5 words:

    Quote Originally Posted by ZEROProJect View Post
    1 in a million community

  8. #8
    whit's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    7,159
    Reputation
    490
    Thanks
    2,253
    Quote Originally Posted by -TwEaK View Post


    I gotsta go mate. ttyl
    Later bro....

  9. #9
    ғᴜᴋᴏᴊʀ's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    1,557
    Reputation
    87
    Thanks
    141
    My Mood
    Inspired
    Quote Originally Posted by whit View Post


    Later bro....
    Can you pm me your MSN please?

  10. #10
    whit's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    7,159
    Reputation
    490
    Thanks
    2,253
    Quote Originally Posted by -TwEaK View Post


    Can you pm me your MSN please?
    I vm'd it too you

  11. #11
    ғᴜᴋᴏᴊʀ's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    1,557
    Reputation
    87
    Thanks
    141
    My Mood
    Inspired
    Quote Originally Posted by whit View Post


    I vm'd it too you
    Can you PM it please, I can't read VM's on my phone