Caiol Posted March 27, 2011 Share Posted March 27, 2011 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... Link to comment Share on other sites More sharing options...
bogQ Posted March 27, 2011 Share Posted March 27, 2011 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 connectionAu3 oIrrlicht - Irrlicht projectAu3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related) 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. Link to comment Share on other sites More sharing options...
Caiol Posted March 27, 2011 Author Share Posted March 27, 2011 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? Link to comment Share on other sites More sharing options...
bogQ Posted March 27, 2011 Share Posted March 27, 2011 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 connectionAu3 oIrrlicht - Irrlicht projectAu3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related) 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. Link to comment Share on other sites More sharing options...
Caiol Posted March 27, 2011 Author Share Posted March 27, 2011 (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 March 27, 2011 by Caiol Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now