Solvedspammer delay speed

Posts 1–6 of 6 · Page 1 of 1
spammer delay speed
Code:
            if(Main->Variables->iDelaySpeed)
            {
                if(Main->D3D->Devices->dwConsoleCalled + 500 > GetTickCount64()) return;
                else Main->D3D->Devices->dwConsoleCalled = GetTickCount64();
            }
how does this effect the delay of the spammer.
Quote Originally Posted by iamspeedforyou View Post
Code:
            if(Main->Variables->iDelaySpeed)
            {
                if(Main->D3D->Devices->dwConsoleCalled + 500 > GetTickCount64()) return;
                else Main->D3D->Devices->dwConsoleCalled = GetTickCount64();
            }
how does this effect the delay of the spammer.
According to MSDN, GetTickCount64() returns the number of milliseconds since the system was started. Thus, the first line checks if it has been 500 ms since the last time the variable dwConsoleCalled was set. If 500 ms has elapsed, it sets the variable to the current amount of ms, and allows the function to continue execution. If 500 ms has not yet passed, the function returns immediately and does not continue to run. This combined guarantees that at least 500 milliseconds will elapse between each time the code following this if statement is executed.
Quote Originally Posted by Saltine View Post

According to MSDN, GetTickCount64() returns the number of milliseconds since the system was started. Thus, the first line checks if it has been 500 ms since the last time the variable dwConsoleCalled was set. If 500 ms has elapsed, it sets the variable to the current amount of ms, and allows the function to continue execution. If 500 ms has not yet passed, the function returns immediately and does not continue to run. This combined guarantees that at least 500 milliseconds will elapse between each time the code following this if statement is executed.
thanks, so how would i make it spam 1 time a second?
Code:
            if(Main->Variables->iDelaySpeed)
            {
                if(Main->D3D->Devices->dwConsoleCalled + 1000 > GetTickCount64()) return;
                else Main->D3D->Devices->dwConsoleCalled = GetTickCount64();
            }
Quote Originally Posted by iamspeedforyou View Post
thanks, so how would i make it spam 1 time a second?
Code:
            if(Main->Variables->iDelaySpeed)
            {
                if(Main->D3D->Devices->dwConsoleCalled + 1000 > GetTickCount64()) return;
                else Main->D3D->Devices->dwConsoleCalled = GetTickCount64();
            }
Yep, 1000ms = 1 second.
Quote Originally Posted by Saltine View Post

Yep, 1000ms = 1 second.
kk, thanks
Well this basically includes the explanation and your answer.

Solved & Closed.
Posts 1–6 of 6 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us