Redraw font at intervals

Posts 1–11 of 11 · Page 1 of 1
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
You know using try and catch blocks would be better..
Then you could recreate it everytime the device changes
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
Quote Originally Posted by fukojr2 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?
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.
Quote Originally Posted by fukojr2 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
Quote Originally Posted by whit View Post


okies mate
I gotsta go mate. ttyl
Quote Originally Posted by fukojr2 View Post


I gotsta go mate. ttyl
Later bro....
Quote Originally Posted by whit View Post


Later bro....
Can you pm me your MSN please?
Quote Originally Posted by fukojr2 View Post


Can you pm me your MSN please?
I vm'd it too you
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
Posts 1–11 of 11 · Page 1 of 1
This thread is closed for replies.

Tags for this Thread

None

Talk with us