Sign in to follow this  
Followers 0
Caiol

Make the script faster

5 posts in this topic

Hello..

I have a game anti cheating script and i'm using AdLibRegister() with functions to check if some hack program are executing, but the script is becoming too low...

I've been thinking about and reading the help file. The AdLibRegister() must be with non blocking functions, like While, For; but i'm using it to list an array with the hackers and check it...

Can someone give me an ideia to do the script faster?

Another way to check the arrays with the hackers without 'blocking' the script or do it lower?

Thanks! :)

Sorry for my english... :)

Share this post


Link to post
Share on other sites



Why dont you put it in normal loop (maby with timediff)?

I got 2ms time on my comp for listing and checking data from ProcessList() (and my cpu speed is only 1.5 :))

Dont see the point of AdLibRegister

Newer the less we cant see your script so its hard to help.


TCP server and client - Learning about TCP servers and clients connection
Au3 oIrrlicht - Irrlicht project
Au3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related)



460px-Thief-4-temp-banner.jpg
There are those that believe that the perfect heist lies in the preparation.
Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost.

 

Share this post


Link to post
Share on other sites

It's possible, but if I put the functions in a normal loop, it will be confusing...

Because i have a lot of "For... to", for example:

For $i=1 to $hack[0][0]
    if WinExists($hack[$i][1]) Then
           WinKill($hacks[$i][1])
    EndIf
Next

But isn't a unique "To 'num'", is more or less 5 diferent comparations:

Window name, process, systems checks, modules checks...

Any ideia? :)

Share this post


Link to post
Share on other sites

I suggest you to try to see if WinList is faster than all the WinExists in your script

And instead of 'if then' to see if 'select case' give faster respond

From this small part its rely hard to tell how to make something faster if no one know what else you have in there.


TCP server and client - Learning about TCP servers and clients connection
Au3 oIrrlicht - Irrlicht project
Au3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related)



460px-Thief-4-temp-banner.jpg
There are those that believe that the perfect heist lies in the preparation.
Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost.

 

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

That is a part of my scrypt that is supposed to protect a game executable from hacking:

The majority of the variables like $variable[0][0] is already read in other files.

Some variables are in portuguese, i'm brazilian. :)

Edited!

@EDIT: Thanks bogQ!!! :)

Edited by Caiol

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0